master-of-zen / Av1an

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding
GNU General Public License v3.0
1.51k stars 155 forks source link

Encoding fails with "FRAME MISMATCH" when encoding with aomenc --enable-keyframe-filtering=2 #367

Closed shssoichiro closed 3 years ago

shssoichiro commented 3 years ago

This is likely due to the fact that keyframe filtering mode 2 is not supported by all decoders. Whatever decoder av1an is using is failing to decode the files.

I'll self-assign this and take a look.

master-of-zen commented 3 years ago

@shssoichiro It's because --enable-keyframe-filtering=2 fails to work with FFmpeg. Av1an use ffmpeg -c copy to count the number of frames, and that just reports 0 if you use --enable-keyframe-filtering=2

shssoichiro commented 3 years ago

I'll see if there's a way to work around it. There are like 10 different ways to get the frame count with ffmpeg, hopefully one of them will work.