[FFmpeg-user] overlay filter uses unmapped cover image

Christian Ebert blacktrash at gmx.net
Wed May 15 13:57:10 CEST 2013


* Carl Eugen Hoyos on Wednesday, May 15, 2013 at 11:44:20 +0000
> Christian Ebert <blacktrash <at> gmx.net> writes:
>>> -filter_complex [0:v][2:v]overlay
> 
>> ffmpeg -i test.m4v -i logo.png -filter_complex
>> scale=640:480,[0:v][1:v]overlay
> 
> Apart from the scale filter that changes your 
> filter chain (the command line you are testing 
> cannot work),

Yes, ermh, I noticed. But how could overlay work at the end of
the chain?

> you are still trying to feed the 
> cover to the overlay filter.

Ermh, I tested: [1:v] selects the logo and works at the beginning
of the chain, [2:v] breaks:

ffmpeg -i test.m4v -i logo.png -filter_complex [v:0][v:2]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
Stream specifier 'v:2' in filtergraph description [v:0][v:2]overlay=main_w-overlay_w-10:main_h-overlay_h-10 matches no streams.

Which for once makes sense even to me.

-- 
So dacht ich. Nächstens mehr.
_HÖLDERLIN:  HYPERION_  --->> http://www.blacktrash.org/hyperion


More information about the ffmpeg-user mailing list