[FFmpeg-devel] overlay filter option/alternative
shyamaldass001 at gmail.com
Fri Dec 4 07:16:07 CET 2015
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
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]
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
Thanks & Regards
On Fri, Dec 4, 2015 at 10:32 AM, Ryan Williams <ryan at ryanwilliams.id.au>
> 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 at ffmpeg.org
More information about the ffmpeg-devel