Skip to main content
added 47 characters in body
Source Link
alexdo
  • 145
  • 1
  • 4
  • 10

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.

  1. FFmpeg command (ok): enter image description here

    ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "[1]scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t\,10\,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4
    
  2. I want to insert one videoMC (greenvideo.mp4) overlay another video Main and Background.

    enter image description here

  3. Video (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
    The green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4
    
  1. VideoMC (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
    The green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4
    

Please help me combine the above two code snippets into one?

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.

  1. FFmpeg command (ok):

    ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "[1]scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t\,10\,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4
    
  2. I want to insert one videoMC (greenvideo.mp4) overlay another video Main and Background.

    enter image description here

  1. VideoMC (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
    The green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4
    

Please help me?

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.

  1. FFmpeg command (ok): enter image description here

    ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "[1]scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t\,10\,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4
    
  2. I want to insert one (greenvideo.mp4) overlay another video Main and Background.

    enter image description here

  3. Video (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
    The green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4
    

Please help me combine the above two code snippets into one?

Improved overall formatting and some spelling.
Source Link
zx485
  • 2.3k
  • 12
  • 19
  • 24

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.

  1. FFmpeg command (ok):

    ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "1scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t,10,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4

    ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "[1]scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t\,10\,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4
    
  2. I want to insert one videoMC (greenvideo.mp4) overlay another video Main and Background.

    enter image description here

enter image description here

  1. VideoMC (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.

    VideoMC (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
    The green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4
    
  • the green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4

Please help me?

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.

  1. FFmpeg command (ok):

    ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "1scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t,10,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4

  2. I want to insert one videoMC (greenvideo.mp4) overlay another video Main and Background.

enter image description here

  1. VideoMC (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
  • the green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4

Please help me?

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.

  1. FFmpeg command (ok):

    ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "[1]scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t\,10\,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4
    
  2. I want to insert one videoMC (greenvideo.mp4) overlay another video Main and Background.

    enter image description here

  1. VideoMC (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
    The green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4
    

Please help me?

Source Link
alexdo
  • 145
  • 1
  • 4
  • 10

Two video overlays another with FFMPEG

I'm a new user of FFmpeg, and I want to insert a logo on two videos (one video overlay another) with one command.

  1. FFmpeg command (ok):

    ffmpeg -stream_loop -1 -i background.mp4 -i input.mp4 -i logo.png -filter_complex "1scale=1280:720[inner];[0][inner]overlay=70:70:shortest=1[vid];[vid][2]overlay=10:10:enable='not(between(t,10,15))'[out]" -map "[out]" -c:a copy -y -shortest output.mp4

  2. I want to insert one videoMC (greenvideo.mp4) overlay another video Main and Background.

enter image description here

  1. VideoMC (greenvideo.mp4) and video (Background.mp4): Two videos are repeated by the main video length time.
  • the green video over the background.

    ffmpeg -y -i input.mp4 -stream_loop -1 -i green.mp4 -filter_complex "[1:v]colorkey=0x00ff00:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" -map 0:a -shortest output.mp4

Please help me?