[gst-devel] problem muxing H264 to MPEG-TS or MP4

Michal Benes michal.benes at itonis.tv
Tue Mar 27 17:28:25 CEST 2007


> As you stated the matroska-muxer works fine. My problem is that I have
> to stream the video and cannot assume that the endpoints have matroska
> installed that's why I was trying MPEG-TS/MP4.

Hello again,

	the mpeg-ts muxer from ffmpeg does not produce quite correct streams.
You have to check if the output will be playable on your clients. As for
MP4 muxer, the problem might be related to the way ffmux_mp4 stores
codec_private data. Somebody has to do the work.

	Regards,

		Michal

> When I use "x264enc byte-stream=true" then MPEG-TS works as container,
> at least with VLC as client during my tests (mplayer seems not to
> recognize the framerate correctly and plays to fast).
> 
> Thanks
> lukas
> 
> Am Dienstag, 27. März 2007 13:14 schrieb Michal Benes:
> > Hi Lukas,
> >
> > 	I do not think that muxing h264 using ffmux is well tested, there might
> > be bugs in the gstreamer wrappers. Try encoding with
> > x264enc byte-stream=true
> > or try matroska container (matroskamux).
> >
> > 	Michal
> >
> > Lukas Ruetz píše v Po 26. 03. 2007 v 17:05 +0200:
> > > Hello gstreamers!
> > >
> > > I've tried out the new x264-encoder commited to CVS a few days ago
> > > and now need some advice how to mux the encoded video. As a source
> > > I use live-video from a V4L-source.
> > >
> > > Just encoding and decoding H.264 works:
> > > gst-launch-0.10 \
> > >  v4l2src device=/dev/video0 \
> > >  !
> > > 'video/x-raw-yuv,format=(fourcc)I420,width=720,height=576,framerate=(frac
> > >tion) 25/1' \
> > >  ! x264enc \
> > >  ! ffdec_h264 \
> > >  ! autovideosink
> > >
> > > But if I want to mux it and save it as a file, the file-format seems to
> > > be "invalid" and is not readable by any video-application, also not for
> > > gstreamer itself.
> > >
> > > I've tried to use MPEG-TS
> > > ... ! x264enc ! ffmux_mpegts ! filesink location=out.mpg
> > >
> > > and MP4
> > > ... ! x264enc ! ffmux_mp4 ! filesink location=out.mp4
> > >
> > > Do I miss something?
> > > Are there other containers that can transport H.264 than MPEG-TS and MP4?
> > >
> > > TIA
> > > lukas
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list