[gst-devel] Gstreamer 264 problem

Zixia Huang zixia.huang at gmail.com
Wed Aug 11 22:24:30 CEST 2010


Thanks Tim.

I tried byte-stream=true. Now the saved 264 stream can be played using
ffmpeg.

However, it seems that now ffdec_h264 in gstreamer cannot correctly decode
the stream from x264enc when byte-stream is set to true.

So my question now becomes how ffdec_h264 can correctly decodes the stream
either from x264enc (when byte-stream=true) or from a 264 file encoded using
libx264?

Thanks,
Zixia



On Wed, Aug 11, 2010 at 12:57 PM, Tim-Philipp Müller <t.i.m at zen.co.uk>wrote:

> On Wed, 2010-08-11 at 12:46 -0700, Zixia Huang wrote:
>
> > However when I try to save the encoded 264 stream into a file as:
> >
> > gst-launch camerasrc ! queue ! video/x-raw-yuv,format=\(fourcc
> > \)I420,width=1280,height=480 ! x264enc ! filesink locaton=tmp.264
> >
> > And I try to play tmp.264 using ffplay, it seems that ffmpeg does not
> > know the format the encoded 264 stream.
>
> If you are not embedding the h.264 stream into a container (which is
> preferable), you need to use ... ! x264enc byte-stream=true ! ...
>
>  Cheers
>  -Tim
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100811/5ed72210/attachment.htm>


More information about the gstreamer-devel mailing list