[FFmpeg-user] ffmpeg - executing 2 or more command in one time

DopeLabs dopelabs at dubstep.fm
Sat Apr 27 13:54:14 EEST 2019


you can probably combine all that into a single filter chain


ffmpeg -f concat -i videos.txt -i music.mp3 -i logo.png -i picture.png -filter_complex "[0:v][1:v]overlay=main_w-overlay_w-20:20[bg];[bg][2:v]overlay=10:10,drawtext=fontfile=verdanab.ttf:text=HELLO:fontcolor=white:fontsize=36:bordercolor=black:borderw=5:x=170:y=80-text_h/2,subtitles=subtitle.srt" -c:a copy OUTPUT.mp4

(untested)


> On Apr 27, 2019, at 1:07 23AM, Ahmet Güler <ahmetguler at happy.com.tr> wrote:
> 
> Hello,
> 
> 
> 
> I have 4 ffmpeg commands, I execute them respectively, they work, but I want
> to execute them in one time and one command. How to do that?
> 
> ffmpeg -f concat -i videos.txt -i music.mp3 -c copy VIDEO1.mp4
> 
> 
> 
> ffmpeg -i VIDEO1.mp4 -i logo.png -i picture.png -filter_complex
> "[0:v][1:v]overlay=main_w-overlay_w-20:20[bg];[bg][2:v]overlay=10:10[v]"
> -map "[v]" -map 0:a -c:a copy VIDEO2.mp4
> 
> 
> 
> ffmpeg -i VIDEO2.mp4 -vf drawtext="fontfile=verdanab.ttf: text='HELLO':
> fontcolor=white: fontsize=36: bordercolor=black: borderw=5: x=170:
> y=80-text_h/2" -codec:a copy VIDEO3.mp4
> 
> 
> 
> ffmpeg -i VIDEO3.mp4 -vf subtitles=subtitle.srt OUTPUT.mp4
> 
> 
> 
> Best Regards,
> 
> 
> 
> ---
> Bu e-posta virüslere karşı Avast antivirüs yazılımı tarafından kontrol edilmiştir.
> https://www.avast.com/antivirus
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list