[FFmpeg-user] overlay filter uses unmapped cover image

Christian Ebert blacktrash at gmx.net
Wed May 15 13:34:28 CEST 2013


* Christian Ebert on Wednesday, May 15, 2013 at 13:09:34 +0200
> * Carl Eugen Hoyos on Wednesday, May 15, 2013 at 10:29:57 +0000
>> Christian Ebert <blacktrash <at> gmx.net> writes:
>>> $ ffmpeg -i test.mp4 -i logo.png -map 0:v:0 -filter_complex
>>> overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4
>> 
>> -filter_complex [0:v][2:v]overlay
>> One of the examples in 
>> http://ffmpeg.org/ffmpeg-filters.html#Examples-8 
>> shows this syntax.
> 
> Thanks - it's [0:v][1:v] though - but I had already given up on
> that after:
> 
> ffmpeg -i test.m4v -i logo.png -filter_complex scale=640:480,[0:v][1:v]overlay=main_w-overlay_w-10:main_h-overlay_h-10 test.mp4
[...]
> [AVFilterGraph @ 0x220d280] Too many inputs specified for the "overlay" filter.
> Error configuring filters.
> 
> Does not give any errors when the overlay filter is at the
> beginning of the chain (I use other filters too), but I'd have to
> check the results.

Nah, I do want the overlay at the end of the chain - but fail
miserably with this mapping stuff.

There must be a way - if the input movie does not contain a cover
image it works just fine at the end.

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions


More information about the ffmpeg-user mailing list