[FFmpeg-user] drawtext timecode from metadata

Gyan Doshi ffmpeg at gyani.pro
Sat Apr 24 15:28:50 EEST 2021



On 2021-04-24 16:56, Bouke wrote:
> trying to capture and burn in TC at the same time.
> Burn in TC works if I specify the start TC, but I can’t probe and then record, as that takes time so the TC will be off.
> So I’m hoping to set the drawtext filter on the fly, I tried:
> drawtext=timecode=%{metadata\\\:timecode}:
>
> -filter_complex "[0:0]drawtext=timecode=%{metadata\\\:timecode}:fontfile='/Volumes/Data/fonts/courbd.ttf':r=25:x=(w-tw) - (w * 0.02): y=h-(2*lh):fontsize=54.0:fontcolor=white”
>
> This does not work, gives me:
> [Parsed_drawtext_0 @ 0x7ff9fbe0cb40] Unable to parse timecode, syntax: hh:mm:ss[:;.]ff
>
> Is there a way to do this?

Not possible. Let me see if it's possible to get it from frame metadata.

How are you capturing?

Gyan


More information about the ffmpeg-user mailing list