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"
Pause
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
according to Google:
1. concat video filter
Code: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
mylist.txt
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'
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.mkvLast 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.
Similar Threads
-
batch merge videos and audios with ffmpeg
By m0ck in forum Video ConversionReplies: 6Last Post: 27th May 2021, 08:12 -
is there any tool which joins 3 seconds intro to all 100 videos in batch
By gta5 in forum Newbie / General discussionsReplies: 5Last Post: 4th Sep 2020, 08:56 -
Batch trim Videos using FFMPEG
By dexterfox44 in forum Newbie / General discussionsReplies: 1Last Post: 14th Oct 2019, 13:11 -
Batch Titling Tool to Add Titles to Thousands of Music Videos?
By editman21 in forum EditingReplies: 2Last Post: 31st Dec 2018, 07:20 -
Needed Adding Intro in batch
By bravelighter in forum Video ConversionReplies: 6Last Post: 18th May 2016, 01:30