Save RTSP stream to disk

Christof Bodner christof.bodner at gmx.net
Wed Nov 30 22:54:59 UTC 2016


Hi Tim,

Thanks for your answer!

I started the command you proposed. It created a file, but there was not 
the content in the file I expected. It was mostly gray.

There are some drop-outs in the input stream, but I can display it via 
autovideosink. Maybe the verbose output gives another hint.

---

$ LANG=C gst-launch-1.0 -v rtspsrc location=rtsp://44.143.145.186:5131/0 
! queue ! rtph264depay ! h264parse ! mpegtsmux ! filesink location=file.ts
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://44.143.145.186:5131/0
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: latency = 2000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: ntp-sync = 
false
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: 
ntp-time-source = NTP time based on realtime clock
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: 
drop-on-latency = false
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: 
max-rtcp-rtp-time-diff = 1000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: 
buffer-mode = Slave receiver to sender clock
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout = 
5000000000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: caps = 
"application/x-rtp\,\ media\=\(string\)video\,\ payload\=\(int\)96\,\ 
clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ 
packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1: caps = 
application/x-rtcp
Progress: (request) SETUP stream 1
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2: timeout = 
5000000000
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2: caps = 
"application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3: caps = 
application/x-rtcp
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager: 
buffer-mode = Slave receiver to sender clock
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: caps = 
"application/x-rtp\,\ media\=\(string\)video\,\ payload\=\(int\)96\,\ 
clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ 
packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2: caps = 
"application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0.GstPad:src: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtp_sink_0.GstProxyPad:proxypad0: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0.GstPad:recv_rtp_src: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSsrcDemux:rtpssrcdemux0.GstPad:sink: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
Progress: (request) Sent PLAY request
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0.GstPad:recv_rtp_sink: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtp_sink_0: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc1.GstPad:src: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2.GstPad:src: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2.GstPad:src: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3.GstPad:src: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtcp_sink_1.GstProxyPad:proxypad4: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1.GstPad:sync_src: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSsrcDemux:rtpssrcdemux1.GstPad:rtcp_sink: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1.GstPad:recv_rtcp_sink: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtcp_sink_1: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtp_sink_1.GstProxyPad:proxypad3: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1.GstPad:recv_rtp_src: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSsrcDemux:rtpssrcdemux1.GstPad:sink: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1.GstPad:recv_rtp_sink: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtp_sink_1: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout = 0
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2: timeout = 0
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpJitterBuffer:rtpjitterbuffer0.GstPad:sink: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpJitterBuffer:rtpjitterbuffer0.GstPad:src: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpPtDemux:rtpptdemux0.GstPad:sink: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpJitterBuffer:rtpjitterbuffer1.GstPad:sink: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpJitterBuffer:rtpjitterbuffer1.GstPad:sink: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_1_41094_107.GstProxyPad:proxypad7: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtp_src_1_41094_107.GstProxyPad:proxypad6: 
caps = "application/x-rtp\,\ media\=\(string\)application\,\ 
payload\=\(int\)107\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)VND.ONVIF.METADATA\,\ ssrc\=\(uint\)41094\,\ 
npt-start\=\(guint64\)0\,\ play-speed\=\(double\)1\,\ 
play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = 
"application/x-rtp\,\ media\=\(string\)video\,\ payload\=\(int\)96\,\ 
clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ 
packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = 
"application/x-rtp\,\ media\=\(string\)video\,\ payload\=\(int\)96\,\ 
clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ 
packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_41030_96.GstProxyPad:proxypad9: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_41030_96.GstProxyPad:proxypad9: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_41030_96.GstProxyPad:proxypad9: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:recv_rtp_src_0_41030_96.GstProxyPad:proxypad8: 
caps = "application/x-rtp\,\ media\=\(string\)video\,\ 
payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ 
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ 
sprop-parameter-sets\=\(string\)\"Z0KAH9oCwEkwFqBAQEYEABdwAAJ40ve+Eg\\\=\\\=\\\,aM48gA\\\=\\\=\"\,\ 
ssrc\=\(uint\)41030\,\ npt-start\=\(guint64\)0\,\ 
play-speed\=\(double\)1\,\ play-scale\=\(double\)1"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1.GstPad:send_rtcp_src: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:send_rtcp_src_1: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink3.GstPad:sink: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:send_rtcp_src_1.GstProxyPad:proxypad5: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = 
"video/x-h264\,\ stream-format\=\(string\)byte-stream\,\ 
alignment\=\(string\)au\,\ level\=\(string\)3.1\,\ 
profile\=\(string\)baseline\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ 
width\=\(int\)704\,\ height\=\(int\)576\,\ framerate\=\(fraction\)0/1\,\ 
parsed\=\(boolean\)true"
/GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:sink_65: caps = 
"video/x-h264\,\ stream-format\=\(string\)byte-stream\,\ 
alignment\=\(string\)au\,\ level\=\(string\)3.1\,\ 
profile\=\(string\)baseline\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ 
width\=\(int\)704\,\ height\=\(int\)576\,\ framerate\=\(fraction\)0/1\,\ 
parsed\=\(boolean\)true"
/GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:src: caps = 
"video/mpegts\,\ systemstream\=\(boolean\)true\,\ packetsize\=\(int\)188"
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = 
"video/mpegts\,\ systemstream\=\(boolean\)true\,\ packetsize\=\(int\)188"
/GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:src: caps = 
"video/mpegts\,\ systemstream\=\(boolean\)true\,\ 
packetsize\=\(int\)188\,\ streamheader\=\(buffer\)\<\ 
47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941\,\ 
474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e041f00c050448444d5688040ffffcfc1be041f00a050848444d56ff1b443f5a3175c0\ 
\>"
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = 
"video/mpegts\,\ systemstream\=\(boolean\)true\,\ 
packetsize\=\(int\)188\,\ streamheader\=\(buffer\)\<\ 
47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941\,\ 
474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e041f00c050448444d5688040ffffcfc1be041f00a050848444d56ff1b443f5a3175c0\ 
\>"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:send_rtcp_src_0: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink1.GstPad:sink: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2: 
caps = application/x-rtcp
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession1: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0: 
stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ 
sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ 
source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:14.684474911
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

---

KR,
Christof


Am 2016-11-30 um 00:09 schrieb Tim Müller:
> On Tue, 2016-11-29 at 23:28 +0100, Christof Bodner wrote:
>
> Hi Christof,
>
>> I can display a RTSP stream with the following command:
>> ---
>> $ gst-launch-1.0 rtspsrc location=rtsp://44.143.145.186:5131/0 !
>> queue ! rtph264depay ! h264parse ! decodebin ! autovideosink
> Ok.
>
>> I would like to save it also to a file (not at the same time), but
>> when I run this, the file that's generated is with size zero, so it's
>> empty:
>>
>> $ gst-launch-1.0 -e rtspsrc location=rtsp://44.143.145.186:5131/0 !
>> rtpbin ! mpegtsmux ! filesink location=file.ts
> I'm not sure why you add an rtpbin here, this is already contained
> inside rtspsrc. Basically what you want to do is everything you did in
> the first pipeline, just that instead of decoding you want to save into
> a file. So try something like this:
>
> gst-launch-1.0 rtspsrc location=rtsp://44.143.145.186:5131/0 ! queue !
> rtph264depay ! h264parse ! mpegtsmux ! filesink location=file.ts
>
>> (sorry, the messages are in german, but I think you can imagine,
>> what's going on)
> You should be able to get them in English by doing
>
> LANG=C gst-launch-1.0 ...
>
> for what it's worth (or LC_ALL=C).
>
> Cheers
>   -Tim
>

-- 
---------------------------------------------------------------------
  Christof Bodner <Christof.Bodner at gmx.net>
    Linux - Life is too short for reboots
          - First they ignore you. Then they laugh at you. Then they
            fight you(*). Then you win. -- Ghandi
---------------------------------------------------------------------
email: mailto:Christof.Bodner at gmx.net
Tel.:  +43-650-7215383
ICQ:   22085157
---------------------------------------------------------------------
GnuPG public key: 8A265334
Fingerprint CF71 08D2 18B8 A824 37A5  B80E 0888 37E1 8A26 5334
---------------------------------------------------------------------



More information about the gstreamer-devel mailing list