LMS not able to play MP3
#1
Hi,

A while back I got a new HD and built it up with the latest snakeoil and copied all my media across. Ubuntu 22.0.4.1 and (now) snakeoil 1.2.8.  All good. Though I soon noticed that I had some trouble playing mp3 media.....it has irritated me enough that I have started to look more closely. When attempting to play the files, I get an error in the server.log for every mp3 that I try to playSlim:Tonguelayer::Song::open (425) Error: Couldn't create command line for mp3 playback for [file:///media/music/.........]

It was suggested that LAME was missing. I confirmed and installed LAME which was an improvement. I can now play the mp3 files on my SB Boom but they dont play on my squeezelite Ralph on snakeoil.

Has anyone else noticed this with LMS and 1.2.8 ?

(14-Nov-2022, 01:18 PM)davem Wrote:  

increased the logging level;

[Image: image.png]

(sorry about the image, the forum s/w didnt like my log file...)
Reply

#2
Can you try Squeezelite 1.6.4 and see if that works? I am using that player, and vaguely remembers MP3 is working on that player.
Snakeoil Operating System - Music, your way!
Reply

#3
(16-Nov-2022, 08:34 AM)agent_kith Wrote: Can you try Squeezelite 1.6.4 and see if that works? I am using that player, and vaguely remembers MP3 is working on that player.

I did. But no luck. I tried all squeezelite versions and as soon as I tried to play a mp3 it would crash (a red X beside the status) and the player would disappear from iPeng. Nothing in the logs.

Thought that I would try mpd, so installed ncmpc client and played the same mp3. All good.

So it seems that the issue relates to mp3 on squeezelite (& hardware players before I manually installed LAME). Is installing LAME actually the correct thing to have done ?

Edit. Just discovered that I have some .m4a files and they play fine as well...
Reply

#4
(16-Nov-2022, 09:54 AM)davem Wrote: I did. But no luck. I tried all squeezelite versions and as soon as I tried to play a mp3 it would crash (a red X beside the status) and the player would disappear from iPeng. Nothing in the logs.

Thought that I would try mpd, so installed ncmpc client and played the same mp3. All good.

So it seems that the issue relates to mp3 on squeezelite (& hardware players before I manually installed LAME). Is installing LAME actually the correct thing to have done ?

Edit. Just discovered that I have some .m4a files and they play fine as well...
Can you go to LMS settings, under file formats, look for MP3 and see what/how it's configured/ See if you can use other codecs, e.g. FFMPEG and see if that works better.
Snakeoil Operating System - Music, your way!
Reply

#5
(18-Nov-2022, 05:25 PM)agent_kith Wrote:
(16-Nov-2022, 09:54 AM)davem Wrote: I did. But no luck. I tried all squeezelite versions and as soon as I tried to play a mp3 it would crash (a red X beside the status) and the player would disappear from iPeng. Nothing in the logs.

Thought that I would try mpd, so installed ncmpc client and played the same mp3. All good.

So it seems that the issue relates to mp3 on squeezelite (& hardware players before I manually installed LAME). Is installing LAME actually the correct thing to have done ?

Edit. Just discovered that I have some .m4a files and they play fine as well...
Can you go to LMS settings, under file formats, look for MP3 and see what/how it's configured/ See if you can use other codecs, e.g. FFMPEG and see if that works better.

You mean 'file types' ? Under MP3, the only option I have is Native or Disabled.
Reply

#6
Can you SSH to the machine, and run the following:
Code:
sudo apt update
sudo apt install -y ffmpeg
Then reboot the computer and see if you can play MP3s again?
Snakeoil Operating System - Music, your way!
Reply

#7
(20-Nov-2022, 11:39 AM)agent_kith Wrote: Can you SSH to the machine, and run the following:
 
Code:
sudo apt update
sudo apt install -y ffmpeg
Then reboot the computer and see if you can play MP3s again?

Thanks AK
 I installed ffmpeg and rebooted as requested.
No change unfortunately. In the SB player GUI it says that it plays but on iPeng the player disappears and the player goes to an error state (A pulsing red X in the status) in the snakeoil player GUI.
I set the player.streaming logging to debug but no log entries generated.
 
Tried a few versions.
Just for kicks, I thought that I would then try some different mp3's and they started playing !!
I pulled one of the offending files down to my desktop and it plays fine !
So it seems that squeezelite doesnt like SOME mp3's..that play fine elsewhere. hmmm
 
this one works
 
This one doesnt....
 
[edit - images are getting screwed up when viewed in the forum, so removed them]

The obvious difference is the CBR/VBR...I tried a few more CBR which were ok. Then I found another VBR which caused LMS to bomb out again.
So it seems that squeezelite doesnt like variable bit rate mp3 ???
Reply

#8
(20-Nov-2022, 02:18 PM)davem Wrote: Thanks AK
 I installed ffmpeg and rebooted as requested.
No change unfortunately. In the SB player GUI it says that it plays but on iPeng the player disappears and the player goes to an error state (A pulsing red X in the status) in the snakeoil player GUI.
I set the player.streaming logging to debug but no log entries generated.
 
Tried a few versions.
Just for kicks, I thought that I would then try some different mp3's and they started playing !!
I pulled one of the offending files down to my desktop and it plays fine !
So it seems that squeezelite doesnt like SOME mp3's..that play fine elsewhere. hmmm
 
this one works
 
This one doesnt....
 
[edit - images are getting screwed up when viewed in the forum, so removed them]

The obvious difference is the CBR/VBR...I tried a few more CBR which were ok. Then I found another VBR which caused LMS to bomb out again.
So it seems that squeezelite doesnt like variable bit rate mp3 ???
Unfortunately I don't have a lot of MP3s to experiment, the few I have all worked fine, and yet to check if they're CBR or VBR. This looks like a problem with the LMS that comes with Snakeoil. Can you try and download the latest version of LMS and see if that problem goes away?

Either that you can also send me a location of a VBR MP3 so I can try and recreate this later from my rig. You can find my email when you click on the "Generate Diagnostics File" button in the systems page.
Snakeoil Operating System - Music, your way!
Reply

#9
(21-Nov-2022, 08:03 AM)agent_kith Wrote:
(20-Nov-2022, 02:18 PM)davem Wrote:  
Unfortunately I don't have a lot of MP3s to experiment, the few I have all worked fine, and yet to check if they're CBR or VBR. This looks like a problem with the LMS that comes with Snakeoil. Can you try and download the latest version of LMS and see if that problem goes away?

Either that you can also send me a location of a VBR MP3 so I can try and recreate this later from my rig. You can find my email when you click on the "Generate Diagnostics File" button in the systems page.

Thanks.. running vers 8.3.0 which is the latest stable.
I will mail you a problematic mp3.
Reply

#10
(21-Nov-2022, 08:22 AM)davem Wrote: Thanks.. running vers 8.3.0 which is the latest stable.
I will mail you a problematic mp3.
Cool, let me know how that goes. Also, uninstall lame (sudo apt purge lame*), just use ffmpeg, and that should work for all media types.
Snakeoil Operating System - Music, your way!
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVEDPlay Windows Media? RomanM 6 1,704 05-Oct-2022, 04:31 PM
Last Post: hkphantomgtr
  [SOLVEDfiles with samplerate 48.0 kHz play slow macmaroni 4 3,640 11-Apr-2018, 06:15 AM
Last Post: macmaroni



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Installation of SnakeOil OS 1.3.0 on RPi...
Last Post: agent_kith
Today 07:27 AM
» Replies: 13
» Views: 587
Dropping Measurements, Hello High-End.
Last Post: uglymusic
18-Dec-2024 12:02 AM
» Replies: 20
» Views: 709
CA Server issues
Last Post: Peter_F
16-Dec-2024 06:36 PM
» Replies: 13
» Views: 217
install Snakeoil on Audio Alchemy DMP-1 ...
Last Post: uglymusic
08-Dec-2024 08:48 PM
» Replies: 2
» Views: 214
Announcing Snakeoil Measurements 1.3.0
Last Post: hkphantomgtr
03-Dec-2024 09:55 PM
» Replies: 105
» Views: 12023
Howto setup resampling in Logitech Media...
Last Post: Coacharnold
18-Nov-2024 12:06 AM
» Replies: 7
» Views: 5999
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1804
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 188
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 179
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 512

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.