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

Jeff Langston jrlangston at gmail.com
Sat Mar 14 23:52:28 EET 2020


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

Which looking closer at the docs and some further experimentation I was
able to sort out my issue. I didn't realize the -pass argument also took a
stream specifier which was what I needed. To add additional -pass:0 1
-pass:1 1 and -pass:0 2
 -pass:1 2 etc as arguments to include the stream specifier in the pass
arguments for each of the different mappings / outputs I was looking to
generate. Oddly it's working without that and multiple -passlogfile
references when I am not including multiple audio tracks but I'm relieved I
was able to sort this out and thank you all for taking the time to look at
my issue and hopefully this will would be able to help anyone else if they
were trying to do the same thing.

Thanks again to all who contribute to ffmpeg and associated tools so
useful.


On Sat, Mar 14, 2020 at 3:07 PM Reindl Harald <h.reindl at thelounge.net>
wrote:

>
>
> Am 14.03.20 um 21:06 schrieb Carl Eugen Hoyos:
> > name to x264) but in general you cannot do this, you have to use the
> same output
> > format and especially the same audio for pass one and two. The reason is
> that
> > ffmpeg (the application) may duplicate (or drop) frames to keep a/v sync
> and if
> > you use different audio (like audio and no audio) for pass one and
> > two, the different
> > sync will completely brake two-pass encoding.
>
> simply no - using "-an" here for 10 years now *always* for the first pass
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list