Last active
September 11, 2017 13:57
-
-
Save nathanchere/f000b8e29fa174da21869d79084f78f0 to your computer and use it in GitHub Desktop.
Batch file for converting between video containers with ffmpeg
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
| Usage: combine.bat mp4 m4a mkv | |
| will combine all mp4 and m4a files into mkv containers | |
| Assumes same file names other than extensions | |
| for %%f in (*.%1) do call ffmpeg -i "%%~nf.%1" -i "%%~nf.%2" -vcodec copy -acodec copy "%%~nf.muxed.%3" |
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 (*.ts) do call ffmpeg -i "%%~f" -vcodec copy -acodec copy "%%~nf.mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment