FFMPEG watermark video without re-encoding or loss of quality

I'm trying to watermark a video, but is there a way to do this without re-encoding the video for quality loss?

Im trying with a simple command:

ffmpeg -i input.flv -vf "movie=logo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" output.flv 
+7
source share
2 answers

The answer is no, watermarks are designed to be combined into a video that is not easy to perfectly remove, so ffmpeg has to decode the original video, combine the original video with the watermark logo, and then transcode it to form a new video. clip.

+1
source

You can copy audio with -c: the copy remains unchanged. The video is different from the overlay, so you can configure the quality settings as described at https://trac.ffmpeg.org/wiki/Encode/H.264 .

0
source

Source: https://habr.com/ru/post/981523/


All Articles