[FFmpeg-user] Converting to h264

Cecil Westerhof Cecil at decebal.nl
Mon May 9 23:17:14 CEST 2011


Op maandag 9 mei 2011 18:14 CEST schreef Mike Scheutzow:

> You can not use '-vcodec copy' to convert from 'Video: mp4' to 'Video:
> h264'. These video types are different and have incompatible binary
> formats.
>
> You need to do a full re-encode, typically using '-vcodec libx264',
> along with the additional command line arguments that codec requires.

I found something that works:
    ffmpeg -y -i huiswerkIQCoaches02.avi -acodec libmp3lame -ar 44100 -ab 96k -vcodec libx264 -vpre slow -level 41 -crf 20 -bufsize 20000k -maxrate 25000k -g 250 -r 20 -s vga -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 7 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qComp)' -bf 16 -b_strategy 1 -bidir_refine 1 -refs 6 -deblockalpha 0 -deblockbeta 0 output.mp4

I do not understand it yet, but it looks likes it works. I have to
check it tomorrow at the client.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list