Read from YUV file

Tim Müller tim at centricular.com
Wed Feb 17 08:51:18 UTC 2016


On Tue, 2016-02-16 at 23:38 -0800, gstreader wrote:

Hi,

You're using an ancient version of GStreamer that is no longer
maintained, you should really try and upgrade to 1.x if possible at
all.

> I have tried this pipeline:
> gst-launch-0.10 -v filesrc location=akiyo_cif.yuv ! videoparse
> format=i420
> width=352 height=288 framerate=15/1 ! x264enc ! filesink
> location=encstr.h264
> 
> but it is not working properly.
> I am getting the error when I parse that encstr.h264 file using
> ldecod.
> Error:Error while getting the NALU in file format Annex B exit
> 
> What am doing wrong here!!!

I think in older versions x264enc would output H.264 in AVC stream-
format by default. You can force it to bytestream like this:


 ... ! x264enc ! video/x-h264,stream-format=byte-stream ! fakesink

Cheers
 -Tim


-- 
Tim Müller, Centricular Ltd - http://www.centricular.com




More information about the gstreamer-devel mailing list