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

edward20 edward.chopuryan at gmail.com
Mon Jul 29 08:34:33 CEST 2013


Spirian wrote
> 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@

> >;
> Date:  Sat, Jul 27, 2013 04:00 AM
> To:  "FFmpeg user questions"<

> ffmpeg-user@

> >; 
> 
> Subject:  Re: [FFmpeg-user] Decode H264 and save to yuv file
> 
> 
> 
> On 7/26/13, edward20 <

> edward.chopuryan@

> > 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
>> PPM
>> 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@

> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> .
> _______________________________________________
> ffmpeg-user mailing list

> ffmpeg-user@

> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Thanks for your reply but actually I need an example of C code how to save
frames in file after decoding video and extracting frames. Can you provide
me an example?



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Decode-H264-and-save-to-yuv-file-tp4660204p4660291.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list