[FFmpeg-user] what is wrong with the map parameter?

Gabriel Dina gabriel.dina at gmail.com
Tue Mar 7 14:02:40 EET 2023


Hi,

I don't understand why the map parameter does not select only one video
stream:

ffmpeg -i 'uploads/movie.mov' -i ./assets/logo.png -filter_complex
"[1][0]scale2ref=w='iw*1/5':h='ow/mdar'[v1];[0][v1]overlay=main_w-overlay_w-5:5[out]"
-map '[out]:v:1' 'uploads/outputx.mp4'

 ffprobe uploads/outputx.mp4...

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'uploads/outputx.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.76.100
  Duration: 00:00:03.64, start: 0.000000, bitrate: 521 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
smpte170m/bt709/bt709), 360x480, 255 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
smpte170m/bt709/bt709), 360x480, 255 kb/s, 29.97 fps, 29.97 tbr, 30k tbn,
59.94 tbc
    Metadata:
      handler_name    : VideoHandler


Thank you.


More information about the ffmpeg-user mailing list