Opened 3 months ago

Closed 3 months ago

#10831 closed defect (invalid)

ffmpeg concat generates several issues in output file

Reported by: CharismaticMegafauna Owned by:
Priority: normal Component: undetermined
Version: 6.1 Keywords:
Cc: CharismaticMegafauna Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by CharismaticMegafauna)

Summary of the bug:
Using ffmpeg concat demuxer as described in https://trac.ffmpeg.org/wiki/Concatenate results in multiple issues in the output file when applied to wav files including overly long file length and intermittent noise.

How to reproduce:

% ffmpeg -report -f concat -safe 0 -i tracklist.txt -c copy concat.wav
ffmpeg version 6.1.1 obtained from the arch linux repositories as 2-6.1.1-3 https://gitlab.archlinux.org/archlinux/packaging/packages/ffmpeg/-/commits/main

Links to files involved are below. I attempted to use the uploader at https://streams.videolan.org/upload/ , but I was unable to figure out how to get links for my file uploads that I would be able to share here. Instead, they are hosted on my nextcloud server.
tracklist.txt attached below
ffmpeg-20240128-151906.log https://nextcloud.gooberweb.xyz/s/gzktofpgtA9HFoY
output file with issues, concat.wav https://nextcloud.gooberweb.xyz/s/aBc8B6a4DXBrzmG

The input files are music made by someone other than myself, but they upload them publicly for free download here https://cewlmine.bandcamp.com/album/shobomb so I feel they would not mind my sharing of the files which were used as the input, which I have uploaded here https://nextcloud.gooberweb.xyz/s/S2f8JMokwnrqEf9 .

I believe this bug to be caused by the input wav files, as I have had the same command operate successfully when different files populated tracklist.txt on the same machine.

Attachments (1)

tracklist.txt (1.1 KB ) - added by CharismaticMegafauna 3 months ago.
The tracklist file used the same way as mylist.txt in the example at https://trac.ffmpeg.org/wiki/Concatenate

Download all attachments as: .zip

Change History (3)

by CharismaticMegafauna, 3 months ago

Attachment: tracklist.txt added

The tracklist file used the same way as mylist.txt in the example at https://trac.ffmpeg.org/wiki/Concatenate

comment:1 by CharismaticMegafauna, 3 months ago

Description: modified (diff)

comment:2 by Gyan, 3 months ago

Resolution: invalid
Status: newclosed

The concat demuxer requires that all inputs share the same properties - for audio, those are codec, channel count and layout, sample rate, sample format. In your set, codec varies between pcm_s16le and pcm_s24le. This is not supported.

Note: See TracTickets for help on using tickets.