1 - All ffmpeg filters can be called using the filter (or filter_) method: https://github.com/kkroening/ffmpeg-python/blob/master/ffmpeg/_filters.py#L28
2 - Here is an example of how I use textdraw to add 'watermarks' to videos: https://github.com/153957/time-lapse/blob/master/time_lapse/watermark.py
thanks, this is great example, it also shows, how to load fonts relative locations, grateful again.
i tried following, but wasn't able to successfully accomplish
data = "somevideo.mp4"
in_file = ffmpeg.input(data)
PAD_OPTIONS = {
'width':'main_w',
'height':'main_h+100',
'x':'0',
'y':'0',
'color': 'Olive'
}
po = ffmpeg.filter_(in_file,"pad",**PAD_OPTIONS)
po.output("padded_video.mp4").run()
output log something like this..
[Parsed_pad_0 @ 0000000005792da0] [Eval @ 00000000030feba0] Undefined constant or missing '(' in 'main_w'
[Parsed_pad_0 @ 0000000005792da0] [Eval @ 00000000030feba0] Undefined constant or missing '(' in 'main_h+100'
any ideas?, thanks again.
just noticed, replacing 'main_w' with 'iw' and 'main_h' with 'ih+100' works perfectly, huge thanks again for support , its awesome..
Most helpful comment
just noticed, replacing 'main_w' with 'iw' and 'main_h' with 'ih+100' works perfectly, huge thanks again for support , its awesome..