I'm trying to write a script to use FFMPEG to draw localized timestamps on a video, but I'm not having much luck.
I can confirm I have the locale fr_FR.UTF-8
installed on my system by running the following command: LC_ALL=fr_FR.UTF-8 date
However, the following command produces a 4 second video beginning with the string "Monday 28 November 2022 19:00:47 PST" on both my Mac and an Alpine Linux docker container:
LC_ALL=fr_FR.UTF-8 ffmpeg -hide_banner -f lavfi -i color=size=1024x768:rate=25:color=black -c:v libx264 -c:a aac -filter_complex drawtext=expansion=normal:fontsize=18:fontcolor=white:box=1:boxcolor=black@0.5:text='%{pts\\:localtime\\:1669690847\\:%A %-d %B %Y %X %Z}' -t 4 -y out.mp4
Does anyone know how to make it create strings with non-English text?