Created
December 31, 2021 16:00
-
-
Save janbaer/a768d9c21c2f716fc34d0936d2cb3705 to your computer and use it in GitHub Desktop.
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
for f in $(ls *.mp4); do | |
ffmpeg -i $f -c copy -bsf:v h264_mp4toannexb -f mpegts $f.ts | |
done | |
CONCAT=$(echo $(ls *.ts) | sed -e "s/ /|/g") | |
ffmpeg -i "concat:$CONCAT" -c copy -bsf:a aac_adtstoasc output.mp4 | |
rm *.ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment