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"><<a href="mailto:thiago.sousa.santos@collabora.co.uk">thiago.sousa.santos@collabora.co.uk</a>></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>
> Try adding h264parse after depay ie<br>
><br>
> gst-launch -vvv rtspsrc location=rtsp://ip:port ! rtph264depay !<br>
> h264parse ! mpegtsmux ! filesink location=movie > output.txt<br>
><br>
> Basically muxers need addition codec info that gets generated by<br>
> parsers.<br>
<br>
</div>You might also need to use "-e" 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>
><br>
> Best Luck<br>
> Kapil<br>
><br>
><br>
> On Wed, Aug 31, 2011 at 2:21 AM, android6011 <<a href="mailto:android6011@gmail.com">android6011@gmail.com</a>><br>
> wrote:<br>
> I am trying to figure out why my video filesize is always 0<br>
> except when I use and mpegtsmux. I get no errors when I use<br>
> other muxers though so I am a little lost. Any ideas?<br>
><br>
><br>
> gst-launch -vvv rtspsrc location=rtsp://ip:port !<br>
> rtph264depay ! mpegtsmux ! filesink location=movie ><br>
> output.txt<br>
><br>
><br>
> /* Mpeg TS Mux*/<br>
> Setting pipeline to PAUSED ...<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0:<br>
> latency = 2000<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0:<br>
> buffer-mode = slave (1)<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:<br>
> timeout = 5000000<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3:<br>
> timeout = 5000000<br>
> Pipeline is live and does not need PREROLL ...<br>
> Setting pipeline to PLAYING ...<br>
> New clock: GstSystemClock<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:<br>
> timeout = 0<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3:<br>
> timeout = 0<br>
> /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal<br>
> /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)\"Z0IAHukBQHsg\\,aM44gA\\=\\=\", a-etag=(string)1234567890, x-dimensions=(string)\"640\\,480\", a-sendonly=(string)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"Z0IAHukBQHsg\\,aM44gA\\=\\=\", a-etag=(string)1234567890, x-dimensions=(string)\"640\\,480\", a-sendonly=(string)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"Z0IAHukBQHsg\\,aM44gA\\=\\=\", a-etag=(string)1234567890, x-dimensions=(string)\"640\\,480\", a-sendonly=(string)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"Z0IAHukBQHsg\\,aM44gA\\=\\=\", a-etag=(string)1234567890, x-dimensions=(string)\"640\\,480\", a-sendonly=(string)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:sink_64:<br>
> caps = video/x-h264, stream-format=(string)byte-stream,<br>
> alignment=(string)nal<br>
> /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:src: caps =<br>
> video/mpegts, systemstream=(boolean)true, packetsize=(int)188<br>
> /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps<br>
> = video/mpegts, systemstream=(boolean)true,<br>
> packetsize=(int)188<br>
> /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:src: caps =<br>
> video/mpegts, systemstream=(boolean)true, packetsize=(int)188,<br>
> streamheader=(buffer)<<br>
> 47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941, 474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e040f00c050448444d5688040ffffcfc1be040f00a050848444d56ff1b443ffba2e249 ><br>
> /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps<br>
> = video/mpegts, systemstream=(boolean)true,<br>
> packetsize=(int)188, streamheader=(buffer)<<br>
> 47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941, 474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e040f00c050448444d5688040ffffcfc1be040f00a050848444d56ff1b443ffba2e249 ><br>
> /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)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession1.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink3.GstPad:sink: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1.GstProxyPad:proxypad5: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink1.GstPad:sink: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2: caps = application/x-rtcp<br>
><br>
><br>
> /* QT,AVI,MP4 MUX are all the same as below (no mention of the<br>
> mux in the message like with mpegts) */<br>
> Setting pipeline to PAUSED ...<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0:<br>
> latency = 2000<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0:<br>
> buffer-mode = slave (1)<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:<br>
> timeout = 5000000<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2:<br>
> timeout = 5000000<br>
> Pipeline is live and does not need PREROLL ...<br>
> Setting pipeline to PLAYING ...<br>
> New clock: GstSystemClock<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:<br>
> timeout = 0<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2:<br>
> timeout = 0<br>
> /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = video/x-h264, codec_data=(buffer)0142001effe100096742001ee901407b2001000468ce3880, stream-format=(string)avc, alignment=(string)nal<br>
> /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)\"Z0IAHukBQHsg\\,aM44gA\\=\\=\", a-etag=(string)1234567890, x-dimensions=(string)\"640\\,480\", a-sendonly=(string)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"Z0IAHukBQHsg\\,aM44gA\\=\\=\", a-etag=(string)1234567890, x-dimensions=(string)\"640\\,480\", a-sendonly=(string)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"Z0IAHukBQHsg\\,aM44gA\\=\\=\", a-etag=(string)1234567890, x-dimensions=(string)\"640\\,480\", a-sendonly=(string)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"Z0IAHukBQHsg\\,aM44gA\\=\\=\", a-etag=(string)1234567890, x-dimensions=(string)\"640\\,480\", a-sendonly=(string)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /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)\"\", seqnum-base=(uint)0, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession1.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink3.GstPad:sink: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1.GstProxyPad:proxypad5: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink1.GstPad:sink: caps = application/x-rtcp<br>
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2: caps = application/x-rtcp<br>
><br>
><br>
><br>
><br>
><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>
><br>
><br>
><br>
><br>
> --<br>
> <a href="http://www.mediamagictechnologies.com" target="_blank">www.mediamagictechnologies.com</a> (Gstreamer, ffmpeg, Red5, Streaming)<br>
> twitter handle: @gst_kaps<br>
> <a href="http://www.linkedin.com/in/kapilagrawal" target="_blank">http://www.linkedin.com/in/kapilagrawal</a><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>
<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>