how to add watermark in mp4 video using python

Solutions on MaxInterview for how to add watermark in mp4 video using python by the best coders in the world

showing results for - "how to add watermark in mp4 video using python"
Nicole
19 Jun 2018
1ffmpeg -i input.mp4 -i watermark.png -filter_complex "overlay=1500:1000" output.mp4
Leelou
28 Aug 2019
1# where is the python code ? :D
2import subprocess
3def add_watermark(FilePath, Start, End, WatermarkImage, OutputFilePath):
4    subprocess.call('ffmpeg -i ' + FilePath + ' -i ' + WatermarkImage + ' -filter_complex "overlay=' + End + ':' + Start + '" ' + OutputFilePath + ')