[FFmpeg-user] Making length of both videos equal while using chromakey (colorkey )filter.

Usman Archi usmanarchi66 at gmail.com
Thu Mar 28 08:30:44 EET 2019

This works.

-y -i (videoPath1) -i (videoPath2) -filter_complex
-map [out] -map 0:a -b 3200000 -s 640:360 -c:a copy (outputPath)

(removed the setpts command and ALL overlay parameters)

This does not work (added both setpts and overlay parameters)

-y -i (videoPath1) -i (videoPath2) -filter_complex
-map [out] -map 0:a -b 3200000 -s 640:360 -c:a copy (outputPath)

This also does not work (removed setpts)

-y -i (videoPath1) -i (videoPath2) -filter_complex
-map [out] -map 0:a -b 3200000 -s 640:360 -c:a copy (outputPath)

Neither this (removed overlay parameters)

-y -i (videoPath1) -i (videoPath2) -filter_complex
-map [out] -map 0:a -b 3200000 -s 640:360 -c:a copy (outputPath)

So any time I add the setpts command OR the overlay parameters, it doesn't

Are you saying: '[0:v][a][ckout]overlay'  are 3 inputs, and it shouldn't
work? If yes, then this does work. I can even show you a video of this

Any help would be appreciated.


On Wed, Mar 27, 2019 at 7:15 PM Nicolas George <george at nsup.org> wrote:

> Usman Archi (12019-03-27):
> > [0:v][a][ckout]overlay=0:0:enable=gte(t\,5):eof_action=pass[despill]
> I do not think that overlay can accept three inputs.
> When you have that kind of error, re-read your filter graph very very
> carefully. Make a diagram on a blackboard of a piece of paper if need
> be.
> Regards,
> --
>   Nicolas George
> _______________________________________________
> 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