Thanks Tim. <br><br>I tried byte-stream=true. Now the saved 264 stream can be played using ffmpeg.<br><br>However, it seems that now ffdec_h264 in gstreamer cannot correctly decode the stream from x264enc when byte-stream is set to true.<br>
<br>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?<br><br>Thanks,<br>Zixia<br><br><div class="gmail_quote">
<br><br>On Wed, Aug 11, 2010 at 12:57 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wed, 2010-08-11 at 12:46 -0700, Zixia Huang wrote:<br>
<br>
> However when I try to save the encoded 264 stream into a file as:<br>
><br>
> gst-launch camerasrc ! queue ! video/x-raw-yuv,format=\(fourcc<br>
> \)I420,width=1280,height=480 ! x264enc ! filesink locaton=tmp.264<br>
><br>
> And I try to play tmp.264 using ffplay, it seems that ffmpeg does not<br>
> know the format the encoded 264 stream.<br>
<br>
</div>If you are not embedding the h.264 stream into a container (which is<br>
preferable), you need to use ... ! x264enc byte-stream=true ! ...<br>
<br>
Cheers<br>
-Tim<br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
This SF.net email is sponsored by<br>
<br>
Make an app they can't live without<br>
Enter the BlackBerry Developer Challenge<br>
<a href="http://p.sf.net/sfu/RIM-dev2dev" target="_blank">http://p.sf.net/sfu/RIM-dev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>