Last active
March 17, 2022 14:57
-
-
Save mark-lumbao/aef04b86c2018e9f354d4ebc1100f93b to your computer and use it in GitHub Desktop.
Concatenate multiple audio and video files into one .mkv file
This file contains 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
#!/bin/env bash | |
# Concatenate multiple audio and video files | |
# that are in the same directory into one .mkv file | |
ls | | |
xargs -I @ echo "file '@'" >> input.txt && | |
ffmpeg -f concat -i input.txt -c copy output.mkv && | |
rm input.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment