Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9258

How to Batch Apply Multiple Commands? FFmpeg

$
0
0

I have three commands that I've got to work individually for a set of videos, but cannot get them to apply together. I need to apply all three of these things to every video.

1) add audio, 2) speed up entire video, 3) apply text overlay

I've tried adding the different lines together using '&&' or separating by commas but can't get it to work. What is the right way to batch apply multiple edits to several videos?I'm also unsure how to apply the first line to all videos.Note: I'm on Windows and using the command line.

ffmpeg -i audiofile.mp3 -i videofile.mp4 -filter_complex amix=normalize=0:weights="0.02 1" videofileoutput.mp4for %f in ("folder\*.mp4") do ffmpeg -i "%f" -vf "setpts=(PTS-STARTPTS)/1.5" -af atempo=1.5 "folder\%~nf_suffix.mp4"for %f in ("folder\*.mp4") do ffmpeg -i "%f" -vf drawtext="fontfile=arial.ttf: text='@texthere': fontcolor=white@1: fontsize=50: x=(w-text_w)/2: y=(h-text_h)/2" "folder\%~nf_suffix.mp4"

Viewing all articles
Browse latest Browse all 9258

Trending Articles