How can i optimize this?

Anything that does not fit into the other categories.
Post Reply
Posts: 1
Joined: Wed Jul 01, 2015 6:08 pm

How can i optimize this?

Post by infected » Wed Jul 01, 2015 7:36 pm

I'm trying to run a script to add a intro + watermark a lot of videos, the thing is i only managed to do this with 2 scripts:

ffmpeg -i "%a" -i logo.png -filter_complex "scale=1280x738,setsar=1:1,overlay=main_w-overlay_w-10:main_h-overlay_h-10" path\_%a
ffmpeg -i path\intro.mp4 -i path\_%a -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -bsf:a aac_adtstoasc path\%a

So i have to encode two videos (the scaled & watermarked one and the final one) every time. Can i do this with only one command?

Also, is there any way i can further optimize the command so i can do this encoding faster?


Post Reply