PDA

View Full Version : WMA files not playing back



gbcambridge
2018-12-13, 11:05
Hi,
I am using a Raspberry Pi Model 3 as a host for piCorePlayer. Today I downloaded the latest version, 4.1which I understood now supports WMA files. However, when I try to play them it just freezes.
I had the impression that the system would ask me if I wanted the extra files to support WMA when I installed, but there were no choices..just a download and burn.
I must be missing something obvious...can anyone point me in the right direction ..... short of converting he WMA to Flac?

Thanks for the help

George

ralphy
2018-12-14, 05:27
On the main page in the web gui, you need to install the ffmpeg libraries for squeezelite for wma and alac decoder support.

Hal Bregg
2019-05-24, 06:37
Hi. Very impressed with piCorePlayer and hoping it plays WMA files.

It does, but with huge distortion, even on a DAC audio board.
FFMpeg libraries installed and reinstalled, backed up and rebooted, with various settings.
As a first-timer I'm likely missing what an experienced user figured out long time ago.

Will so appreciate any suggestions, Thank you in advance !

Hal

bpa
2019-05-24, 06:54
It does, but with huge distortion, even on a DAC audio board.

What sort of distortion

Slow playback ?
Volume ?
Noise ?

Hal Bregg
2019-05-24, 10:50
What sort of distortion

Slow playback ?
Volume ?
Noise ?

Hi and thank you for responding.

The files play seriously hissing and crackling. Its apparent they are not being properly decoded.

bpa
2019-05-24, 10:57
Hi and thank you for responding.

The files play seriously hissing and crackling. Its apparent they are not being properly decoded.
So speed is correct.
The content is still understandable but there seems to be a on overlay of noise or are some sample being decoded incorrectly so there are fragments of good and fragment of bad.

What type of WMA file is it
WMA 7 WMA8, WMA9, WMA Pro, WMA 10, WMA Lossless ? WMA Voice, other ?

Sample rate 44.1kHz, 48khz, 96Khz other ?
Sample size - 16bit, 24bits, 32bits ?
Channels 1, 2 , other ?

Hal Bregg
2019-05-24, 12:52
So speed is correct.
The content is still understandable but there seems to be a on overlay of noise or are some sample being decoded incorrectly so there are fragments of good and fragment of bad.

What type of WMA file is it
WMA 7 WMA8, WMA9, WMA Pro, WMA 10, WMA Lossless ? WMA Voice, other ?

Sample rate 44.1kHz, 48khz, 96Khz other ?
Sample size - 16bit, 24bits, 32bits ?
Channels 1, 2 , other ?


WMA Lossless. There is an overlay noise that seems interfering with the file as processed. It's not like an out of range audio, its the information scrambled.

d6jg
2019-05-24, 13:03
You mention a DAC board in an earlier thread. What is it?
If you disable said DAC and play through the Piís onboard audio do you get the same issue?
I say this because the price point of nearly all the Pi HAT DACs is such that you will get the odd faulty board.

Hal Bregg
2019-05-24, 13:14
WMA Lossless. There is an overlay noise that seems interfering with the file as processed. It's not like an out of range audio, its the information scrambled.

Looking at the file format, the only CD rip data given is 192kbps (best quality). Data on audio CDs is 2-channel signed 16-bit Linear PCM sampled at 44,100 Hz

Hal Bregg
2019-05-24, 13:18
Looking at the file format, the only CD rip data given is 192kbps (best quality). Data on audio CDs is 2-channel signed 16-bit Linear PCM sampled at 44,100 Hz

The DAC board is HiFiBerry DAC+ Light for Raspberry Pi, and listed as approved by piCorePlayer. Playing without it sounds the same. Actually, I have a second, duplicate system, minus the DAC board. Great for MP3s, same distortion for WMA.

kidstypike
2019-05-24, 13:24
The DAC board is HiFiBerry DAC+ Light for Raspberry Pi, and listed as approved by piCorePlayer. Playing without it sounds the same. Actually, I have a second, duplicate system, minus the DAC board. Great for MP3s, same distortion for WMA.

Can you upload a file?

bpa
2019-05-24, 13:36
WMA Lossless. There is an overlay noise that seems interfering with the file as processed. It's not like an out of range audio, its the information scrambled.

Looking at the file format, the only CD rip data given is 192kbps (best quality). Data on audio CDs is 2-channel signed 16-bit Linear PCM sampled at 44,100 Hz

ffmpeg works OK with WMA lossless and 44.1kHz 2 channel means no resampling or other messing is required. ffmpeg libraries on squeezelite for WMA works OK for other users - so it is likely something specific to your system or the file. Since it happens on a second system but you have configured identically - does not help localise the problem to either file or system.

The distortion you describe "feels" like a decoding issue. Many of the ffmpeg WMA libraries are not MS libraries but that said, are well tested.

These files play OK on any other Linux system (which do not have MS libraries) ?

The files play OK on a Windows system ? What does Windows Media player say about the files ?

As kidystypike suggested - uploading a sample file would enable other to test the file.

Hal Bregg
2019-05-24, 14:30
ffmpeg works OK with WMA lossless and 44.1kHz 2 channel means no resampling or other messing is required. ffmpeg libraries on squeezelite for WMA works OK for other users - so it is likely something specific to your system or the file. Since it happens on a second system but you have configured identically - does not help localise the problem to either file or system.

The distortion you describe "feels" like a decoding issue. Many of the ffmpeg WMA libraries are not MS libraries but that said, are well tested.

These files play OK on any other Linux system (which do not have MS libraries) ?

The files play OK on a Windows system ? What does Windows Media player say about the files ?

As kidystypike suggested - uploading a sample file would enable other to test the file.


The same files play well on Logitec Squeezebox Touch and also on the Win 10 Intel i7 default Realtec driver. Sample WMA enclosed.

Is your configuration playing WMAs?

kidstypike
2019-05-24, 14:47
I don't see any sample file.

Hal Bregg
2019-05-24, 14:48
The same files play well on Logitec Squeezebox Touch and also on the Win 10 Intel i7 default Realtec driver. Sample WMA enclosed.

Is your configuration playing WMAs?


Ok trouble uploading a small 5MB file here, non-specific error reported. Is there a size limitation?

kidstypike
2019-05-24, 14:52
Ok trouble uploading a small 5MB file here, non-specific error reported. Is there a size limitation?

Yes, 5MB much too big, can you supply a link to the file? Dropbox?

Hal Bregg
2019-05-24, 15:02
Yes. Placed samples in Dropbox now. Need an email address to share the folder.

kidstypike
2019-05-24, 15:12
Yes. Placed samples in Dropbox now. Need an email address to share the folder.

You should be able to "copy link" and paste it in your post. https://www.dropbox.com/s/mgqxoirhbijzbp8/Longaford%20Tor2.jpg?dl=0

27427

bpa
2019-05-24, 15:17
The same files play well on Logitec Squeezebox Touch and also on the Win 10 Intel i7 default Realtec driver. Sample WMA enclosed.

Is your configuration playing WMAs?

I'm not sure if Touch can play WMA Lossless natively. If not then it is transcoded by MS libraries if LMS is on a Win10 system.

Hal Bregg
2019-05-24, 15:23
You should be able to "copy link" and paste it in your post. https://www.dropbox.com/s/mgqxoirhbijzbp8/Longaford%20Tor2.jpg?dl=0

27427

Thanks !

https://www.dropbox.com/home/Shared?preview=11+POESIE+DI+MUSE.wma

Hal Bregg
2019-05-24, 15:34
The WMAs are on the second Raspberry with PiCorePlayer server and dedicated HD. It plays well into Squeezebox Touch.

kidstypike
2019-05-24, 23:31
Thanks !

https://www.dropbox.com/home/Shared?preview=11+POESIE+DI+MUSE.wma

I don't see any file?

27433

Hal Bregg
2019-05-25, 06:20
I don't see any file?

27433

New Link:


https://www.dropbox.com/s/oecneq77kj5zpee/11%20POESIE%20DI%20MUSE.wma?dl=0

kidstypike
2019-05-25, 07:39
New Link:


https://www.dropbox.com/s/oecneq77kj5zpee/11%20POESIE%20DI%20MUSE.wma?dl=0

OK, got it.

File plays fine with MediaMonkey on Win10 PC, it also plays fine on Squeezelite/piCorePlayer/Pi/HiFiBerry DAC+ when connected to LMS running on same Win10 PC. Filetype settings:

27437

However I can't get the file to play on any player (Can't play file type for:) when players are connected to LMS running on Pi/piCorePlayer. Filetype settings:

27438

However, this is probably down to me not knowing what extensions to install (and how) on the Pi, which is probably your predicament too? :(

So sorry, I can't help you.

Paul Webster
2019-05-25, 08:39
wmadec is Windows only - but the solution might be to use ffmpeg as described in old pCP thread
https://forums.slimdevices.com/showthread.php?107352-Announce-piCorePlayer-3-20&p=906130&viewfull=1#post906130

(quite possible that there is a different/better solution available nowadays)

bpa
2019-05-25, 08:53
Testing with ffmpeg on the file.

When converting it to WAV (which would be the same as squeezelite with ffmpeg libraries). The file converts but with lots of errors which will take time to research. The WMA file is playable with mplayer which also uses ffmpeg libraries.


wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9492476, current: 9492437; changing to 9492476. This may result in incorrect timestamps in the output file.
[wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9588702, current: 9588663; changing to 9588702. This may result in incorrect timestamps in the output file.
[wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9754606, current: 9754567; changing to 9754606. This may result in incorrect timestamps in the output file.
[wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9805806, current: 9805767; changing to 9805806. This may result in incorrect timestamps in the output file.
[wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9816037, current: 9815999; changing to 9816037. This may result in incorrect timestamps in the output file.


I'll see if I can play the file with squeezelite on Ubuntu.

bpa
2019-05-25, 09:05
Success ! - horrible noise when playing with Squeezelite-pulse (which has WMA support) on Ubuntu

Lots of errors messages. The file is at "fault" - whether the file is "bad" or ffmpeg libraries can't cope with a certain feature remains to be determined..


[17:03:03.140933] discover_server:799 got response from: 192.168.1.58:3483
[17:03:03.140951] slimproto:887 connecting to 192.168.1.58:3483
[17:03:03.141002] slimproto:926 connected
[17:03:03.141011] slimproto:937 local player
[17:03:03.141016] sendHELO:134 mac: 74:da:38:a6:39:77
[17:03:03.141020] sendHELO:136 cap: CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1, HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1 .9.2-1145,ModelName=SqueezeLite,MaxSampleRate=384000,ds f,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3,lo c
[17:03:36.370774] ffmpeg: stream 0, timescale not set
[17:03:36.371628] ffmpeg: Error : 6145837 bits left
[17:03:36.371640] ffmpeg: Failed to decode all channels
[17:03:47.093167] ffmpeg: broken frame: channel len(3584) > samples_per_frame(2048)
[17:03:47.093212] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.093823] ffmpeg: Found empty subframe
[17:03:47.093846] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.094512] ffmpeg: Found empty subframe
[17:03:47.094532] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.095059] ffmpeg: broken frame: channel len(2944) > samples_per_frame(2048)
[17:03:47.095080] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.095323] ffmpeg: Expect wrong output since inverse LPC filter[17:03:47.095329] ffmpeg: is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[17:03:47.095334] ffmpeg: If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[17:03:47.095365] ffmpeg: Arithmetic coding[17:03:47.095369] ffmpeg: is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[17:03:47.095373] ffmpeg: If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[17:03:47.095377] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.095598] ffmpeg: broken frame: channel len(3584) > samples_per_frame(2048)
[17:03:47.095607] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.095824] ffmpeg: broken frame: channel len(2688) > samples_per_frame(2048)
[17:03:47.095831] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.096044] ffmpeg: broken frame: channel len(2560) > samples_per_frame(2048)
[17:03:47.096051] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.096265] ffmpeg: broken frame: channel len(2304) > samples_per_frame(2048)
[17:03:47.096272] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input
[17:03:47.096487] ffmpeg: broken frame: channel len(2176) > samples_per_frame(2048)
[17:03:47.096494] ff_decode:408 avcodec_decode_audio4 error: -1094995529 Invalid data found when processing input

Hal Bregg
2019-05-25, 09:10
Testing with ffmpeg on the file.

When converting it to WAV (which would be the same as squeezelite with ffmpeg libraries). The file converts but with lots of errors which will take time to research. The WMA file is playable with mplayer which also uses ffmpeg libraries.


wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9492476, current: 9492437; changing to 9492476. This may result in incorrect timestamps in the output file.
[wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9588702, current: 9588663; changing to 9588702. This may result in incorrect timestamps in the output file.
[wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9754606, current: 9754567; changing to 9754606. This may result in incorrect timestamps in the output file.
[wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9805806, current: 9805767; changing to 9805806. This may result in incorrect timestamps in the output file.
[wav @ 0x55ffb335dec0] Non-monotonous DTS in output stream 0:0; previous: 9816037, current: 9815999; changing to 9816037. This may result in incorrect timestamps in the output file.


I'll see if I can play the file with squeezelite on Ubuntu.

This is great, as the WMA file format was eliminated as a cause, with thanks !
So the next suspect is the settings. File Size on Main Page tab? ALSA parameters under Squeezelite tab? PCP kernel under Tweeks tab? What works well for you?

Hal Bregg
2019-05-25, 09:14
This is great, as the WMA file format was eliminated as a cause, with thanks !
So the next suspect is the settings. File Size on Main Page tab? ALSA parameters under Squeezelite tab? PCP kernel under Tweeks tab? What works well for you?



"Horrible noise" is a much better description than my "distortion", well said !

FFmpeg libraries does indeed sound like a strong lead. Wonder if there is an alternative source or version for them ?

bpa
2019-05-25, 09:22
"Horrible noise" is a much better description than my "distortion", well said !

FFmpeg libraries does indeed sound like a strong lead. Wonder if there is an alternative source or version for them ?

ffmpeg is an area to check but also possibility the file is doing something "illegal" (certainly looks like it from the error messages)

What application was used to rip the file ? Was it an MS application or a 3rd party ?

WMA used to be proprietary (don't know current status as MS have open sourced lots of things). IIRC original ffmpeg WMA decoders were independently written without specifications or use of MS docs to avoid litigation. So some features may not have been implemented.

Need to check whether latest version of ffmpeg still has the problems. Reporting problems to ffmpeg can be a pain and often not a quick reply. The source of the file (i.e. details of the ripping s/w) usually needs to be part of that report.

Hal Bregg
2019-05-25, 10:08
ffmpeg is an area to check but also possibility the file is doing something "illegal" (certainly looks like it from the error messages)

What application was used to rip the file ? Was it an MS application or a 3rd party ?

WMA used to be proprietary (don't know current status as MS have open sourced lots of things). IIRC original ffmpeg WMA decoders were independently written without specifications or use of MS docs to avoid litigation. So some features may not have been implemented.

Need to check whether latest version of ffmpeg still has the problems. Reporting problems to ffmpeg can be a pain and often not a quick reply. The source of the file (i.e. details of the ripping s/w) usually needs to be part of that report.


A few years ago I used a PC with MS Windows Media Player to rip all my CDs to WMA Lossless and play them on Squeezebox Touch. That turned out to be the last year of it, landing me in the same predicament as the rest of us.

bpa
2019-05-25, 11:24
Similar errors were seen on a WMA lossless stream and bug reported ( https://trac.ffmpeg.org/ticket/5820 ) but it seemed to be a transport issue and so was considered nothing to fix.

Hal Bregg
2019-05-26, 17:34
Similar errors were seen on a WMA lossless stream and bug reported ( https://trac.ffmpeg.org/ticket/5820 ) but it seemed to be a transport issue and so was considered nothing to fix.

So, in essence, the piCorePlayer is unable to play WMA format ?

Paul Webster
2019-05-26, 22:21
It needs a helper to do it - which usually works - but even that does not (currently) help in the case of your particular WMA files.

bpa
2019-05-27, 00:24
So, in essence, the piCorePlayer is unable to play WMA format ?

No - the answer is more nuanced. Squeezelite (all version not just PCP) cannot play YOUR WMA files.
Up to now, Squeezelite has been able to play all types of WMA files of LMS users.
There is something in your WMA files that seem to break the WMA specification as posted by MS but it can be tolerated.

There are applications such as mplayer and VLC which use the ffmpeg libraries and can play your files. Squeezlite also uses the ffmpeg libraries but cannot handle your WMA files. So the issue is probably squeezelite is not using the ffmpeg libraries "properly" and some sort of result from libraries is producing the error message and squeezelite is breaking the decode process.

The long term solution would be an update to Squeezeliute to handle your WMA files in the way VLC and other users of ffmpeg libraries.

Short term answer might be to get a copy of ffmpeg on your LMS system to transcode WMA (i.e. modify PlayWMA plugin to use ffmpeg) and not have Squeezelite attempt the decode.

kidstypike
2019-05-27, 00:53
No - the answer is more nuanced. Squeezelite (all version not just PCP) cannot play YOUR WMA files.

Deeply puzzled!

Squeezelite CAN play the supplied file when the player is connected to LMS running on my WIN10 PC. (see my post #24 above).

Player "study" below is Pi3B+/HiFiBerry DAC+/piCorePlayer 4.1

27441

bpa
2019-05-27, 03:08
Deeply puzzled!

Squeezelite CAN play the supplied file when the player is connected to LMS running on my WIN10 PC. (see my post #24 above).

Player "study" below is Pi3B+/HiFiBerry DAC+/piCorePlayer 4.1

27441

Is LMS doing the transcoding ? LMS on Windows uses MS supplied libraries not ffmpeg to transcode.
Can the Squeezelite play WMA native ?

Check by running Squeezelite with " -d slimproto=info " and the initial output will show what codecs are supported natively (scroll text below to end).


11:06:39.282286] sendHELO:136 cap: CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1, HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1 .9.2-1145,ModelName=SqueezeLite,MaxSampleRate=384000,ds f,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3,lo c

kidstypike
2019-05-27, 03:14
Is LMS doing the transcoding ? LMS on Windows uses MS supplied libraries not ffmpeg to transcode.
Can the Squeezelite play WMA native ?

Check by running Squeezelite with " -d slimproto=info " and the initial output will show what codecs are supported natively (scroll text below to end).


11:06:39.282286] sendHELO:136 cap: CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1, HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1 .9.2-1145,ModelName=SqueezeLite,MaxSampleRate=384000,ds f,dff,alc,wma,wmap,wmal,aac,ogg,flc,aif,pcm,mp3,lo c



Sorry bpa, all completely beyond me, will bow out.

bpa
2019-05-27, 04:29
Sorry bpa, all completely beyond me, will bow out.

OK - I may try to test with the Ubuntu Squeezelite and a Win10 LMS.

Hal Bregg
2019-05-27, 11:51
OK - I may try to test with the Ubuntu Squeezelite and a Win10 LMS.

Ok. Thank you for looking into it, Friends. I appreciate it.

BPA, did you play this file on a PC or Raspberry? If PC, are you successful playing any other WMA on Raspberry?

bpa
2019-05-27, 12:45
Ok. Thank you for looking into it, Friends. I appreciate it.

BPA, did you play this file on a PC or Raspberry? If PC, are you successful playing any other WMA on Raspberry?
I played on a PC (Ubuntu 18.04) which has squeezelite which is statically linked with the ffmpeg libraries - so exactly same code as runs on Pi.

Looking at Squeezelite issues - there is an open minor issue about using old ffmpeg library interface.
I think the problem is really squeezelite not handling the feedback from ffmpeg gracefully.

To check if this is really the same error on your Pi - look at the log from squeezelite - I think you have to enable it on pcp.

Hal Bregg
2019-05-27, 13:51
I played on a PC (Ubuntu 18.04) which has squeezelite which is statically linked with the ffmpeg libraries - so exactly same code as runs on Pi.

Looking at Squeezelite issues - there is an open minor issue about using old ffmpeg library interface.
I think the problem is really squeezelite not handling the feedback from ffmpeg gracefully.

To check if this is really the same error on your Pi - look at the log from squeezelite - I think you have to enable it on pcp.


Will do.. Also, Squeezelite tab has a setting for the Binary and for ALSA. What is your setting there?

bpa
2019-05-27, 14:31
Will do.. Also, Squeezelite tab has a setting for the Binary and for ALSA. What is your setting there?
I don't have pcp so I don't know what you're talking about. The message I see require no additional setting as squeezelite is run from a command line. However Squeezelite log should have nothing to do with Binary or ALSA. When squeezelite runs, it produces messages usually to stderr, these can be put into a log file. Squeezelite also has specific log options which can be enabled by command line options - to check "decoder" messages, you can add "-d decode=info" to the command line

Hal Bregg
2019-05-27, 21:17
I don't have pcp so I don't know what you're talking about. The message I see require no additional setting as squeezelite is run from a command line. However Squeezelite log should have nothing to do with Binary or ALSA. When squeezelite runs, it produces messages usually to stderr, these can be put into a log file. Squeezelite also has specific log options which can be enabled by command line options - to check "decoder" messages, you can add "-d decode=info" to the command line

Ok. I tested the following.

Started LMS running on a Raspberry 1 PCP server and sent a WMA first to Squeezebox Touch, then to a PCP player on Raspberry 2.
Sopped LMS, restarted it on WIN 10 with a Squeezelite X, and repeated the test with the same WMA and the same destination.

In both tests the WMA played perfectly on the Touch and produced a horrible noise on the Raspberry 2 Player.

So, to Sherlock Holmes it, it would seem the WMA seems gets a pass, Squeezette gets a pass, and the PiCorePlayer gets to blush ?

bpa
2019-05-27, 23:32
So, to Sherlock Holmes it, it would seem the WMA seems gets a pass, Squeezette gets a pass, and the PiCorePlayer gets to blush ?

Not necessarily, you haven't shown whether transcoding is taking place on the Win10 LMS.

What is in the log from the pcp suqeezelite player when you get the noise ?

bpa
2019-05-28, 00:29
Having booted up a LMS Win10 system - I did some test with problem file.

Players - Boom (no WMA lossless) , Radio (native WMA Lossless), SqueezeliteX (on Win10 & native WMA Lossless), Squeezelite (on Ubuntu/Linux & native WMA Lossless)


1. Boom - plays OK with LMS transcoding (wmadec/flac)
2. Radio - plays OK with no transcoding.
3. SqueezeliteX - plays Noise with no transcoding.
4. Squeezelite - plays Noise with no transcoding.
5. SqueezeliteX - plays OK with transcoding (i.e. WMA Lossless filetype native disabled).
6. Squeezelite - plays OK with transcoding (i.e. WMA Lossless filetype native disabled).
7. Radio - plays OK with transcoding (i.e. WMA Lossless filetype native disabled).

This tells me the problem is Squeezelite use of ffmpeg libraries - doesn't matter which OS platform Squeezelite is on - the problem still appears.

Transcoding from WMA Lossless with LMS on Linux (or OSX) will depend on ffmpeg libraries - so caution.
Transcoding from WMA Lossless with LMS on Windows is OK using wmadec.

ralphy
2019-05-28, 04:34
Thanks bpa for bringing this to my attention.

ffmpeg was updated last year when AVStream member AVCodecContext was deprecated in the api.

I'll research if those changes are the cause or if squeezelite isn't handling ffmpeg decoder errors correctly and report back in this thread.

Hal Bregg
2019-05-28, 07:23
Thanks bpa for bringing this to my attention.

ffmpeg was updated last year when AVStream member AVCodecContext was deprecated in the api.

I'll research if those changes are the cause or if squeezelite isn't handling ffmpeg decoder errors correctly and report back in this thread.


Hi Ralphy, Happy to see you monitoring the threads, and complements on the great product !

I'm testing out the PCP, impressed by its potential as both a Player and Server for WMA. The PCP looks good and a generous donation fully worth it, once I get it to work.
Also, impressed with the depth of knowledge and will to assist by the senior colleagues here ! Thanks !

Ralphy, sa your comment was on the ffmpeg only, should we conclude other settings of the PCP have no bearing on the issue?

Hal Bregg
2019-05-29, 21:33
I played on a PC (Ubuntu 18.04) which has squeezelite which is statically linked with the ffmpeg libraries - so exactly same code as runs on Pi.

Looking at Squeezelite issues - there is an open minor issue about using old ffmpeg library interface.
I think the problem is really squeezelite not handling the feedback from ffmpeg gracefully.

To check if this is really the same error on your Pi - look at the log from squeezelite - I think you have to enable it on pcp.


Ok, supposing there is an error there. What would be the way of fixing it?

Paul Webster
2019-05-29, 21:56
Ok, supposing there is an error there. What would be the way of fixing it?

It would probably need a code change in Squeezelite and then distribution of new versions for loads of platforms and then installation by users.
Ralphy usually makes a test version available first for the person/people who have seen the issue so that they can test/verify fixes and check for unexpected side-effects before the rest of the world gets it in an official release.

Hal Bregg
2019-05-29, 22:15
It would probably need a code change in Squeezelite and then distribution of new versions for loads of platforms and then installation by users.
Ralphy usually makes a test version available first for the person/people who have seen the issue so that they can test/verify fixes and check for unexpected side-effects before the rest of the world gets it in an official release.


Thanks, that sounds good, if a little lengthy ?

Meanwhile, I recoded one of the WMA files to FLAC and it played distortion free.

bpa
2019-05-30, 00:58
Thanks, that sounds good, if a little lengthy ?
That is the nature of s/w development. A single line of code changed may requires hours of testing to check that there are no side effects.The ffmpeg API change may have broken WMA lossless as I get the same "nosie" with a WMA lossless test file I haveit shows how few people still use WMA lossless and show how hard it is to validate changes to cover most users.

I think pcp 5.0 is nearly ready so I doubt a "fixed" squeezelite will make it into it. Normally, such a change would then be included in next point release, however there is a new "hot fix" feature which may be applicable.


Meanwhile, I recoded one of the WMA files to FLAC and it played distortion free.
The workaround I suggested earlier is still possible - modify the PlayWMA plugin to use ffmpeg to do transcoding as I think there is a package which has command line ffmpeg for pcp.

Hal Bregg
2019-05-30, 08:39
That is the nature of s/w development. A single line of code changed may requires hours of testing to check that there are no side effects.The ffmpeg API change may have broken WMA lossless as I get the same "nosie" with a WMA lossless test file I haveit shows how few people still use WMA lossless and show how hard it is to validate changes to cover most users.

I think pcp 5.0 is nearly ready so I doubt a "fixed" squeezelite will make it into it. Normally, such a change would then be included in next point release, however there is a new "hot fix" feature which may be applicable.


The workaround I suggested earlier is still possible - modify the PlayWMA plugin to use ffmpeg to do transcoding as I think there is a package which has command line ffmpeg for pcp.


I'd appreciate if someone could share a WMA file that plays well on their PCP. Due to the file size, a link to a DropBox might be the best. Thanks in advance !

Hal Bregg
2019-05-31, 17:26
I'd appreciate if someone could share a WMA file that plays well on their PCP. Due to the file size, a link to a DropBox might be the best. Thanks in advance !

Or, can anyone confirm their own experience of WMA successfully playing on PCP?

bpa
2019-06-01, 00:30
Or, can anyone confirm their own experience of WMA successfully playing on PCP?

I don't have pcp and as this thread is probably not read by many pcp users, if you need an answer to the generic pcp question - ask it on the pcp support thread https://forums.slimdevices.com/showthread.php?109404-ANNOUNCE-piCorePlayer-4-0-0

The problem is Squeezelite specific not pcp specific. I have reproduced this problem with Squeezelite on Win10 and Ubuntu.

AFAICT The problem only affects WMA lossless files - the problem happens with some other WMA lossless files I have. WMA lossy files are not affected and play OK.

I think the issue maybe a "recent" one due to a change in the ffmpeg API as I believe my WMA lossless test files used to play OK but I am not certain as earlier builds often didn't include wma support - so LMS may have been doing the transcoding.

ralphy
2019-06-01, 05:11
This issue is with ffmpeg wmalossless decoder in 3.1, 3.2 and 3.3. Which are the versions I currently use to build SL.
Upgrading to 3.4 and all the wma lossless files I tried play fine. Back porting the changes to 3.2 fixes wma lossless playback as well.
Unfortunately, squeezelite is using a depreciated ffmpeg api call so I can't upgrade to the latest ffmpeg until I change that and upgrading to 3.4 has caused stability issues with wma and alac playback.

kidstypike
2019-06-01, 05:41
This issue is with ffmpeg wmalossless decoder in 3.1, 3.2 and 3.3. Which are the versions I currently use to build SL.
Upgrading to 3.4 and all the wma lossless files I tried play fine. Back porting the changes to 3.2 fixes wma lossless playback as well.
Unfortunately, squeezelite is using a depreciated ffmpeg api call so I can't upgrade to the latest ffmpeg until I change that and upgrading to 3.4 has caused stability issues with wma and alac playback.

I ripped an album to WMA lossless, added album art, replaygain tags, etc.. This album plays beautifully using Pi3B+/HiFiBerry DAC+/piCoreplayer, when it is connected to LMS running on Windows 10, but not when connected to LMS running on another Pi/piCorePlayer.

See also my post #24 in this thread.

Could you please explain in very, very simple language what the difference is between the two, bearing in mind it's the same squeezelite player?

Thank you.

27472

ralphy
2019-06-01, 05:53
The base picoreplayer install does not include the ffmpeg libraries to save space in the image.
In this state, squeezelite can't play wma or alac files and relies on LMS to transcode those formats.
LMS on Windows includes transcoding support (wmadec) for wma files all other platforms including linux (picoreplayer) require either bpa's PlayWMA plug or a custom-convert.conf with transcoding rules for wma wmal and wmap.

There's an install ffmpeg library button on the main page of the picoreplayer webgui which adds native wma and alac support to squezelite. After installing pcp-libffmpeg.tcz, wmalossless files currently won't play correctly.

kidstypike
2019-06-01, 05:59
The base picoreplayer install does not include the ffmpeg libraries to save space in the image.
In this state, squeeelite can't play wma or alac files and relies on LMS to transcode those formats.
LMS on Windows includes transcoding support (wmadec) for wma files all other platforms include linux (picoreplayer) require either bpa's PlayWMA plug or a custom-convert.conf with transcoding rules for wma wmal and wmap.

There's an install ffmpeg library button on the main page of the picoreplayer webgui which adds native wma and alac support to squezelite. After installing pcp-libffmpeg.tcz, wmalossless files currently won't play correctly.

Thank you.

Hal Bregg
2019-06-04, 14:25
Thank you.


OK. Thank you all for good effort and advice. My take away from it is, as it stands now, to retain lossless audio, I need to re-code all my WMA to FLAC. Correct?

bpa
2019-06-04, 14:53
OK. Thank you all for good effort and advice. My take away from it is, as it stands now, to retain lossless audio, I need to re-code all my WMA to FLAC. Correct?

Or if ffmpeg exectuable is available for your LMS system - modify the convert.conf file (or add a custom-cnovert.conf) to transcode WMA Lossless using ffmpeg and disable native WMA Lossless.

caball
2019-08-19, 01:26
Hello,
I have another problem with WMA files - I'm unable to play two or more songs continuously. It stops after each track and I need to start manually the next one.

Version of Squeezelite: Squeezelite v1.9.3-1180 on Debian 10 Buster
LMS - Logitech Media Server Version: 7.9.2 - 1565967976 @ Fri Aug 16 17:16:14 CEST 2019 on Debian 10 Buster

Thanks to god that there are no noises or glitches during playback :)
But its strange behavior. What can causing this?

slartibartfast
2019-08-19, 03:56
Hello,
I have another problem with WMA files - I'm unable to play two or more songs continuously. It stops after each track and I need to start manually the next one.

Version of Squeezelite: Squeezelite v1.9.3-1180 on Debian 10 Buster
LMS - Logitech Media Server Version: 7.9.2 - 1565967976 @ Fri Aug 16 17:16:14 CEST 2019 on Debian 10 Buster

Thanks to god that there are no noises or glitches during playback :)
But its strange behavior. What can causing this?You seemed to have the same issue in April. Changing to Debian didn't help then.

https://forums.slimdevices.com/showthread.php?p=937356

Sent from my SM-G900F using Tapatalk