rtsp stream problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rtsp stream problem

Thabelo Mmbengeni-2
I am having this command line for 4 local video sources 

(1)
THIS WORKS
 gst-launch -e \
   videomixer name=mix sink_0::zorder=0 \
sink_1::xpos=5       sink_1::ypos=5 sink_1::alpha=1 sink_1::zorder=1 \
sink_2::xpos=595       sink_2::ypos=5 sink_2::alpha=1 sink_2::zorder=2 \
sink_3::xpos=5       sink_3::ypos=395 sink_3::alpha=1 sink_3::zorder=3 \
sink_4::xpos=475 sink_4::ypos=355 sink_4::alpha=1 sink_4::zorder=4 ! \
    ffmpegcolorspace ! xvimagesink \
    videotestsrc pattern=3 ! video/x-raw-yuv, framerate=10/1, width=800, height=600 ! mix.sink_0 \
    videotestsrc pattern=1 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_1 \
    videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_2 \
videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_3 \
    v4l2src ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! mix.sink_4

  And I also have this one for a camera streaming rtsp

(2)THIS WORKS
gst-launch-0.10 -e \
rtspsrc location=rtsp://root:icontrol@192.168.0.93/mpeg4/media.amp ! \
rtpmp4vdepay ! mpeg4videoparse ! ffdec_mpeg4 ! xvimagesink

(3)THIS DOESN'T WORK: after changing one sink_3 to read from the rtsp stream FROM AN AXIS CAMERA, commandline just hangs.

 gst-launch -e \
   videomixer name=mix sink_0::zorder=0 \
sink_1::xpos=5 sink_1::ypos=5 sink_1::alpha=1 sink_1::zorder=1 \
sink_2::xpos=595 sink_2::ypos=5 sink_2::alpha=1 sink_2::zorder=2 \
sink_3::xpos=5 sink_3::ypos=395 sink_3::alpha=1 sink_3::zorder=3 \
sink_4::xpos=595 sink_4::ypos=395 sink_4::alpha=1 sink_4::zorder=4 ! \
    ffmpegcolorspace ! xvimagesink \
    videotestsrc pattern=3 ! video/x-raw-yuv, framerate=10/1, width=800, height=600 ! mix.sink_0 \
    videotestsrc pattern=1 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_1 \
    videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_2 \
rtspsrc location=rtsp://my_username:my_password@192.168.0.93/mpeg4/media.amp ! rtpmp4vdepay ! mpeg4videoparse ! ffdec_mpeg4 ! mix.sink_3 \
    v4l2src ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! mix.sink_4


--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtsp stream problem

arnaud tonda
No idea about this, could you check debug informations from gstreamer by adding "GST_DEBUG=2" before your command line?
check if there is some warnings on elements.

if you have some more traces post it here, it could be easier to debug.

best regards

Arnaud Tonda

2011/8/16 Thabelo Mmbengeni <[hidden email]>
I am having this command line for 4 local video sources 

(1)
THIS WORKS
 gst-launch -e \
   videomixer name=mix sink_0::zorder=0 \
sink_1::xpos=5       sink_1::ypos=5 sink_1::alpha=1 sink_1::zorder=1 \
sink_2::xpos=595       sink_2::ypos=5 sink_2::alpha=1 sink_2::zorder=2 \
sink_3::xpos=5       sink_3::ypos=395 sink_3::alpha=1 sink_3::zorder=3 \
sink_4::xpos=475 sink_4::ypos=355 sink_4::alpha=1 sink_4::zorder=4 ! \
    ffmpegcolorspace ! xvimagesink \
    videotestsrc pattern=3 ! video/x-raw-yuv, framerate=10/1, width=800, height=600 ! mix.sink_0 \
    videotestsrc pattern=1 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_1 \
    videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_2 \
videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_3 \
    v4l2src ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! mix.sink_4

  And I also have this one for a camera streaming rtsp

(2)THIS WORKS
gst-launch-0.10 -e \
rtspsrc location=rtsp://root:icontrol@192.168.0.93/mpeg4/media.amp ! \
rtpmp4vdepay ! mpeg4videoparse ! ffdec_mpeg4 ! xvimagesink

(3)THIS DOESN'T WORK: after changing one sink_3 to read from the rtsp stream FROM AN AXIS CAMERA, commandline just hangs.

 gst-launch -e \
   videomixer name=mix sink_0::zorder=0 \
sink_1::xpos=5 sink_1::ypos=5 sink_1::alpha=1 sink_1::zorder=1 \
sink_2::xpos=595 sink_2::ypos=5 sink_2::alpha=1 sink_2::zorder=2 \
sink_3::xpos=5 sink_3::ypos=395 sink_3::alpha=1 sink_3::zorder=3 \
sink_4::xpos=595 sink_4::ypos=395 sink_4::alpha=1 sink_4::zorder=4 ! \
    ffmpegcolorspace ! xvimagesink \
    videotestsrc pattern=3 ! video/x-raw-yuv, framerate=10/1, width=800, height=600 ! mix.sink_0 \
    videotestsrc pattern=1 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_1 \
    videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_2 \
rtspsrc location=rtsp://my_username:my_password@192.168.0.93/mpeg4/media.amp ! rtpmp4vdepay ! mpeg4videoparse ! ffdec_mpeg4 ! mix.sink_3 \
    v4l2src ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! mix.sink_4


--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtsp stream problem

Thabelo Mmbengeni-2
thanks i got a few warnings ans errors. Here are the filtered errors and warnings


0:01:13.207532067   329  0x8e74988 WARN      gstrtpjitterbuffer gstrtpjitterbuffer.c:1779:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0> Packet #33534 lost
0:01:13.208184172   329  0x8e74988 ERROR                 ffmpeg :0:: warning: first frame is no keyframe
0:01:30.379314932   329  0x8e74988 WARN      gstrtpjitterbuffer gstrtpjitterbuffer.c:1779:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0> Packet #33697 lost
0:01:30.379901386   329  0x8e74988 ERROR                 ffmpeg :0:: warning: first frame is no keyframe
0:01:52.568809318   329  0x8e74988 WARN      gstrtpjitterbuffer gstrtpjitterbuffer.c:1779:gst_rtp_jitter_buffer_loop:<rtpjitterbuffer0> Packet #33897 lost
0:01:52.569519321   329  0x8e74988 ERROR                 ffmpeg :0:: warning: first frame is no keyframe
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
0:02:19.438585442   329  0x8e74988 ERROR                 ffmpeg :0:: ac-tex damaged at 14 11
0:02:19.438643620   329  0x8e74988 ERROR                 ffmpeg :0:: Error at MB: 190

0:02:19.511434849   329  0x8e263d8 WARN                     bin gstbin.c:2312:gst_bin_do_latency_func:<pipeline0> warning: Impossible to configure latency: max 0:00:

On Tue, Aug 16, 2011 at 12:16 PM, arnaud tonda <[hidden email]> wrote:
No idea about this, could you check debug informations from gstreamer by adding "GST_DEBUG=2" before your command line?
check if there is some warnings on elements.

if you have some more traces post it here, it could be easier to debug.

best regards

Arnaud Tonda

2011/8/16 Thabelo Mmbengeni <[hidden email]>
I am having this command line for 4 local video sources 

(1)
THIS WORKS
 gst-launch -e \
   videomixer name=mix sink_0::zorder=0 \
sink_1::xpos=5       sink_1::ypos=5 sink_1::alpha=1 sink_1::zorder=1 \
sink_2::xpos=595       sink_2::ypos=5 sink_2::alpha=1 sink_2::zorder=2 \
sink_3::xpos=5       sink_3::ypos=395 sink_3::alpha=1 sink_3::zorder=3 \
sink_4::xpos=475 sink_4::ypos=355 sink_4::alpha=1 sink_4::zorder=4 ! \
    ffmpegcolorspace ! xvimagesink \
    videotestsrc pattern=3 ! video/x-raw-yuv, framerate=10/1, width=800, height=600 ! mix.sink_0 \
    videotestsrc pattern=1 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_1 \
    videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_2 \
videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_3 \
    v4l2src ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! mix.sink_4

  And I also have this one for a camera streaming rtsp

(2)THIS WORKS
gst-launch-0.10 -e \
rtspsrc location=rtsp://root:icontrol@192.168.0.93/mpeg4/media.amp ! \
rtpmp4vdepay ! mpeg4videoparse ! ffdec_mpeg4 ! xvimagesink

(3)THIS DOESN'T WORK: after changing one sink_3 to read from the rtsp stream FROM AN AXIS CAMERA, commandline just hangs.

 gst-launch -e \
   videomixer name=mix sink_0::zorder=0 \
sink_1::xpos=5 sink_1::ypos=5 sink_1::alpha=1 sink_1::zorder=1 \
sink_2::xpos=595 sink_2::ypos=5 sink_2::alpha=1 sink_2::zorder=2 \
sink_3::xpos=5 sink_3::ypos=395 sink_3::alpha=1 sink_3::zorder=3 \
sink_4::xpos=595 sink_4::ypos=395 sink_4::alpha=1 sink_4::zorder=4 ! \
    ffmpegcolorspace ! xvimagesink \
    videotestsrc pattern=3 ! video/x-raw-yuv, framerate=10/1, width=800, height=600 ! mix.sink_0 \
    videotestsrc pattern=1 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_1 \
    videotestsrc pattern=2 ! video/x-raw-yuv, framerate=10/1, width=200, height=200 ! mix.sink_2 \
rtspsrc location=rtsp://my_username:my_password@192.168.0.93/mpeg4/media.amp ! rtpmp4vdepay ! mpeg4videoparse ! ffdec_mpeg4 ! mix.sink_3 \
    v4l2src ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! mix.sink_4


--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel