[FFmpeg-user] overlay filter uses unmapped cover image

Christian Ebert blacktrash at gmx.net
Wed May 15 11:10:38 CEST 2013


Hi,

How do I map the streams so that the overlay filter does not
select the cover image of the input video as overlay?

I thought I had deselected stream 0:2 by specifying -map 0:v:0?
Adding -map 1 also has no effect.

$ 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
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.mp4':
  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
[libx264 @ 0x2818c20] using SAR=1/1
[libx264 @ 0x2818c20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
[libx264 @ 0x2818c20] profile High, level 3.0
[libx264 @ 0x2818c20] 264 - core 132 r2310 76a5c3a - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options:  cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: isomavc1M4A M4V mp42
    title           : Test
    encoder         : Lavf55.4.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 12800 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (h264) -> overlay:main
  Stream #0:2 (mjpeg) -> overlay:overlay
  overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[Parsed_overlay_0 @ 0x220b800] Buffer queue overflow, dropping.
    Last message repeated 324 times
Buffer queue overflow, dropping.      0kB time=00:00:00.00 bitrate=N/A
[Parsed_overlay_0 @ 0x220b800] Buffer queue overflow, dropping.


-- 
\black\trash movie         _SAME  TIME  SAME  PLACE_
 --->> http://www.blacktrash.org/underdogma/stsp.php
\black\trash audio   _ANOTHER  TIME  ANOTHER  PLACE_
--->> http://www.blacktrash.org/underdogma/atap.html


More information about the ffmpeg-user mailing list