Most efficient ways to mux a bunch of video & audio together? (FFmpeg code help)
Hi, noob here. Any help is appreciated!
I have a bunch of m4v and m4a files that I'd like batch mux together.
Currently I'm using the following logic in Window's command line:
ffmpeg -i "input-video.m4v" -i "input-audio.m4a" -c:v copy -c:a copy "output-video.mp4"
So for example, I slowly convert one video at a time, using the replace text feature in notepad++:
"C:\tools\ffmpeg-4.3.1-2020-11-19-full_build\bin\ffmpeg.exe" -i "replace-me!.m4v" -i "replace-me!.m4a" -c:v copy -c:a copy "replace-me!.mp4"
I was thinking this process could be much faster if I knew how to batch convert together everything at once, maybe like whatever the variable for any filename is (*.m4v, *.m4a?) or a batch script file, so that I don't have to specify and mux each video one by one.