[FFmpeg-trac] #5456(undetermined:new): Videos produced with -shortest are longer than the audio
FFmpeg
trac at avcodec.org
Wed Apr 20 19:35:08 CEST 2016
#5456: Videos produced with -shortest are longer than the audio
-------------------------------------+-------------------------------------
Reporter: hmemcpy | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5456>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list