The -vf is a part of ffmpeg that’s running on a different server. BUT, like I said, the vlc is showing the time and is reading the same exact stream (you can see it in the image link). I opened the same stream side by side (you can see both of them in the image). VLC has time and HA one does not.
I’m stuggling to get a ffmpeg shell_command with a drawtext overlay working too. Did you ever figure this out?
In your instance, I wonder if HA can’t access the location of that font file? Although in my case I’ve tried moving the font files to accesible locations and still no cigar.
I also understand that the drawtext is sensitive to : , " and ’ chars so you could try tinkering with that?
This is the closest thread I could find on this topic. I’m experiencing something similar, but not quite the same.
I’m overlaying the date and time, which works fine when viewing the camera on Lovelace (a picture glance card which updates every 10s). It also works when taking a snapshot. However, when viewing the live stream or recording a video, the overlaid text isn’t present. This seems odd, because this is an IR-sensitive camera, so the “true” colour has a purple hue to it, hence the hue=s=0 filter I’m applying. This filter, however, is applied in all cases. This is important, since I thought maybe the record service is using the raw stream, but that doesn’t seem to be the case.
EDIT: Ok, one mystery solved. I removed the hue filter in this config and saw it’s still a greyscale stream, so then I remembered that I’ve actually set this up to apply the filter on the actual device (a Raspberry PI) in the v4l2rtspserver.service config via v4l2-ctl. Doesn’t change the fact that drawtext is only applied on the snapshots, but not otherwise.