Skip to main content
added 11 characters in body
Source Link
Gyan
  • 37.1k
  • 6
  • 64
  • 106

Use

ffmpeg -i input_vid.mp4 \
      -vf "movie=watermark_3.png:loop=0.1,setpts=N/FRAME_RATE/TB,scale=144:31,format=rgba,fade=in:0:30:alpha=1[watermark]; \
           [in][watermark]overlay=5:H-h-15:shortest=1,scale=180x320[out]" \
      -c:v libx264 -pix_fmt yuv420p -preset ultrafast -c:a copy out.mp4

The fade has to be applied in the watermark chain to affect it only. The loop flag is set to a number below one, so that it loops the single image indefinitely. setpts ensures monotonically increasing timestamps.

Use

ffmpeg -i input_vid.mp4 \
      -vf "movie=watermark_3.png:loop=0.1,setpts=N/FRAME_RATE/TB,scale=144:31,format=rgba,fade=in:0:30:alpha=1[watermark]; \
           [in][watermark]overlay=5:H-h-15,scale=180x320[out]" \
      -c:v libx264 -pix_fmt yuv420p -preset ultrafast -c:a copy out.mp4

The fade has to be applied in the watermark chain to affect it only. The loop flag is set to a number below one, so that it loops the single image indefinitely. setpts ensures monotonically increasing timestamps.

Use

ffmpeg -i input_vid.mp4 \
      -vf "movie=watermark_3.png:loop=0.1,setpts=N/FRAME_RATE/TB,scale=144:31,format=rgba,fade=in:0:30:alpha=1[watermark]; \
           [in][watermark]overlay=5:H-h-15:shortest=1,scale=180x320[out]" \
      -c:v libx264 -pix_fmt yuv420p -preset ultrafast -c:a copy out.mp4

The fade has to be applied in the watermark chain to affect it only. The loop flag is set to a number below one, so that it loops the single image indefinitely. setpts ensures monotonically increasing timestamps.

corrected for image input via movie filter
Source Link
Gyan
  • 37.1k
  • 6
  • 64
  • 106

Use

ffmpeg -i input_vid.mp4 \
      -vf "movie=watermark_3.png:loop=0.1,setpts=N/FRAME_RATE/TB,scale=144:31,format=rgba,fade=in:0:30:alpha=1[watermark]; \
           [in][watermark]overlay=5:H-h-15,scale=180x320[out]scale=180x320[out]" \
      -c:v libx264 -pix_fmt yuv420p -preset ultrafast -c:a copy out.mp4

The fade has to be applied in the watermark chain to affect it only. The loop flag is set to a number below one, so that it loops the single image indefinitely. setpts ensures monotonically increasing timestamps.

Use

ffmpeg -i input_vid.mp4 \
      -vf "movie=watermark_3.png,scale=144:31,format=rgba,fade=in:0:30:alpha=1[watermark]; \
           [in][watermark]overlay=5:H-h-15,scale=180x320[out] \
      -c:v libx264 -pix_fmt yuv420p -preset ultrafast -c:a copy out.mp4

The fade has to be applied in the watermark chain to affect it only.

Use

ffmpeg -i input_vid.mp4 \
      -vf "movie=watermark_3.png:loop=0.1,setpts=N/FRAME_RATE/TB,scale=144:31,format=rgba,fade=in:0:30:alpha=1[watermark]; \
           [in][watermark]overlay=5:H-h-15,scale=180x320[out]" \
      -c:v libx264 -pix_fmt yuv420p -preset ultrafast -c:a copy out.mp4

The fade has to be applied in the watermark chain to affect it only. The loop flag is set to a number below one, so that it loops the single image indefinitely. setpts ensures monotonically increasing timestamps.

Source Link
Gyan
  • 37.1k
  • 6
  • 64
  • 106

Use

ffmpeg -i input_vid.mp4 \
      -vf "movie=watermark_3.png,scale=144:31,format=rgba,fade=in:0:30:alpha=1[watermark]; \
           [in][watermark]overlay=5:H-h-15,scale=180x320[out] \
      -c:v libx264 -pix_fmt yuv420p -preset ultrafast -c:a copy out.mp4

The fade has to be applied in the watermark chain to affect it only.