How to add an intro to multiple video files in 1 command | Working with ffmpeg batch #TheFFMPEGGuy

How to add an intro to multiple video files in 1 command | Working with ffmpeg batch #TheFFMPEGGuy

The FFMPEG guy

1 год назад

618 Просмотров

Today, we show how to add an intro to multiple files with 1 single command! 10 or 1000 of files, no problem! All parameters can be customized to suit your needs.
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
EXAMPLES
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
❶ FIRST, let’s learn how to add an intro to 1 video file
→ ffmpeg -i intro.mp4 -i input01.mp4 -filter_complex concat=n=2:v=1:a=1 output01.mp4

with:
* -i intro.mp4 = Imports file «intro.mp4» …
* -i input01.mp4 = … and file «input01.mp4» …
* -filter_complex concat = … and calls the “concat” (complex) filter function …
* n=2 = … asking to concatenate 2 segments (input files), …
* v=1 = … considering 1 video stream …
* a=1 = … and 1 audio stream.
* output01.mp4 = Outputs finally the result to file «output01.mp4»

❷ WHAT ABOUT... we now need to apply the same FFMPEG command to 100+ files?
→ for %a in ("oldfiles\*.mp4") do ffmpeg -i intro.mp4 -i "%a" -filter_complex concat=n=2:v=1:a=1 "newfiles\%~na.mp4"

with:
* for %a in ("oldfiles\*.mp4") do = For every *.mp4 files in the “oldfiles” folder, …
* ffmpeg -i intro.mp4 -i "%a" -filter_complex concat=n=2:v=1:a=1 = … execute the ffmpeg concatenation command seen earlier…
* newfiles\%~na.mp4 = … keeping the resulting filename unchanged. Note: all files produced will end up in the “newfiles” folder

ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
→ Catch up with the FFMPEG guy Channel
https://www.youtube.com/playlist?list=PLFJLws5_RlCuExg6UNOu3QCuP0uXZHT9o
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
MUSIC
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
→ IDCIDK - Geographer
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
An FFMPEG question?
Ask the FFMPEG guy
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ

Тэги:

#ffmpeg #how_to #add #intro #batch #multiple_files #automation #ffmpeg_automation #automatic #tutorial #instructions #video #how #video_editing #software #video_software #vid #vids #free #tip #trick #the_FFMPEG_guy #ffmpge #ffmpg #editing_tool #editing #tool #video_editing_software #freeware
Ссылки и html тэги не поддерживаются


Комментарии: