mpeg-ts mux works, qt,avi,mp4 muxers do not

Kapil Agrawal kapil.agl at gmail.com
Tue Aug 30 22:40:10 PDT 2011


Try adding h264parse after depay ie

gst-launch -vvv rtspsrc location=rtsp://ip:port ! rtph264depay ! h264parse !
mpegtsmux ! filesink location=movie > output.txt

Basically muxers need addition codec info that gets generated by parsers.

Best Luck
Kapil

On Wed, Aug 31, 2011 at 2:21 AM, android6011 <android6011 at gmail.com> wrote:

> I am trying to figure out why my video filesize is always 0 except when I
> use and mpegtsmux. I get no errors when I use other muxers though so I am a
> little lost. Any ideas?
>
> gst-launch -vvv rtspsrc location=rtsp://ip:port ! rtph264depay ! mpegtsmux
> ! filesink location=movie > output.txt
>
> /* Mpeg TS Mux*/
> Setting pipeline to PAUSED ...
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: latency =
> 2000
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: buffer-mode =
> slave (1)
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout =
> 5000000
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3: timeout =
> 5000000
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout = 0
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3: timeout = 0
> /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps =
> video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal
> /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
> /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
> /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
> /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
> /GstPipeline:pipeline0/MpegTsMux:mpegtsmux0.GstPad:sink_64: caps =
> video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal
> /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,
> 474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e040f00c050448444d5688040ffffcfc1be040f00a050848444d56ff1b443ffba2e249
> >
> /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps =
> video/mpegts, systemstream=(boolean)true, packetsize=(int)188,
> streamheader=(buffer)<
> 47400030a600ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000b00d0001c100000001e020a2c32941,
> 474020308b00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0002b0280001c10000e040f00c050448444d5688040ffffcfc1be040f00a050848444d56ff1b443ffba2e249
> >
> /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
> /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
> /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
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession1.GstPad:send_rtcp_src:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink3.GstPad:sink:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1.GstProxyPad:proxypad5:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink1.GstPad:sink:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2:
> caps = application/x-rtcp
>
> /* QT,AVI,MP4 MUX are all the same as below (no mention of the mux in the
> message like with mpegts) */
> Setting pipeline to PAUSED ...
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: latency =
> 2000
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0: buffer-mode =
> slave (1)
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout =
> 5000000
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2: timeout =
> 5000000
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0: timeout = 0
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc2: timeout = 0
> /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps =
> video/x-h264,
> codec_data=(buffer)0142001effe100096742001ee901407b2001000468ce3880,
> stream-format=(string)avc, alignment=(string)nal
> /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
> /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
> /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
> /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
> /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
> /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
> /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
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession1.GstPad:send_rtcp_src:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink3.GstPad:sink:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_1.GstProxyPad:proxypad5:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0.GstPad:send_rtcp_src:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSink:udpsink1.GstPad:sink:
> caps = application/x-rtcp
> /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:rtpbin0.GstGhostPad:send_rtcp_src_0.GstProxyPad:proxypad2:
> caps = application/x-rtcp
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110831/2837ea07/attachment-0001.html>


More information about the gstreamer-devel mailing list