I have tried adding h264parse but it has no effect. Any other ideas?<br><br><div class="gmail_quote">On Wed, Aug 31, 2011 at 5:24 AM, Thiago Sousa Santos <span dir="ltr">&lt;<a href="mailto:thiago.sousa.santos@collabora.co.uk">thiago.sousa.santos@collabora.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, 2011-08-31 at 11:10 +0530, Kapil Agrawal wrote:<br>
&gt; Try adding h264parse after depay ie<br>
&gt;<br>
&gt; gst-launch -vvv rtspsrc location=rtsp://ip:port ! rtph264depay !<br>
&gt; h264parse ! mpegtsmux ! filesink location=movie &gt; output.txt<br>
&gt;<br>
&gt; Basically muxers need addition codec info that gets generated by<br>
&gt; parsers.<br>
<br>
</div>You might also need to use &quot;-e&quot; to force gst-launch to push an EOS when<br>
shutting down the pipeline if you tell it to stop using ctrl-c.<br>
<br>
--<br>
<font color="#888888">Thiago<br>
</font><div><div></div><div class="h5"><br>
&gt;<br>
&gt; Best Luck<br>
&gt; Kapil<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Aug 31, 2011 at 2:21 AM, android6011 &lt;<a href="mailto:android6011@gmail.com">android6011@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         I am trying to figure out why my video filesize is always 0<br>
&gt;         except when I use and mpegtsmux. I get no errors when I use<br>
&gt;         other muxers though so I am a little lost. Any ideas?<br>
&gt;<br>
&gt;<br>
&gt;         gst-launch -vvv rtspsrc location=rtsp://ip:port !<br>
&gt;         rtph264depay ! mpegtsmux ! filesink location=movie &gt;<br>
&gt;         output.txt<br>
&gt;<br>
&gt;<br>
&gt;         /* Mpeg TS Mux*/<br>
&gt;         Setting pipeline to PAUSED ...<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0:<br>
&gt;         latency = 2000<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0:<br>
&gt;         buffer-mode = slave (1)<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:<br>
&gt;         timeout = 5000000<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3:<br>
&gt;         timeout = 5000000<br>
&gt;         Pipeline is live and does not need PREROLL ...<br>
&gt;         Setting pipeline to PLAYING ...<br>
&gt;         New clock: GstSystemClock<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:<br>
&gt;         timeout = 0<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3:<br>
&gt;         timeout = 0<br>
&gt;         /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal<br>
&gt;         /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)42001E, sprop-parameter-sets=(string)\&quot;Z0IAHukBQHsg\\,aM44gA\\=\\=\&quot;, a-etag=(string)1234567890, x-dimensions=(string)\&quot;640\\,480\&quot;, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_643110168_96: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)42001E, sprop-parameter-sets=(string)\&quot;Z0IAHukBQHsg\\,aM44gA\\=\\=\&quot;, a-etag=(string)1234567890, x-dimensions=(string)\&quot;640\\,480\&quot;, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_643110168_96.GstProxyPad:proxypad7: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)42001E, sprop-parameter-sets=(string)\&quot;Z0IAHukBQHsg\\,aM44gA\\=\\=\&quot;, a-etag=(string)1234567890, x-dimensions=(string)\&quot;640\\,480\&quot;, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_643110168_96.GstProxyPad:proxypad6: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)42001E, sprop-parameter-sets=(string)\&quot;Z0IAHukBQHsg\\,aM44gA\\=\\=\&quot;, a-etag=(string)1234567890, x-dimensions=(string)\&quot;640\\,480\&quot;, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:sink_64:<br>
&gt;         caps = video/x-h264, stream-format=(string)byte-stream,<br>
&gt;         alignment=(string)nal<br>
&gt;         /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:src: caps =<br>
&gt;         video/mpegts, systemstream=(boolean)true, packetsize=(int)188<br>
&gt;         /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps<br>
&gt;         = video/mpegts, systemstream=(boolean)true,<br>
&gt;         packetsize=(int)188<br>
&gt;         /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:src: caps =<br>
&gt;         video/mpegts, systemstream=(boolean)true, packetsize=(int)188,<br>
&gt;         streamheader=(buffer)&lt;<br>
&gt;         47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941, 474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e040f00c050448444d5688040ffffcfc1be040f00a050848444d56ff1b443ffba2e249 &gt;<br>

&gt;         /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps<br>
&gt;         = video/mpegts, systemstream=(boolean)true,<br>
&gt;         packetsize=(int)188, streamheader=(buffer)&lt;<br>
&gt;         47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941, 474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e040f00c050448444d5688040ffffcfc1be040f00a050848444d56ff1b443ffba2e249 &gt;<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_1_643110172_0: caps = application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)8000, encoding-name=(string)PCMU, a-etag=(string)1234567890, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_1_643110172_0.GstProxyPad:proxypad9: caps = application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)8000, encoding-name=(string)PCMU, a-etag=(string)1234567890, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_1_643110172_0.GstProxyPad:proxypad8: caps = application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)8000, encoding-name=(string)PCMU, a-etag=(string)1234567890, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession1.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink3.GstPad:sink: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1.GstProxyPad:proxypad5: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink1.GstPad:sink: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2: caps = application/x-rtcp<br>
&gt;<br>
&gt;<br>
&gt;         /* QT,AVI,MP4 MUX are all the same as below (no mention of the<br>
&gt;         mux in the message like with mpegts) */<br>
&gt;         Setting pipeline to PAUSED ...<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0:<br>
&gt;         latency = 2000<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0:<br>
&gt;         buffer-mode = slave (1)<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:<br>
&gt;         timeout = 5000000<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2:<br>
&gt;         timeout = 5000000<br>
&gt;         Pipeline is live and does not need PREROLL ...<br>
&gt;         Setting pipeline to PLAYING ...<br>
&gt;         New clock: GstSystemClock<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:<br>
&gt;         timeout = 0<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2:<br>
&gt;         timeout = 0<br>
&gt;         /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = video/x-h264, codec_data=(buffer)0142001effe100096742001ee901407b2001000468ce3880, stream-format=(string)avc, alignment=(string)nal<br>

&gt;         /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)42001E, sprop-parameter-sets=(string)\&quot;Z0IAHukBQHsg\\,aM44gA\\=\\=\&quot;, a-etag=(string)1234567890, x-dimensions=(string)\&quot;640\\,480\&quot;, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_643110168_96: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)42001E, sprop-parameter-sets=(string)\&quot;Z0IAHukBQHsg\\,aM44gA\\=\\=\&quot;, a-etag=(string)1234567890, x-dimensions=(string)\&quot;640\\,480\&quot;, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_0_643110168_96.GstProxyPad:proxypad7: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)42001E, sprop-parameter-sets=(string)\&quot;Z0IAHukBQHsg\\,aM44gA\\=\\=\&quot;, a-etag=(string)1234567890, x-dimensions=(string)\&quot;640\\,480\&quot;, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_0_643110168_96.GstProxyPad:proxypad6: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)42001E, sprop-parameter-sets=(string)\&quot;Z0IAHukBQHsg\\,aM44gA\\=\\=\&quot;, a-etag=(string)1234567890, x-dimensions=(string)\&quot;640\\,480\&quot;, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_1_643110172_0: caps = application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)8000, encoding-name=(string)PCMU, a-etag=(string)1234567890, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0.GstGhostPad:recv_rtp_src_1_643110172_0.GstProxyPad:proxypad9: caps = application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)8000, encoding-name=(string)PCMU, a-etag=(string)1234567890, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_1_643110172_0.GstProxyPad:proxypad8: caps = application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)8000, encoding-name=(string)PCMU, a-etag=(string)1234567890, a-sendonly=(string)\&quot;\&quot;, seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>

&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession1.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink3.GstPad:sink: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1.GstProxyPad:proxypad5: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink1.GstPad:sink: caps = application/x-rtcp<br>
&gt;         /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2: caps = application/x-rtcp<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         gstreamer-devel mailing list<br>
&gt;         <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
&gt;         <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; <a href="http://www.mediamagictechnologies.com" target="_blank">www.mediamagictechnologies.com</a> (Gstreamer, ffmpeg, Red5, Streaming)<br>
&gt; twitter handle: @gst_kaps<br>
&gt; <a href="http://www.linkedin.com/in/kapilagrawal" target="_blank">http://www.linkedin.com/in/kapilagrawal</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>