Le nonidi 19 fructidor, an CCXXIV, Carl Eugen Hoyos a écrit : > How is this supposed to work (in a general sense, unrelated > to a codec or an implementation)? > Two-pass encoding indicates constant bitrate afaict.
You are mistaken, there is no need for two passes for constant bitrate. Two passes is necessary when local optimization does not work, i.e. when there is need of information about the end of the file to make decisions about the beginning. The most obvious example is to achieve a target AVERAGE bitrate. Or, equivalently, to achieve a target total size. For example to fit a movie on exactly 700 Mo to burn it on a CD-R. If the second half of the movie is unexpectedly quiet, then it will consume less bits than expected, yielding a file of significantly less than 700 Mo: it was possible to achieve a better overall quality. If the second half of the movie is unexpectedly nervous, then it will consume more bits than expected, yielding a file of significantly more than 700 Mo: it is necessary to start again with a lower overall quality. Hence the two passes: first see what parts of the movie are quiet and what parts are nervous, then distribute the quality evenly. There is no need for two passes when encoding for a certain target quality, nor for a certain target constant bitrate, or even constant on average over a few seconds. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".