I am using Windows 8.1 Pro with ffmpeg 64 bit static build, trying to run the following cmd
"C:\ffmpeg\bin\ffmpeg.exe" -i "C:\ffmpeg\v.mp4" -preset veryslow -crf 22
-vf "drawtext=fontfile=C:/Windows/Fonts/Arial/ariblk.ttf: text='%
{localtime}': x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1"
"o.mp4"
Which is returning the error
[Parsed_drawtext_0 @ 0000000004c5cf20] Could not load font "C": cannot open resource
It seems the problem is around this part of the code which is caused by the semi colon : terminating the string.
fontfile=C:/Windows/Fonts/Arial/ariblk.ttf:
However, I have tried to escape it with backslahses in the following ecerpts but the error still exists
fontfile=C\:/Windows/Fonts/Arial/ariblk.ttf:
error
[Parsed_drawtext_0 @ 0000000004c5cf20] Could not load font "C": cannot open resource
And
fontfile=C/:/Windows/Fonts/Arial/ariblk.ttf
error
[Parsed_drawtext_0 @ 0000000004c5cf20] Could not load font "C/": cannot open resource
Lastly
fontfile='C:'/Windows/Fonts/Arial/ariblk.ttf
error
[Parsed_drawtext_0 @ 0000000004c5cf20] Could not load font "C": cannot open resource
How can I get around this?
Thanks