[FFmpeg-user] Decode H264 and save to yuv file

Spirian spirian at qq.com
Sat Jul 27 04:03:52 CEST 2013

Normally, Decode means converting an codec format to .yuv or rgb24 format.
for ffmpeg : ffmepg -i x1.avi x2.yuv  x1=input x2=output   

------------------ Original ------------------
From:  "Paul B Mahol"<onemda at gmail.com>;
Date:  Sat, Jul 27, 2013 04:00 AM
To:  "FFmpeg user questions"<ffmpeg-user at ffmpeg.org>; 

Subject:  Re: [FFmpeg-user] Decode H264 and save to yuv file

On 7/26/13, edward20 <edward.chopuryan at gmail.com> wrote:
> Hello everyone,
> I am new here and I am trying to decode video using ffmpeg c API and save
> as
> yuv file with YUV420P pixel format.
> All examples that I have seen they converting extracted frames to RGB or
> and then saving them to file.
> But I want to save as YUV. I don't know do I have to convert frames after
> decoding them or maybe after decoding the frames are already YUV frames.
> Any
> help will be appreciated.

Usually videos are in yuv420 and decoder outputs it in yuv420 planar
format. So after decoding there is nothing left to do.

But perhaps you need packed yuv format?
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

More information about the ffmpeg-user mailing list