VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. LIl GANGSTA
    Join Date
    Oct 2019
    Location
    India
    Search PM
    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
    Quote Quote  
  2. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    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
    Note that this method performs a re-encode.

    2. concat demuxer
    mylist.txt
    file '/path/to/file1'
    file '/path/to/file2'
    file '/path/to/file3'
    ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4

    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.
    Quote Quote  



Similar Threads