Read from YUV file

Tim Müller tim at centricular.com
Tue Feb 16 10:08:55 UTC 2016


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

> How we can read from YUV file using C code and encode that file using
> x264enc and finally save that encoded output in .264 file?

It depends what format your YUV file is in.

If it's y4m use

  filesrc location=video.y4m ! y4mdec ! ...

If it's just raw YUV data use

  filesrc location=video.yuv ! videoparse format=i420 width=..
height=.. ! ...

Cheers
 -Tim

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




More information about the gstreamer-devel mailing list