Metadata not being inserted to output (works for HLS, but SRT or FILE don't) #4360
Replies: 2 comments 2 replies
-
Hi, The mp3 format does not support in-band metadata. Typically, icecast uses the (antiquated) ICY protocol for this. I suggest looking at a format that supports in-band metadata. The most common would be ogg, with vorbis, flac or opus codec. It's worth noting, however, that the spec for in-band ogg metadata is also not the best and notoriously badly implemented. You'd need to validate that the receiving side of the SRT stream can also properly decode ogg in-band metadata. Other than ogg, I'm not sure of any format that can do it well except for HLS, which you already know about. What you could consider is sending the metadat out of band, via a secondary call. But the, in this case, you'd need a method to insert them at the time timestamp. |
Beta Was this translation helpful? Give feedback.
-
Ha sorry I'm seeing that you're using ffmpeg now. Yeah, ffmpeg does not parse in-band metadata very well with ogg. But I'm working on changing that right now! |
Beta Was this translation helpful? Give feedback.
-
Description
I am trying to insert metadata via Telnet into an output, such as
output.srt
oroutput.file
(the main goal is to make it work with SRT, the file is just an example), but neither of them works. However, usingoutput.hls
works fine, as stated in the documentation.Even though I am successfully sending the Telnet command to Liquidsoap, a simple script like this does not work. The goal is to send a Telnet command to manually update the metadata.
I have tried version 2.3.1 as well but does not work.
Steps to reproduce
Expected behavior
Using
server.insert_metadata
works fine when I have anoutput.hls
, but when I use other outputs, such as SRT or File, no metadata is present. I can see the metadata being printed due to theprint_metadata
function, so it is reaching the Liquidsoap server correctly.Liquidsoap version
Liquidsoap build config
Installation method
From OPAM
Additional Info
I have this printed when I call telnet, printed from
print_metadata
function.FFprobe prints this for the audio file (something similar for SRT too):
Beta Was this translation helpful? Give feedback.
All reactions