VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hello,

    I want to join multiple videos as below.

    video01.mp4 with file01.mp4
    video01.mp4 with file02.mp4
    video01.mp4 with file03.mp4
    .
    .
    .
    video01.mp4 with file240.mp4

    So, Always want to join video01.mp4 with another folder containing 200+ files, Take video01 and one by one video Separately from another drive and join that video so I can add my custom video before all the video and save using same file name like file01.mp4, file02.mp4 after joining video01.mp4

    Is there any software and any other thing to perform like this?

    waiting for some favorable reply.

    Thanks in advance, I am newbie in this kind of work.
    Last edited by princebhalani; 7th Sep 2016 at 06:26. Reason: forgot to add How to
    Quote Quote  
  2. Perhaps concatenate with ffmpeg

    I am newbie in this kind of work.
    But you need to give more info.

    What's your OS?

    Do the videos have the same specs in terms of codecs, resolution etc, ie can "copy" be used or is a re-encode needed?

    If the later what's your target in terms of container (appearantly .mp4), video/audio codec (h.264/AAC?), resolution etc.

    And perhaps how do you intend to play the new videos.
    Last edited by videobruger; 7th Sep 2016 at 10:47. Reason: spelling
    Quote Quote  
  3. Originally Posted by videobruger View Post
    Perhaps concatenate with ffmpeg

    I am newbie in this kind of work.
    But you need to give more info.

    What's your OS?

    Do the videos have the same specs in terms of codecs, resolution etc, ie can "copy" be used or is a re-encode needed?

    If the later what's your target in terms of container (appearantly .mp4), video/audio codec (h.264/AAC?), resolution etc.

    And perhaps how do you intend to play the new videos.
    Thanks for your reply, I am using windows 7 Ultimate 64-bit

    All are .mp4 files.

    Name:  Untitled.jpg
Views: 292
Size:  18.5 KB

    I don't know more about video/audio codec (h.264/AAC?) etc. Resolution HD
    Quote Quote  
  4. Download ffmpeg 64-bit static and unzip it.

    Goto the subfolder "\ffmpeg-20160908-2793ebd-win64-static\bin".

    If not already use "View" in Windows File Explorer and tic "Hidden Items"

    Click image for larger version

Name:	Hidden.png
Views:	83
Size:	23.4 KB
ID:	38493

    Copy the file "ffmpeg.exe" from the sub folder to "C:\Windows\System32" (Click the Administrator).

    Copy the file "video01.mp4" to the folder with 200+ .mp4. In that folder create a sub folder "join" and open a command prompt

    Click image for larger version

Name:	CommandPrompt.png
Views:	73
Size:	29.9 KB
ID:	38494

    At the command prompt type "dir /b file *.mp4 > filelist.txt"

    Then copy this line

    Code:
    for /f %h in (filelist.txt) do ffmpeg -i "video01.mp4" -i "%h" -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -c:v libx264 -preset medium -crf 20 -c:a aac "join\%h"
    and paste it into the command prompt (right click -> paste) and press "Enter".

    This joins your videoes in the sub folder "join". For this to work it requires all your videos has a 1280X720 resolution. Otherwise additional parameters for ffmpeg might be needed.
    Quote Quote  
  5. Thanks for the solution, It works.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!