Last active
September 23, 2020 01:45
-
-
Save tgcnzn/6bdbb728f0f602cf92cf37c35349f48b to your computer and use it in GitHub Desktop.
ffmpeg - concat multiple audio files with image into mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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