<br><br><div class="gmail_quote">On Tue, Aug 24, 2010 at 7:20 PM, Hu, Gang A <span dir="ltr">&lt;<a href="http://gang.a.hu">gang.a.hu</a>@<a href="http://intel.com">intel.com</a>&gt;</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;">
Add byte-stream=true to the x264enc.<br>
<br>
Use gst-launch camerasrc ! queue !<br>
video/x-raw-yuv,format=\(fourcc\)I420,width=1280,height=480 ! x264enc byte-stream=true !<br>
filesink locaton=tmp.264<br>
to recorder your images.<br>
Use<br>
gst-launch filesrc location=tmp.264  ! h264parse  ! ffdec_h264 ! ffmpegcolorspace ! ximagesink<br>
to play the file.<br>
<div><div></div><div class="h5"><br>
<br>
-----Original Message-----<br>
From: Praveen Pandey [mailto:<a href="mailto:Praveen.Pandey@aricent.com">Praveen.Pandey@aricent.com</a>]<br>
Sent: Tuesday, August 24, 2010 7:50 PM<br>
To: Discussion of the development of GStreamer<br>
Subject: Re: [gst-devel] Gstreamer 264<br>
<br>
You can use &#39;h264parse&#39; plugin for parsing .264 file<br>
<br>
gst-launch filesrc location= &lt;.264 file&gt; ! h264parse ! ffdec_h264 !  fakesink / or any real video renderer<br>
<br>
BR,<br>
Praveen<br>
________________________________________<br>
From: hsteven [<a href="mailto:zixia.huang@gmail.com">zixia.huang@gmail.com</a>]<br>
Sent: Thursday, August 12, 2010 1:13 AM<br>
To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
Subject: [gst-devel] Gstreamer 264<br>
<br>
Hello, I am confused with the 264 codec used in gstreamer. When I test the<br>
x264enc and ffdec_h264 using the following command:<br>
<br>
gst-launch camerasrc ! queue !<br>
video/x-raw-yuv,format=\(fourcc\)I420,width=1280,height=480 ! x264enc !<br>
queue ! ffdec_h264 ! ffmpegcolorspace ! sdlvideosink fullscreen=true<br>
<br>
The performance is perfect.<br>
<br>
However when I try to save the encoded 264 stream into a file as:<br>
<br>
gst-launch camerasrc ! queue !<br>
video/x-raw-yuv,format=\(fourcc\)I420,width=1280,height=480 ! x264enc !<br>
filesink locaton=tmp.264<br>
<br>
And I try to play tmp.264 using ffplay, it seems that ffmpeg does not know<br>
the format the encoded 264 stream.<br>
<br>
In addition, I try to play another 264 stream directly encoded using libx264<br>
on gstreamer, ffdec_h264 seems does not understand the format.<br>
<br>
So does any person know this issue? And can I solve the problem?<br>
<br>
Thank you so much!<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-264-tp2321786p2321786.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-264-tp2321786p2321786.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program<br>
Be part of this innovative community and reach millions of netbook users<br>
worldwide. Take advantage of special opportunities to increase revenue and<br>
speed time-to-market. Join now, and jumpstart your future.<br>
<a href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank">http://p.sf.net/sfu/intel-atom-d2d</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>
<br>
&quot;DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus.&quot;<br>

<br>
------------------------------------------------------------------------------<br>
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program<br>
Be part of this innovative community and reach millions of netbook users<br>
worldwide. Take advantage of special opportunities to increase revenue and<br>
speed time-to-market. Join now, and jumpstart your future.<br>
<a href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank">http://p.sf.net/sfu/intel-atom-d2d</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>
<br>
------------------------------------------------------------------------------<br>
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program<br>
Be part of this innovative community and reach millions of netbook users<br>
worldwide. Take advantage of special opportunities to increase revenue and<br>
speed time-to-market. Join now, and jumpstart your future.<br>
<a href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank">http://p.sf.net/sfu/intel-atom-d2d</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></div></div></blockquote><div><br>Or if you just want to play it using ffplay or mplayer, put the encoded output in a container.<br>
 <br></div></div>gst-launch camerasrc ! queue ! video/x-raw-yuv,format=\(fourcc\)I420,width=1280,height=480 ! x264enc ! avimux<br>
filesink locaton=tmp.avi<br><br>ffplay tmp.avi<br><br>--<br>Raseel<br>