[FFmpeg-user] Drawtext problem

Cecil Westerhof Cecil at decebal.nl
Fri Dec 9 21:35:51 EET 2022


Cecil Westerhof via ffmpeg-user <ffmpeg-user at ffmpeg.org> writes:

> With the drawtext filter I wanted to use:
>     text = '13:30 tot 17:30/18:00':
>
> But this gives:
>     Both text and text file provided. Please provide only one
>
> Strangely enough this does not give an error:
>     text = '13:30 tot 17:30/18':
>
> I solved it by using:
>     text       = '13:30 tot 17:30/18\:00':

No, I did not solve it. I just did not get an error message anymore.
This displayed:
    30/18:00

I needed to escape all : like this:
     text       = '13\:30 tot 17\:30/18\:00':


> But I do not understand why the first two do not have to be escaped
> and the third does.
>
> I use ffmpeg in a bash script.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list