[FFmpeg-user] FFmpeg accuracy issues.

Michael Bradshaw mbradshaw at sorensonmedia.com
Fri Jul 27 16:46:34 CEST 2012


Please don't top post (if you need to you can google it).

On Fri, Jul 27, 2012 at 8:27 AM, Shlomi Shalem <shlomi at shalem.co> wrote:

> [...]
>
> As you can see, it didn't solve the problem. Am I misusing it? Any other
> idea?


Yeah, you're misusing it. Some files don't have the duration or other info
stored in some header that FFmpeg can just parse. Some files, these things
have to be guessed, and the only way to do that is to just read part of the
file in. The more you read, the better your guess will be (if you read the
whole file, you should have very accurate results). analyzeduration sets
the amount that FFmpeg should read from the file in order to make the
guesses it needs. Setting it to zero is like saying don't read it and just
guess outright (iiuc). Setting it to a higher number allows FFmpeg to read
more of the file. The default value is 5000000 (5MB).

--Michael


More information about the ffmpeg-user mailing list