rtsp stream

Francois Baret frogeraie at gmail.com
Wed Oct 28 04:46:22 PDT 2015


On 28 أكت, 2015 ص 07:25, Sebastian Dröge wrote:
> On Di, 2015-10-27 at 23:05 +0000, Francois Baret wrote:
>> When I run on the server test-launch of the gst-rtsp-server-1.4.5
>> package I get a
>> stream ready at rtsp://127.0.0.1:8554/test, then if I run on the
>> client
>> gst-launch-1.0 rtspsrc location=rtsp:<server ip>:8554/test !
>> rtph264depay ! h264parse ! decodebin ! autovideosink
>> I do not any image.
>> Any idea why?
> Not without further information. How do you run test-launch? What's the
> complete output of gst-launch-1.0, especially if you also set
> GST_DEBUG=2 in the environment?
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
/I run test-launch with the following command:/
francois at Andalous:~/webcam/gstreamer/gst-rtsp-server-1.4.5/examples$ 
./test-launch "( GST_DEBUG=2 v4l2src ! video/x-raw,width=640,height=480 
! x264enc tune=zerolatency byte-stream=true  bitrate=3000 threads=2 ! 
h264parse config-interval=1 ! rtph264pay name=pay0 pt=96 )\"\n"
stream ready at rtsp://192.168.1.10:8554/test

/then if I run/
francois at Andalous:~$ GST_DEBUG=2 gst-launch-1.0 rtspsrc 
location=rtsp://192.168.1.10:8554/test ! rtph264depay ! h264parse ! 
decodebin ! autovideosink
/on the same pc I get an image alright (with pixelisation at the 
beginning and some latency) and the log attached: test-launch-log. On an 
other pc on the same lan it behaves the same (see client-log attached)//
////Now I run the same test-launch on the first pc and I connect the 
second pc to another public ip. Then the client rtspsrc cannot connect 
to the stream: client-public-log.//
Do I have to forward port 8554?
//Thank you for your help!/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151028/f4bbb43b/attachment-0001.html>
-------------- next part --------------
francois at Andalous:~$ GST_DEBUG=2 gst-launch-1.0 rtspsrc location=rtsp://user:pass@192.168.1.10:8554/test ! rtph264depay ! h264parse ! decodebin ! autovideosink
Setting pipeline to PAUSED ...
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://user:pass@192.168.1.10:8554/test
0:00:01.262153503 18015      0x2525370 ERROR                default gstrtspconnection.c:877:gst_rtsp_connection_connect: failed to connect: Could not connect to 192.168.1.10: Connection refused
0:00:01.262203926 18015      0x2525370 ERROR                rtspsrc gstrtspsrc.c:4198:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to server. (Generic error)
0:00:01.262220268 18015      0x2525370 WARN                 rtspsrc gstrtspsrc.c:6868:gst_rtspsrc_retrieve_sdp:<rtspsrc0> error: Failed to connect. (Generic error)
0:00:01.262279979 18015      0x2525370 WARN                 rtspsrc gstrtspsrc.c:6947:gst_rtspsrc_open:<rtspsrc0> can't get sdp
0:00:01.262308333 18015      0x2525370 WARN                 rtspsrc gstrtspsrc.c:5048:gst_rtspsrc_loop:<rtspsrc0> we are not connected
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(6868): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
francois at Andalous:~$ GST_DEBUG=2 gst-launch-1.0 rtspsrc location=rtsp://192.168.1.10:8554/test ! rtph264depay ! h264parse ! decodebin ! autovideosink
Setting pipeline to PAUSED ...
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.1.10:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
0:00:01.579962198 18065      0x10dc320 WARN         rtpjitterbuffer rtpjitterbuffer.c:185:rtp_jitter_buffer_set_clock_rate: Clock rate changed from 0 to 90000
Redistribute latency...
0:00:03.681423698 18065 0x7fa844002720 ERROR                  libav :0:: Missing reference picture
0:00:03.681484250 18065 0x7fa844002720 ERROR                  libav :0:: decode_slice_header error
0:00:03.681677920 18065 0x7fa844002720 ERROR                  libav :0:: Missing reference picture
0:00:03.681710745 18065 0x7fa844002720 ERROR                  libav :0:: decode_slice_header error
0:00:03.701106278 18065 0x7fa844002720 ERROR                  libav :0:: Missing reference picture
0:00:03.701190925 18065 0x7fa844002720 ERROR                  libav :0:: Missing reference picture
0:00:03.712004021 18065 0x7fa844002720 ERROR                  libav :0:: Missing reference picture
0:00:03.712064992 18065 0x7fa844002720 ERROR                  libav :0:: Missing reference picture

-------------- next part --------------
frogeraie at foulque:~$ GST_DEBUG=2 gst-launch-1.0 rtspsrc location=rtsp://192.168.1.10:8554/test ! rtph264depay ! h264parse ! decodebin ! autovideosink
Setting pipeline to PAUSED ...
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.1.10:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
0:00:02.114952068 21990 0x7f93380408a0 WARN         rtpjitterbuffer rtpjitterbuffer.c:185:rtp_jitter_buffer_set_clock_rate: Clock rate changed from 0 to 90000
Redistribute latency...
0:00:05.575733816 21990 0x7f9318002850 WARN                basesink gstbasesink.c:2794:gst_base_sink_is_too_late:<autovideosink0-actual-sink-xvimage> warning: A lot of buffers are being dropped.
0:00:05.575815950 21990 0x7f9318002850 WARN                basesink gstbasesink.c:2794:gst_base_sink_is_too_late:<autovideosink0-actual-sink-xvimage> warning: There may be a timestamping problem, or this computer is too slow.
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2794): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.
0:01:10.561243723 21990 0x7f93380408a0 WARN         rtpjitterbuffer rtpjitterbuffer.c:494:calculate_skew: delta - skew: 0:00:02.960787785 too big, reset skew
0:01:13.501372611 21990 0x7f93380408a0 WARN         rtpjitterbuffer rtpjitterbuffer.c:494:calculate_skew: delta - skew: 0:00:01.838511126 too big, reset skew
0:01:15.831759955 21990 0x7f93380408a0 WARN         rtpjitterbuffer rtpjitterbuffer.c:494:calculate_skew: delta - skew: 0:00:01.140634207 too big, reset skew
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:01:19.426734084
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
0:01:21.425966431 21990      0x17f1370 WARN                 rtspsrc gstrtspsrc.c:5483:gst_rtspsrc_try_send:<rtspsrc0> receive interrupted
0:01:21.426112960 21990      0x17f1370 WARN                 rtspsrc gstrtspsrc.c
-------------- next part --------------
frogeraie at foulque:~$ GST_DEBUG=2 gst-launch-1.0 rtspsrc location=rtsp://196.206.89.47:8554/test ! rtph264depay ! h264parse ! decodebin ! autovideosink
Setting pipeline to PAUSED ...
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i915_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://196.206.89.47:8554/test
0:00:22.732173516 22387      0x16a8370 ERROR                default gstrtspconnection.c:877:gst_rtsp_connection_connect: failed to connect: Could not connect to 196.206.89.47: Socket I/O timed out
0:00:22.732440030 22387      0x16a8370 ERROR                rtspsrc gstrtspsrc.c:4198:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to server. (Generic error)
0:00:22.732482074 22387      0x16a8370 WARN                 rtspsrc gstrtspsrc.c:6868:gst_rtspsrc_retrieve_sdp:<rtspsrc0> error: Failed to connect. (Generic error)
0:00:22.732597940 22387      0x16a8370 WARN                 rtspsrc gstrtspsrc.c:6947:gst_rtspsrc_open:<rtspsrc0> can't get sdp
0:00:22.732657584 22387      0x16a8370 WARN                 rtspsrc gstrtspsrc.c:5048:gst_rtspsrc_loop:<rtspsrc0> we are not connected
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(6868): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...



More information about the gstreamer-devel mailing list