<span class="ul-threaded" style="margin: 0.5em 0pt 0pt -20px;"><span class="text-cell">     Hello, all,<br><br>I am confused with the 264 codec used in gstreamer. When I test the x264enc and ffdec_h264 using the following command:
<br><br>gst-launch camerasrc ! queue ! 
video/x-raw-yuv,format=\(fourcc\)I420,width=1280,height=480 ! x264enc ! 
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 ! video/x-raw-yuv,format=\(fourcc\)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 know the format the encoded 264 stream.
<br><br>In addition, I try to play another 264 stream directly encoded 
using libx264 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!
</span></span>