Log in

View Full Version : Encoding 2pass WMV with FFMPEG


squadjot
23rd December 2009, 04:41
Hi, found and older thread with follwing commandlines for FFMPEG

http://forum.videohelp.com/topic251008.html

ffmpeg -i %~n1.mpg -pass 1 -passlogfile %~n1 -b 3000 -minrate 0 -maxrate 8000 -bufsize 224 -vcodec mpeg2video -s 720x480 -r 29.97 -aspect 4:3 -hq -an foo.mpg
del foo.mpg
ffmpeg -i %~n1.mpg -pass 2 -passlogfile %~n1 -b 3000 -minrate 0 -maxrate 8000 -bufsize 224 -vcodec mpeg2video -s 720x480 -r 29.97 -aspect 4:3 -hq -an %~n1(720x480).mpg


It works for me, atleast i get a output file, but the script seems wrong to me.. Shouldnt 2nd pass have the output from1st pass as inputfile??

Dark Shikari
23rd December 2009, 04:42
It works for me, atleast i get a output file, but the script seems wrong to me.. Shouldnt 2nd pass have the output from1st pass as inputfile??No, that would be twice as lossy. The data from the first pass is stored in the statsfile.

Also, I highly doubt you actually want a bufsize that small.

squadjot
23rd December 2009, 05:35
Ah, ok. Thanks