Menu

Feature request - Watermark

Peter
2023-05-09
2023-10-20
  • Peter

    Peter - 2023-05-09

    FFmpeg Batch AV Converter is such a great tool for converting my original footage into proxies that I can use in Premiere Pro.
    Since Premiere often crashes during proxy conversion, I prefer to use FFmpeg Batch Converter to create the Premiere proxies.
    But Premiere has an advantage. You can burn a watermark into the video which helps to separate the proxies from the original footage.

    Is it possible to burn a semi-transparent watermark PNG into the video?

     
  • Abel

    Abel - 2023-05-09

    Hi, watermark is not directly supported in the GUI, but you can use ffmpeg parameters to achieve it, something like this example:

    -i "C:\\Users\\Test\\Videos\\Test.png" -c:v libx264 -crf 23 -preset fast -filter_complex "overlay=x=(main_w-overlay_w)-20:y=(main_h-overlay_h)-20" -c:a copy

    You can play with the -20 number to place the watermark wherever you want.

     
  • Abel

    Abel - 2023-05-09
     
  • Peter

    Peter - 2023-05-09

    Thank you very much. Works perfectly.

    One question. The position and size of the watermark depends on the resolution of the source material. So it will be different size and position at different resolutions.

    Is there a way to set the position/size to a relative value?

     
  • Abel

    Abel - 2023-05-09

    With those parameters, the position is relative to the input size.
    The watermark size is the input image file.

     
  • Abel

    Abel - 2023-05-09

    These parameters could do the trick of resizing watermark image:

    -i "C:\\Users\\Abel\\Videos\\Test.png" -c:v libx264 -crf 23 -preset ultrafast -filter_complex "[1:v]scale=150:-2[v1];[0:v][v1]overlay=x=(main_w-overlay_w)-20:y=(main_h-overlay_h)-20[outv]" -map "[outv]" -c:a copy

     
  • Alex

    Alex - 2023-10-12

    Hi there,
    didn't finda similar topic i thought it might be suitable here.

    I'm using GPU accelerated transcoding and it's working like a charm. I'd like to do some watermarking also. With your preset it's working but it's only for cpu transcoding. I did not manage to do it via full hardware transcode. -hwaccel_ cuda -c:v hevc_nvenc

    Could you provide a working preset for HW encoding ?
    I'm using a 3090 with most recent driver and of course last version of your Software,

    Thank you in advance.

     
  • Abel

    Abel - 2023-10-15

    Hi, have you tried:
    Pre-input: -hwaccel_ cuda
    Parameters: -c:v hevc_nvenc

    If so, what does the log file say?

     
  • Alex

    Alex - 2023-10-20

    Hi,
    yes of course... transocding via GPU-Acceleration is working fine. But for watermark to be encoded on GPU not on CPU i need other filter commands. Otherwise it's doing the watermark on CPU.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.