I want to add a 6 sec intro to my videos in bulk
i'm using this command
for %%A in (*.mkv) do ffmpeg -ovc copy -oac copy \intro.mp4 "output\%%A"
+ Reply to Thread
Results 1 to 2 of 2
according to Google:
1. concat video filter
ffmpeg -i opening.mkv -i episode.mkv -i ending.mkv \ -filter_complex "[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] concat=n=3:v=1:a=1 [v] [a]" \ -map "[v]" -map "[a]" output.mkv
2. concat demuxer
3. concat protocol
ffmpeg -i "concat:input1|input2" -codec copy output.mkv
This method does not work for many formats, including MP4, due to the nature of these formats and the simplistic concatenation performed by this method.
For batch it would be like:
For %%A in (*.mkv) do ffmpeg -i intro.mp4 -i %%A -filter_complex "[0:v] [0:a] [1:v] [1:a]concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" output.mkv
Last edited by Budman1; 14th Oct 2019 at 14:43.