[FFmpeg-user] overlay filter uses unmapped cover image

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


* 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
ffmpeg version N-52940-g43b6482 Copyright (c) 2000-2013 the FFmpeg developers
  built on May  9 2013 22:07:16 with gcc 4.0.1 (GCC) (Apple Inc. build 5493)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-network --disable-ffserver --enable-shared --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      52. 30.100 / 52. 30.100
  libavcodec     55.  7.100 / 55.  7.100
  libavformat    55.  4.101 / 55.  4.101
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 63.101 /  3. 63.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2802620] stream 0, timescale not set
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2802620] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.m4v':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: isomavc1M4A M4V mp42
    creation_time   : 2013-05-06 08:00:24
    title           : Test
  Duration: 00:04:14.38, start: 0.000000, bitrate: 784 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 728 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc
    Metadata:
      creation_time   : 2013-05-06 08:00:24
      handler_name    : test
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 52 kb/s
    Metadata:
      creation_time   : 2013-01-07 15:23:42
      handler_name    : test
    Stream #0:2: Video: mjpeg, yuvj420p, 512x384 [SAR 1:1 DAR 4:3], 90k tbr, 90k tbn, 90k tbc
Input #1, image2, from 'logo.png':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: png, rgba, 100x20, 25 tbr, 25 tbn, 25 tbc
[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.

-- 
  Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]
free movies       --->>> http://www.blacktrash.org/underdogma
http://itunes.apple.com/podcast/underdogma-movies/id363423596


More information about the ffmpeg-user mailing list