[FFmpeg-user] ffmpeg to get yuv file

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Apr 7 11:59:12 CEST 2013


Wu, Mandy <mandy.wu <at> intel.com> writes:

> I want to get yuv file of a source video (mp4). 
> I tried below 2 commands:
> Decode to yuv file directly from mp4: 
> 	ffmpeg -i souce.mp4 source1.yuv
> Demux the source file, and Decode the .H264 file to yuv:
> 	ffmpeg -i source.mp4 -vcodec copy -an source.h264
> 	ffmpeg -i source.h264 source2.yuv

You probably want to use -vsync 0 in both cases.
(If not, FFmpeg may duplicate / drop frames.)

Carl Eugen



More information about the ffmpeg-user mailing list