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 3 of 3
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 13:43.
Is your intro static images or another video.? Both should be same format, size,etc. So one will probably need to be recorded to match the other.