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

Usman Archi usmanarchi66 at gmail.com
Wed Mar 27 16:03:49 EET 2019


Hi,
I'm making a video from two videos of different lengths. i want to trim
video which will be large in length and should be the same size of both
videos before removing chorma color(Alpha color) from one video.

i'm using following filter:

-y -i (videoPath1) -i (videoPath2) -filter_complex
[1:v]setpts=PTS-32/TB,colorkey=0x00ff00:0.3:0.15[a][ckout];[0:v][a][ckout]overlay=0:0:enable=gte(t\,5):eof_action=pass[despill];[despill]despill=green[out]
-map [out] -map 0:a -b 3200000 -s 640:360 -c:a copy (outputPath)


now i'm getting following error:
No output pad can be associated to link label 'ckout'.

can you please suggest me the solution?

i want to remove a color from foreground video and save the output video by
trimming the larger length video from both videos as the length of smaller
video in efficient time.


More information about the ffmpeg-user mailing list