LMS not able to play MP3
|
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
14-Nov-2022, 01:18 PM
(This post was last modified: 14-Nov-2022, 01:45 PM by davem.)
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: layer::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;
(sorry about the image, the forum s/w didnt like my log file...)
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
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!
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
16-Nov-2022, 09:54 AM
(This post was last modified: 16-Nov-2022, 12:59 PM by davem.)
(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...
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
(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!
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
(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.
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
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!
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
20-Nov-2022, 02:18 PM
(This post was last modified: 20-Nov-2022, 02:21 PM by davem.)
(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 ???
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
(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!
Posts: 55
Threads: 9
Joined: Mar 2019
Reputation:
11
Location: Australia
(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.
Posts: 2,783
Threads: 178
Joined: Feb 2016
Reputation:
482
Location: Perth, WA
(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!
|
Users browsing this thread: |
4 Guest(s)
|
|
Welcome
|
You have to register before you can post on our site.
|
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.
|
|
|