Hey!
New to ffmpeg but this should be possible. Basically what I want is to have a script that is able to in bulk cut out the first 10 seconds of every video then add my intro.mp4 15 seconds into the video. The same intro.mp4 file should also be added at the end of the video.
At the moment I'm using this code which I found somewhere... It's a good foundation but I need to add the intro.mp4 15 seconds into the video and I need to cut of the first 10 seconds of the video. Oh and i'd also like to add a watermark (overlay.png) in the corner of the video. (Something like this: -i "%%a" -i overlay.png -filter_complex "overlay = 20:20"). I'd really appreciate any help as I'm very new to FFmpeg
SET RESOLUTION="1280:720"
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,p ad=%RESOLUTION%ow-iw)/2oh-ih)/2[v0]; [1:v]scale=%RESOLUTION%:force_original_aspect_ratio=1,p ad=%RESOLUTION%ow-iw)/2oh-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"
+ Reply to Thread
Results 1 to 3 of 3
-
-
adding a watermark means re-encode (not lossless).
-
Similar Threads
-
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, 09:56 -
Create a Few Seconds Video preview Using Ffmpeg
By dexterfox44 in forum Newbie / General discussionsReplies: 1Last Post: 28th Feb 2020, 07:49 -
Trying to cut the first few seconds of a MP4 video on a non-keyframe
By Cyber Akuma in forum Newbie / General discussionsReplies: 1Last Post: 30th Nov 2018, 22:42 -
cut/delete first 5 seconds of 100s of videos
By gta5 in forum EditingReplies: 4Last Post: 22nd Nov 2018, 06:08 -
Add Subtitles for the first few seconds of a video
By anime12345 in forum SubtitleReplies: 1Last Post: 22nd Feb 2016, 15:22