Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 46349  / 1 Year ago, fri, december 23, 2022, 8:47:49

I am using FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.3 and it doesn't allow me to use -filter_complex.



It shows:



ffmpeg: unrecognized option '-filter_complex'


I want to overlay 2 videos, how can I get that option?


More From » ffmpeg

 Answers
1

Too old



Your version is way too old, and in fact I don't think it even supports any filters if I recall correctly. You can check with ffmpeg -filters.



Get a new ffmpeg



To get a recent version you can compile ffmpeg or simply download a static build. Users of Ubuntu 15.04 or newer can just install ffmpeg from the repository.



Example command



This example will:




  1. Place video1.mp4 20 pixels down and 40 pixels over.

  2. Place video2.mp4 in the middle.

  3. Combine audio from video1.mp4 and video2.mp4.



    ffmpeg -i bg.mp4 -i video1.mp4 -i video2.mp4 -filter_complex 
    "[0:v][1:v]setpts=PTS-STARTPTS,overlay=20:40[bg];
    [bg][2:v]setpts=PTS-STARTPTS,overlay=(W-w)/2:(H-h)/2[v];
    [1:a][2:a]amerge=inputs=2[a]"
    -map "[v]" -map "[a]" -ac 2 output.mp4



Also see




[#32215] Saturday, December 24, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
heathree

Total Points: 157
Total Questions: 132
Total Answers: 108

Location: Honduras
Member since Mon, Apr 5, 2021
3 Years ago
;