Page 1 of 1

Watermark With ffmpeg

Posted: Fri Feb 01, 2019 9:41 am
by YiWhaB
Hello every one,
I am trying to add a watermark in a video,at first i tried to just use drawtext command,but it's too time-consuming.
So,my first question is if i use drawtext command ,the full video is reencoded?and what is the fastest way for watermarking?
Then i tried to split the video into two and just add water mark at the beginning of the video,finally i concat the two parts of the video,
but when i tried to split the mkv file,it has chapter in its metadata .So i tried to use map_metadata ,but it didn't work.
and then i tried to split the avi file,but the result is that the result file's timeline in the player is not precise.
So,my second question is that how can i split the video efficiently?
Any help would be greatly appreciated.

ps:the command i use to split the video is ffmpeg -i xxx -ss

Re: Watermark With ffmpeg

Posted: Thu Feb 14, 2019 2:37 pm
by pandy
You can't avoid re-encoding video when applying watermark - perhaps you should focus on improving encoding efficiency if you are unsatisfied with current results.
In theory you could modify video in transformation domain so no classical re-encoding performed - this is feasible but there is no ready to use tool to perform such processing.