Hi, I need to remove the green screen gradient. When I am using the colorkey option blend and similarity. I found there is spills coming in hair. Please can you suggest me the method to removing that spill from the command line in FFMPEG.
My command is as follow : ffmpeg -i background_video.mp4 -i overlaying_video_with_green_screen.mp4 -filter_complex "[0:v]setpts=PTS-STARTPTS [V1]; [1:v] eq=1.0:0:1.3:2.4:0.175686275:0.103529412:0.031372549:0.4, curves=r='0.2/0.5':g='0.4/0.5':b='0.2/0.5', *colorkey=#0a7c58:0.1:0.2*, pad=width=1280:height=1020:x=0:y=0:color=#000000, drawtext=fontsize=50:fontcolor=#ffffff: box=1: boxcolor=#000000:fontfile=/data/arial.ttf:text='Enter your video message here':x=20:y=820, setpts=PTS-STARTPTS, scale=1280:-1[V2]; [V1][V2]overlay=shortest=1:x=1:y=1" -pix_fmt yuv420p -y final_video.mp4 I will wait for your response. Thanks in advance Shyamal Thanks & Regards Shyamal On Fri, Dec 4, 2015 at 10:32 AM, Ryan Williams <r...@ryanwilliams.id.au> wrote: > TLDR, Would you consider an 'underlay' filter or perhaps an option on the > 'overlay' filter that reverses the order of the input labels? > > Consider the following shorthand syntax "[input][a] overlay [b] overlay > [c] overlay [output]" > Which expands to "[input][a] overlay [unnamed1]; [b][unnamed1] overlay > [unnamed2]; [c][unnamed2] overlay [output]" > Giving the final layer composition of "c,b,input,a" > > If there was an underlay filter or equivalent the shorthand syntax > "[input][a] overlay [b] underlay [c] underlay [output]" > Would expand to "[input][a] overlay [unnamed1]; [b][unnamed1] underlay > [unnamed2]; [c][unnamed2] underlay [output]" > Giving the final layer composition of "input+a+b+c" > > I am aware that I can provide longhand syntax to achieve the same result > but I am programmatically apply a varying number of watermarks and would > like to avoid a lot of temporary labels. > If you're open to the idea I'm willing to code it. > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel