Fix calculating incorrect frame counts for certain .webm files. An example is https://danbooru.donmai.us/media_assets/5968481. Caused by ffmpeg printing multiple `frame= NNN` lines, and us taking the first one instead of the last one: frame= 1 fps=0.0 q=-0.0 size=N/A time=00:00:00.08 bitrate=N/A speed=2.07x [null @ 0x56046ff4e440] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 321 >= 321 [null @ 0x56046ff4e440] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 321 >= 321 frame= 395 fps=0.0 q=-0.0 size=N/A time=00:00:06.66 bitrate=N/A speed=12.3x frame= 791 fps=759 q=-0.0 size=N/A time=00:00:13.26 bitrate=N/A speed=12.7x frame= 1193 fps=772 q=-0.0 size=N/A time=00:00:19.94 bitrate=N/A speed=12.9x frame= 1374 fps=780 q=-0.0 Lsize=N/A time=00:00:22.86 bitrate=N/A speed= 13x video:719kB audio:4288kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
6.3 KiB
6.3 KiB