video.text.native does not support custom fonts yet – repeated error messages
WittyWidget opened this issue · 1 comments
Description
I am encountering an issue while running the AI Radio code from your repository, specifically this : v2.2.x/main.liq
The following error messages appear repeatedly in the logs:
2024/10/20 17:20:48 [video.text.native:3] video.text.native does not support custom fonts yet!
2024/10/20 17:20:49 [video.text.native:3] video.text.native does not support custom fonts yet!
2024/10/20 17:20:50 [video.text.native:3] video.text.native does not support custom fonts yet!
2024/10/20 17:20:51 [video.text.native:3] video.text.native does not support custom fonts yet!
2024/10/20 17:20:52 [video.text.native:3] video.text.native does not support custom fonts yet!
2024/10/20 17:20:53 [video.text.native:3] video.text.native does not support custom fonts yet!
2024/10/20 17:20:54 [video.text.native:3] video.text.native does not support custom fonts yet!
This message occurs every second, filling up the logs.
Steps to reproduce
- Running the AI Radio code from the repository, specifically the main.liq file in the v2.2.x folder.
- The script includes a custom font (MesloLGS NF Bold.ttf) for video text overlay.
- Despite this, the system reports that video.text.native does not support custom fonts yet.
Expected behavior
I expect the custom font (MesloLGS NF Bold.ttf) specified in the AI Radio script to be applied to the video text overlay without triggering any error messages. The video text should display correctly using the custom font, and there should be no repeated log errors about unsupported fonts.
Liquidsoap version
Liquidsoap 2.2.5+dev
Copyright (c) 2003-2024 Savonet team
Liquidsoap is open-source software, released under GNU General Public License.
See <http://liquidsoap.info> for more information.
Liquidsoap build config
* Liquidsoap version : 2.2.5+dev
* Compilation options
- Release build : false
- Git SHA : (none)
- OCaml version : 5.2.0
- OS type : Unix
- Libs versions : angstrom=0.16.1 bigstringaf=0.10.0 bytes=[distributed with OCaml 4.02 or above] camlp-streams camomile.lib=2.0 cry=1.0.3 curl=0.9.2 dtools=0.4.5 dune-build-info=3.16.0 dune-private-libs.dune-section=3.16.0 dune-site=3.16.0 dune-site.private=3.16.0 duppy=0.9.4 ffmpeg-av=1.1.11 ffmpeg-avcodec=1.1.11 ffmpeg-avdevice=1.1.11 ffmpeg-avfilter=1.1.11 ffmpeg-avutil=1.1.11 ffmpeg-swresample=1.1.11 ffmpeg-swscale=1.1.11 fileutils=0.6.4 gen=1.1 liquidsoap-lang=2.2.5 liquidsoap-lang.console=2.2.5 liquidsoap_builtins liquidsoap_core liquidsoap_ffmpeg liquidsoap_optionals liquidsoap_oss liquidsoap_runtime magic-mime=1.3.1 menhirLib=20240715 metadata=0.3.0 mm=0.8.5 mm.audio=0.8.5 mm.base=0.8.5 mm.image=0.8.5 mm.midi=0.8.5 mm.video=0.8.5 pcre=7.5.0 ppx_string.runtime=v0.17.0 re=1.12.0 sedlex=3.2 seq=[distributed with OCaml 4.07 or above] stdlib-shims=0.3.0 str=5.2.0 stringext=1.6.0 threads=5.2.0 unix=5.2.0 uri=4.4.0
- architecture : amd64
- host : x86_64-pc-linux-gnu
- target : x86_64-pc-linux-gnu
- system : linux
- ocamlopt_cflags : -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread
- native_c_compiler : gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread -D_FILE_OFFSET_BITS=64
- native_c_libraries : -lm -lpthread
* Configured paths
- mode : default
- standard library : (set by dune-site)
- scripted binaries : (set by dune-site)
- rundir : (set by dune-site)
- logdir : (set by dune-site)
- camomile files : (set by dune-site)
* Supported input formats
- MP3 : no (requires mad)
- AAC : no (requires faad)
- Ffmpeg : yes
- Flac (native) : no (requires flac)
- Flac (ogg) : no (requires ogg)
- Opus : no (requires opus)
- Speex : no (requires speex)
- Theora : no (requires theora)
- Vorbis : no (requires vorbis)
* Supported output formats
- FDK-AAC : no (requires fdkaac)
- Ffmpeg : yes
- MP3 : no (requires lame)
- MP3 (fixed-point) : no (requires shine)
- Flac (native) : no (requires flac)
- Flac (ogg) : no (requires ogg)
- Opus : no (requires opus)
- Speex : no (requires speex)
- Theora : no (requires theora)
- Vorbis : no (requires vorbis)
* Tags
- Taglib (ID3 tags) : no (requires taglib)
- Vorbis : no (requires vorbis)
* Input / output
- ALSA : no (requires alsa)
- AO : no (requires ao)
- FFmpeg : yes
- GStreamer : no (requires gstreamer)
- JACK : no (requires bjack)
- OSS : yes
- Portaudio : no (requires portaudio)
- Pulseaudio : no (requires pulseaudio)
- SRT : no (requires srt)
* Audio manipulation
- FFmpeg : yes
- LADSPA : no (requires ladspa)
- Lilv : no (requires lilv)
- Samplerate : no (requires samplerate)
- SoundTouch : no (requires soundtouch)
- StereoTool : no (requires ctypes-foreign)
* Video manipulation
- camlimages : no (requires camlimages)
- FFmpeg : yes
- frei0r : no (requires frei0r)
- ImageLib : no (requires imagelib)
- SDL : no (requires tsdl-image & tsdl-ttf)
* MIDI manipulation
- DSSI : no (requires dssi)
* Visualization
- GD : no (requires gd)
- Graphics : no (requires graphics)
- SDL : no (requires tsdl-image & tsdl-ttf)
* Additional libraries
- FFmpeg filters : yes
- FFmpeg devices : yes
- inotify : no (requires inotify)
- irc : no (requires irc-client-unix)
- jemalloc : no (requires jemalloc)
- lastfm : no (requires lastfm)
- lo : no (requires lo)
- memtrace : no (requires memtrace)
- mem_usage : no (requires mem_usage)
- osc : no (requires osc-unix)
- ssl : no (requires ssl)
- tls : no (requires tls-liquidsoap)
- posix-time2 : no (requires posix)
- windows service : no (requires winsvc)
- YAML support : no (requires yaml)
- XML playlists : no (requires xmlplaylist)
* Monitoring
- Prometheus : no (requires prometheus)
Installation method
From OPAM
Additional Info
Ubuntu 24.04
opam version: 2.2.1
Not a lot of side packages you've installed. I assume installing SDL
(sdl-liquidsoap
) or one of those will solve it:
* Visualization
- GD : no (requires gd)
- Graphics : no (requires graphics)
- SDL : no (requires tsdl-image & tsdl-ttf)
It shouldn't be working on bare LS without additional opam packages by default.
If you want out-of-the-box behavior you can install LS via Docker or binary packages (not minimal).