Best software to add batch intro + outro waternark into videos ?

antsaoo

Supreme Member
Joined
Oct 1, 2008
Messages
1,288
Reaction score
650
Good day.

I would need a software which can add intro and outro into multiple videos. Watermark would be good too at the same time so i don't need use many different softwares since it will most likely decrease quality and incease size.

if anyone is dong this and want share the software would be awesome.

Thnx
 
Sorry if i resume this post but i cant PM, You found what you was looking for? If so, Im interested Thanks
 
If anyone has found the solution for this, Please share we are in the need of the same thing, we would really appreciate your help!
 
Ffmpeg, start it by using cmd if you’re on windows. It’s fast and easy to use. Just google some ffmpeg command there are tons on stackoverflow
 
Hello, Thanks @sarapbeh .. you are really helpful ! :)
I tried ffmpeg, but can't really find a method to add mass intro to files in a certain folder, just like kissanime add their intro to every video before they upload, can you point me to some guide or documentation to do that ?
 
Give me your folder name , the path. I will write the script and post it here :) are you using windows?
 
Folder where video files are without intro: "D:\Intro encoding\IN"
Folder where video files should be saved after intro: "D:\Intro encoding\Out"
name of the intro file: "intro.mp4"
Yes I am using windows.
 
hey @sarapbeh do you know how to know take screenshots from multiple videos, random timestamps for thumbnails. And save multiple thumbnails from each video like

videofilename1_thumb_1.jpeg
videofilename1_thumb_2.jpeg
videofilename2_thumb_1.jpeg
videofilename2_thumb_2.jpeg
 
Folder where video files are without intro: "D:\Intro encoding\IN"
Folder where video files should be saved after intro: "D:\Intro encoding\Out"
name of the intro file: "intro.mp4"
Yes I am using windows.

1. Create a txt file. edit it and paste this code:

SET RESOLUTION="1280x720"
SET INPUT_FOLDER="IN"
SET INTRO="intro.mp4"
SET OUTPUT_FOLDER="Out"

for %%a in ("%INPUT_FOLDER%\*.*") do ffmpeg -i %INTRO% -i "%%a" -filter_complex "[0]scale=%RESOLUTION%[a],[1]scale=%RESOLUTION%, [a]concat=2[v]" -map "[v]" "%OUTPUT_FOLDER%\%%~na.mp4"


2. save it as ffmpeg.bat on your intro encoding folder, your intro.mp4 should also be inside your "intro encoding folder", important make sure it is bat file. the extension should be bat.

3. just edit the variables to your liking. RESOLUTION, INPUTFOLDER, INTRO AND OUTPUT FOLDER

4. run the script by double clicking the bat file you just created , ffmpeg.bat


Resolution guide:
resol.JPG

I have tested this on my computer, tell me if it works for you.
 
Last edited:
hey @sarapbeh do you know how to know take screenshots from multiple videos, random timestamps for thumbnails. And save multiple thumbnails from each video like

videofilename1_thumb_1.jpeg
videofilename1_thumb_2.jpeg
videofilename2_thumb_1.jpeg
videofilename2_thumb_2.jpeg
fwe.JPG
 
oops i made a mistake, no audio, and stretch resolution on 4:3 aspect. I will update my code later.
 
but how do I use it for a batch of videos

like all videos are in folder VID and snapshots in folder SNAP
 
Folder where video files are without intro: "D:\Intro encoding\IN"
Folder where video files should be saved after intro: "D:\Intro encoding\Out"
name of the intro file: "intro.mp4"
Yes I am using windows.
Disregard my previous code I made a mistake on resolutions (it will stretch videos with 4:3 aspect ratio) and sound (No audio)

this is the updated one:

Code:
SET RESOLUTION="1920:1080"
SET INPUT_FOLDER="input"
SET INTRO="intro.mp4"
SET OUTPUT_FOLDER="output"

for %%a in ("%INPUT_FOLDER%\*.*") do ffmpeg -i %INTRO% -i "%%a" -filter_complex "[0:v]scale=%RESOLUTION%:force_original_aspect_ratio=1,pad=%RESOLUTION%:(ow-iw)/2:(oh-ih)/2[v0]; [1:v]scale=%RESOLUTION%:force_original_aspect_ratio=1,pad=%RESOLUTION%:(ow-iw)/2:(oh-ih)/2[v1]; [v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" -map [v] -map [a] "%OUTPUT_FOLDER%\%%~na.mp4"

Just change the variables with the exact folders, resolution and intro file
 
Last edited:
but how do I use it for a batch of videos

like all videos are in folder VID and snapshots in folder SNAP
Just follow my batch code replace with your ffmpeg command :)

example

Code:
for %%a in ("folder_name\*.*") do  ----ffmpeg command here ---- "output.mp4"
 
Just change the variables with the exact folders, resolution and intro file
Hello @sarapbeh, I cannot thank you enough for your help.
But, when I try to run the bat script, it runs for sometime & then cmd crashes. Sorry i am really new to encoding arena & even more newbie with ffmpeg, Can you please tell what wrong Am I doing ?
For reference, I have made this video: https://streamable.com/l7lqe
 
that is really weird try running one video only using cmd. go to your folder using cd and activate command:

Code:
ffmpeg -i "intro.mp4" -i "input\1.mp4" -filter_complex "[0:v]scale=1920:1080:force_original_aspect_ratio=1,pad=1920:1080:ow-iw)/2:oh-ih)/2[v0]; [1:v]scale=1920:1080:force_original_aspect_ratio=1,pad=1920:1080:ow-iw)/2:oh-ih)/2[v1]; [v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" -map [v] -map [a] "output\1.mp4

make sure you are at your encoding folder before activating this command, you can navigate to your folder by typing cd /path to encoding folder/
 
If that doesnt work try to copy your encoding folder to your c: drive, I think ffmpeg cannot access your d: drive , copy to c drive then activate the bat file
 
I would be glad if you can help me set up the script, I tried but seems I'm doing something wrong.
 
1. Create a txt file. edit it and paste this code:

SET RESOLUTION="1280x720"
SET INPUT_FOLDER="IN"
SET INTRO="intro.mp4"
SET OUTPUT_FOLDER="Out"

for %%a in ("%INPUT_FOLDER%\*.*") do ffmpeg -i %INTRO% -i "%%a" -filter_complex "[0]scale=%RESOLUTION%[a],[1]scale=%RESOLUTION%, [a]concat=2[v]" -map "[v]" "%OUTPUT_FOLDER%\%%~na.mp4"


2. save it as ffmpeg.bat on your intro encoding folder, your intro.mp4 should also be inside your "intro encoding folder", important make sure it is bat file. the extension should be bat.

3. just edit the variables to your liking. RESOLUTION, INPUTFOLDER, INTRO AND OUTPUT FOLDER

4. run the script by double clicking the bat file you just created , ffmpeg.bat


Resolution guide:
View attachment 117940

I have tested this on my computer, tell me if it works for you.

Thanks a lot, it works fine, but I have a problem, using this code the videos are too weighs, for example 1 video that normally weighs 70mb, after using ffmpeg it weighs 700mb, is there any way to fix that?
 
Back
Top