Created
January 14, 2023 19:21
-
-
Save MoatazAbdAlmageed/d0b330b2fc9ed41b4098131f93770c40 to your computer and use it in GitHub Desktop.
Merge multiple videos and one audio with ffmpeg
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
# add this to .bashrc | |
``` | |
aio(){ | |
for f in *.$1; do echo "file '$f'" >> list.txt; done | |
ffmpeg -f concat -safe 0 -i list.txt -c copy aio.$1 | |
} | |
``` | |
## usage | |
- aio mp3 | |
- aio mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment