Skip to content

Instantly share code, notes, and snippets.

@krisai
Forked from tgcnzn/ffmpeg-concat-audio-files.txt
Created September 23, 2020 01:45
Show Gist options
  • Save krisai/eb11cf723ceeec823b6828296f317bf2 to your computer and use it in GitHub Desktop.
Save krisai/eb11cf723ceeec823b6828296f317bf2 to your computer and use it in GitHub Desktop.
ffmpeg - concat multiple audio files with image into mp4
files.txt >>>
file '01.mp3'
file '02.mp3'
file '03.mp3'
file '04.mp3'
file '05.mp3'
file '06.mp3'
file '07.mp3'
ffmpeg -y -loop 1 -i cover.jpg \
-f concat -i files.txt \
-c:v libx264 -r 30 -pix_fmt yuv420p -vframes 46500 -c:a aac -b:a 192k -strict experimental \
-shortest output.mp4
OBS: 46500 = 25:50 minutes * 60 * 30fps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment