0

Instructions from this site, Can ffmpeg input mp4 and convert it to m4b or m4a? fail to concatenate and convert multiple MP3 files into one M4A file.

I downloaded the ffmpeg static build for Windows 10 git-2020-06-26-7447045 from http://ffmpeg.zeranoe.com/builds/

I generated a file list.txt containing the files to concatenate, numbered from 01.mp3 to 51.mp3 .

When I try to combine those MP3 files into 1 M4A file, the error happened as below. How do I resolve this?

I ran:

ffmpeg -f concat -safe 0 -i list.txt -vn -y -b:a 64k -acodec aac -ac 2 result.m4a

and got

[concat @ 000002652204c840] Line 1: unknown keyword '01.mp3'
list.txt: Invalid data found when processing input

Here's the content of list.txt:

01.mp3
02.mp3
03.mp3
04.mp3
05.mp3
06.mp3
07.mp3
08.mp3
09.mp3
10.mp3
11.mp3
12.mp3
13.mp3
14.mp3
15.mp3
16.mp3
17.mp3
18.mp3
19.mp3
20.mp3
21.mp3
22.mp3
23.mp3
24.mp3
25.mp3
26.mp3
27.mp3
28.mp3
29.mp3
30.mp3
31.mp3
32.mp3
33.mp3
34.mp3
35.mp3
36.mp3
37.mp3
38.mp3
39.mp3
40.mp3
41.mp3
42.mp3
43.mp3
44.mp3
45.mp3
46.mp3
47.mp3
48.mp3
49.mp3
50.mp3
51.mp3
1

Each line in the concat list must be either a comment (start line with #) or a keyword. To specify an input, start with file,

so 01.mp3 becomes file 01.mp3.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.