Timecode on overlay

Questions involving a Windows version of FFmpeg.
Post Reply
absolutita
Posts: 1
Joined: Tue Mar 12, 2019 3:55 pm

Timecode on overlay

Post by absolutita » Tue Mar 12, 2019 4:28 pm

Hello all,
i am new here and on FFPEG. I would need your help.
i have a TS with video containing time code.
i would like to play it and show the timecode os overlay on the video.

how can i do it?
thanks

pandy
Posts: 235
Joined: Mon Feb 24, 2014 1:46 pm

Re: Timecode on overlay

Post by pandy » Mon Mar 25, 2019 11:03 am

This works for me:

Code: Select all

drawtext=fontfile=Envy_Code_R_Bold.ttf:timecode='00\:00\:00\:00':r=50:x=(w-tw)/2:y=h-(8*lh):fontsize=96:[email protected]:box=1:[email protected]:boxborderw=8
for system time it is more tricky (proper escaping is essential):

Code: Select all

drawtext='fontsize=96:[email protected]:box=1:[email protected]:boxborderw=8:fontfile=Envy_Code_R_Bold.ttf:text=%%{localtime\: %%d\\\/%%m\\\/%%y %%H\\\:%%M\\\:%%S }:x=(w-tw)/2:y=2*th+(h-th)/2'
Didn't modified positions!

Post Reply
'