[FFmpeg-user] Error ‘can’t open stats file’ using 2 pass encoding with multiple audio inputs

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Mar 15 00:55:16 EET 2020


Am Sa., 14. März 2020 um 22:53 Uhr schrieb Jeff Langston <jrlangston at gmail.com>:

> Right -an in the first pass is referenced in the docs "On pass 1, you may
> just deactivate audio and set output to null"

Let me repeat:
The problem is not only that you get a completely broken encode (wrong
frames get higher bitrates) but that neither ffmpeg nor x264 can realize
that there is an issue (at least not before encoding ends). Note that
while the issue does not appear on every encode, it happens particularly
often with mov and mp4 output. It should not happen with mkv output.

The issue cannot happen with MEncoder and avi output which was the
likely original source of all two-pass documentation.

Please remember that top-posting is not welcome here, Carl Eugen


More information about the ffmpeg-user mailing list