Ffmpeg-python: How to add watermark and timecode by using ffmpeg-python?

Created on 28 Jun 2019  Â·  1Comment  Â·  Source: kkroening/ffmpeg-python

the ffpeg cmd as follows
1.add watermark:
ffmpeg -i input.mp4 -vf drawtext="fontfile=simhei.ttf: text=qwer:x=10:y=10:fontsize=24:fontcolor=white" output.mp4

2.add timecode:
ffmpeg -i input.mp4 -vf drawtext="fontfile=simhei.ttf:timecode='00\:00\:00\:00':rate=30:x=10:y=10:text=Hello:fontsize=24:fontcolor=white" output.mp4

thx

answered question

Most helpful comment

Watermarks can be added like this:

(
    ffmpeg
    .input(…)
    .drawtext(text='qwer', fontsize=24, y=10, x=10, fontfile='/path/to/font/simhei.ttf', fontcolor='white')
    …
)

>All comments

Watermarks can be added like this:

(
    ffmpeg
    .input(…)
    .drawtext(text='qwer', fontsize=24, y=10, x=10, fontfile='/path/to/font/simhei.ttf', fontcolor='white')
    …
)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

DinRigtigeFar picture DinRigtigeFar  Â·  5Comments

ghost picture ghost  Â·  3Comments

prajwal-mulkalwar picture prajwal-mulkalwar  Â·  6Comments

cbitterfield picture cbitterfield  Â·  4Comments

Matttman picture Matttman  Â·  6Comments