0
I have a folder c:\myfolder\
containing a variable amount of mp4
files with same resolution / codec.
Now I need a .bat file to merge all videos into one.
e.g. c:\myfolder\1.mp4, c:\myfolder\2.mp4, c:\myfolder\3.mp4
into c:\myfolder\output.mp4
I've found a way to do this by creating a .txt
file first which contains all input videos and to do in another step
ffmpeg.exe -f concat -i mylist.txt -c copy output.mp4
Question: Is there a way to do this in one step?
A batch file could produce the
.cue
file for you, but I see a sorting problem if there are more than 9 files as 10.mp4 will follow 1.mp4 unless you use a countingfor /l
to build the list. – LotPings – 2018-06-18T14:22:56.680@LotPings there is no sorting problem since the files have sortable timestamps - could you write your code into a answer? – Dr. Snail – 2018-06-19T09:15:18.030