Videos produced with -shortest are longer than the audio
|Reported by:||Igal Tabachnik||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
I tried following the guide for converting an audio file to video for YouTube, and I noticed that when using the
-shortest switch, the videos produced were about 10 seconds longer than the audio track, and it was impossible to skip.
After some searching, I found an old thread that suggests this was a bug introduced sometime in 2012, and suggested using an older version.
I was able to find that last good build, after which the bug happens!
Last good build was:
ffmpeg-20120720-git-85761ef found here: https://ffmpeg.zeranoe.com/builds/win64/static/
All subsequent versions after it, including the very latest, have this incorrect behavior.
How to reproduce:
Attached is an 8 second .flac file (and an image for still frame) Run the following:
ffmpeg -loop 1 -framerate 1 -i bg.jpg -i recit24bit.flac -shortest output.mp4
When done with the "good" build 85761ef, the resulting mp4 is 10 seconds long
When done with any other newer version, the resulting mp4 is 1 minute 08 seconds on my machine.
See attached logs for additional info.