Skip to content

Instantly share code, notes, and snippets.

@tgcnzn
Last active September 23, 2020 01:45
Show Gist options
  • Save tgcnzn/6bdbb728f0f602cf92cf37c35349f48b to your computer and use it in GitHub Desktop.
Save tgcnzn/6bdbb728f0f602cf92cf37c35349f48b 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