Error 8: Unsupported format: %mp3() #3935
Replies: 10 comments 8 replies
-
Hi @anoniniarz, If you're not very familiar with opam, there are some other options for ubuntu 22.04.
|
Beta Was this translation helpful? Give feedback.
-
Hello @vitoyucepi , thanks for fast reply! I indeed did not install mp3 support, I wam not familiar with opam and assumed that it could use libraries from system, apparently it does not and after installing them it works now. But issue with title persists. Earlier it was sending "Unknown" title to icecast, now it's just empty string. How do I fix this? I used this command to install
do I need something else for metadata? |
Beta Was this translation helpful? Give feedback.
-
It would be very helpful in debugging this problem if you could share
Most packages rely on system libraries, but liquidsoap uses ocaml interfaces for them. |
Beta Was this translation helpful? Give feedback.
-
Here is output from --build-config
here is opam list
At first I thought that maybe downgrade will resolve "unsupported format" issue, but since it is not the case I will upgrade to 2.2.5 later |
Beta Was this translation helpful? Give feedback.
-
Your problem looks strange. I just set up a new VM with Ubuntu 22.04 and I don't have this problem. Can you check if my script works or not? p = playlist("playlist.m3u")
p.on_metadata(print)
output.icecast(
%mp3,
p,
host="127.0.0.1",
port=8000,
mount="/mount,
password="password",
fallible=true,
) It should show metadata for each file in the process log.
|
Beta Was this translation helpful? Give feedback.
-
Sure thing. Log says
And that's all. |
Beta Was this translation helpful? Give feedback.
-
Looks good, the long line is just an image. p = playlist("playlist.m3u")
def custom_log(m)
print(metadata.cover.remove(m))
end
p.on_metadata(custom_log)
output.icecast(
%mp3,
p,
host="127.0.0.1",
port=8000,
mount="/mount,
password="password",
fallible=true,
) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
It looks like your file has no title or something.
Can you extract tags from the file? By the way, do you have ffmpeg installed on your system, because you can only build liquidsoap with ffmpeg support. Like this |
Beta Was this translation helpful? Give feedback.
-
I've run one file through ffprobe, and there was no metadata for title, artist, or album. Seems like they've been lost in conversion from ogg to mp3. It was confusing because ezstream did display artist and title, but apparently it took data from filename. I will re-convert everything later. |
Beta Was this translation helpful? Give feedback.
-
I upgraded from 2.0.2 to 2.2.3 using opam. liquidsoap was working kinda fina (was playing music, but metadata was not working), so I decided to upgrade using opam hoping that it will fix this issue. And now I am getting error about unsupported format, no matter what format I am using (I tried with opus and vorbis, same error). Here is my config
What am I doing wrong?
My machine is running Ubuntu 22.04
Beta Was this translation helpful? Give feedback.
All reactions