Option 'analyzeduration' not respected when using concat demuxer
|Reported by:||David Banks||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
When using the concat demuxer, the option -analyzeduration does not have any effect. This can cause some files to be incorrectly analyzed.
How to reproduce:
Compare the output of the following commands
amoe@motylyok $ ffmpeg -v 9 -loglevel 99 -analyzeduration 2147483647 -i file1.mkv bsfj.mkv amoe@motylyok $ cat concat.lst file 'file1.mkv' amoe@motylyok $ ffmpeg -v 9 -loglevel 99 -analyzeduration 2147483647 -f concat -i concat.lst bsfj.mkv ... [matroska,webm @ 0x2e656e0] max_analyze_duration 5000000 reached at 5019000 microseconds [matroska,webm @ 0x2e656e0] Could not find codec parameters for stream 0 (Video: h264, none(left), 496x360, 1/2000): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options ...
The first command analyzes the input file
file1.mkv without problems, although only when using the
analyzeduration option. However, specifying
analyzeduration on the
concat demuxer has no effect. I would hope that each file to be concatenated would be analyzed. For this demo it's only one file that's being concatenated so there is technically no point in using
concat. In actuality though, I need to concatenate longer lists of files, but those that require a higher value for
analyzeduration can't be used in these lists without causing broken output.