Opened 17 months ago
Last modified 7 months ago
#10314 new defect
FFmpeg concat introduces gaps, even encoding to wav; does not occur with mpg123.
Reported by: | Karen Róbertsdóttir | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffmpeg |
Version: | 5.0.2 | Keywords: | gaps, mp3, wav, mpg123 |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
mpg123 -w out_mpg123.wav 160k_75_80_15-8_v5_B/00015[5678]*
vs.
echo -n > list.txt; for i in 160k_75_80_15-8_v5_B/00015[5678]*.mp3; do echo "file '$i'" >> list.txt; done; ffmpeg -y -f concat -safe 0 -i list.txt -c copy out_ffmpeg.wav
See the attached waveform to see the gap, and the source files to recreate. My suspicion is that ffmpeg concat is not respecting the stated file length, and is instead just writing out whole blocks even if the block extends out beyond the end of the file.
Attachments (5)
Change History (8)
by , 17 months ago
Attachment: | Screenshot_20230410_141046.png added |
---|
comment:1 by , 7 months ago
Blocking: | Have to use mpg123 as a workaround; ruined the timings on my current project, have to redo. |
---|
the "blocking" field should not be filled with random text
comment:2 by , 7 months ago
That's not "random text", that's describing the work that the bug blocks and whether or not there's a workaround that lets the project continue (TL/DR, there is, but it requires 3rd party software). And seriously, your important takeaway from the bug report was... what information was put in what fields in the submission form?
comment:3 by , 7 months ago
The primary consumers of bug reports are FFmpeg developers. All these metadata fields are meant to be in relation to the FFmpeg project, not the bug reporter.
Waveform comparing the mpg123 (no added gap) .wav file with the ffmpeg (added gap) .wav file.