Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (67)

Sur d’autres sites (10295)

  • How to insert Text instead of image as watermark in video using ffmpeg ? [duplicate]

    7 octobre 2017, par djac

    This question already has an answer here :

    Following is the code to insert an image as watermark in the video. I want a text in the place of image as watermark.

    In the below example "djaco-property" text, instead of "watermark.png" image. Can you help to do that ? (Coding is done in Android).

    ffmpeg -i birds.mp4 -i watermark.png -filter_complex "overlay=10:10" birds1.mp4
  • How to set the width of an image watermark to the same width as the video in bulk (videos have different dimensions)

    27 février 2024, par A.D.

    I am trying to bulk watermark videos with the watermark being in the top center of the video (no issue with that).

    


    The watermark is not maintaining the width of the video.

    


    Here is the ffmpeg command in a loop :

    


    for %%a in ("*.mp4") do ffmpeg -i "%%a" -i watermark-image.png -filter_complex "[1]scale=w=iw[wm];[0][wm]overlay=x=(W-w)/2:y=0" -preset ultrafast "newfiles\%%~na.mp4"


    


    I tried using scale2ref filter but didn't work for me.

    


  • I need to make a flip video and add 2 watermarks, my script doesn't work for some reason ? ffmpeg

    19 janvier 2024, par DIABOLI FERRE

    I need to make a flip video and add 2 watermarks, my script doesn't work for some reason (the script just flips the video, but does not apply watermarks).

    


    ffmpeg -i input.mp4 -i watermark.png -i watermark2.png -filter_complex "hflip;[1:v]scale=iw*0.5:-1[top];[2:v]scale=iw*0.1:-1[top2];[0:v][top]overlay=x=(W-w)/40:y=(H-h)/40[tmp];[tmp][top2]overlay=5:H-h-5" -preset superfast output.mp4