Bugzilla – Bug 9323
Home Server and Lame 3.98 don't work well togethor
Last modified: 2009-07-31 10:28:24 UTC
I had no problem installing lame 3.97 on Vista and having my server transcode bit rate limited mp3 streams. I've recently moved the server to my Home Server and installed lame 3.98, configured my player to limit bit rate. No audio at all though the client the server show that it is playing. If I turn off limitied bit rate all is fine. Yes I have lame enabled in file types for wma(WMA lossless). I turned on logging in softsqueeze and this is what I get: 3 [SlimTCP-1] ERROR javasound - Unsupported Audio Stream javax.sound.sampled.UnsupportedAudioFileException: not a MPEG stream:null at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioFileFormat(Unknown Source) at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:360) at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:315) at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioInputStream(Unknown Source) at org.titmuss.softsqueeze.audio.AudioDecoder.<init>(AudioDecoder.java:144) at org.titmuss.softsqueeze.audio.Player.initStream(Player.java:538) at org.titmuss.softsqueeze.audio.Player.connect(Player.java:410) at org.titmuss.softsqueeze.audio.Player.slimprotoCmd(Player.java:215) at org.titmuss.softsqueeze.net.Protocol.socketCommand(Protocol.java:424) at org.titmuss.softsqueeze.net.Protocol.access$400(Protocol.java:42) at org.titmuss.softsqueeze.net.Protocol$TcpSocket.run(Protocol.java:523) 13 [SlimTCP-1] ERROR player - strm Audio error org.titmuss.softsqueeze.audio.AudioException: Unsupported Audio Stream at org.titmuss.softsqueeze.audio.AudioDecoder.<init>(AudioDecoder.java:212) at org.titmuss.softsqueeze.audio.Player.initStream(Player.java:538) at org.titmuss.softsqueeze.audio.Player.connect(Player.java:410) at org.titmuss.softsqueeze.audio.Player.slimprotoCmd(Player.java:215) at org.titmuss.softsqueeze.net.Protocol.socketCommand(Protocol.java:424) at org.titmuss.softsqueeze.net.Protocol.access$400(Protocol.java:42) at org.titmuss.softsqueeze.net.Protocol$TcpSocket.run(Protocol.java:523) 321 [SlimTCP-1] ERROR javasound - Unsupported Audio Stream javax.sound.sampled.UnsupportedAudioFileException: not a MPEG stream:null at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioFileFormat(Unknown Source) at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:360) at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:315) at javazoom.spi.mpeg.sampled.file.MpegAudioFileReader.getAudioInputStream(Unknown Source) at org.titmuss.softsqueeze.audio.AudioDecoder.<init>(AudioDecoder.java:144) at org.titmuss.softsqueeze.audio.Player.initStream(Player.java:538) at org.titmuss.softsqueeze.audio.Player.connect(Player.java:410) at org.titmuss.softsqueeze.audio.Player.slimprotoCmd(Player.java:215) at org.titmuss.softsqueeze.net.Protocol.socketCommand(Protocol.java:424) at org.titmuss.softsqueeze.net.Protocol.access$400(Protocol.java:42) at org.titmuss.softsqueeze.net.Protocol$TcpSocket.run(Protocol.java:523) 323 [SlimTCP-1] ERROR player - strm Audio error org.titmuss.softsqueeze.audio.AudioException: Unsupported Audio Stream at org.titmuss.softsqueeze.audio.AudioDecoder.<init>(AudioDecoder.java:212) at org.titmuss.softsqueeze.audio.Player.initStream(Player.java:538) at org.titmuss.softsqueeze.audio.Player.connect(Player.java:410) at org.titmuss.softsqueeze.audio.Player.slimprotoCmd(Player.java:215) at org.titmuss.softsqueeze.net.Protocol.socketCommand(Protocol.java:424) at org.titmuss.softsqueeze.net.Protocol.access$400(Protocol.java:42) at org.titmuss.softsqueeze.net.Protocol$TcpSocket.run(Protocol.java:523) This is what I see from the server side debugging: [08-08-28 16:56:34.1829] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-ogg-*-* [08-08-28 16:56:34.1833] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-flc-softsqueeze-69:4c:d0:70:00:c2 [08-08-28 16:56:34.1836] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-flc-*-69:4c:d0:70:00:c2 [08-08-28 16:56:34.1840] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-flc-softsqueeze-* [08-08-28 16:56:34.1843] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-flc-*-* [08-08-28 16:56:34.1846] Slim::Player::TranscodingHelper::enabledFormat (119) Checking to see if wma-flc-*-* is enabled [08-08-28 16:56:34.1850] Slim::Player::TranscodingHelper::enabledFormat (127) There are 1 disabled formats... [08-08-28 16:56:34.1853] Slim::Player::TranscodingHelper::enabledFormat (133) Testing wma-wav-*-* vs wma-flc-*-* [08-08-28 16:56:34.1857] Slim::Player::TranscodingHelper::checkBin (160) enabled [08-08-28 16:56:34.1860] Slim::Player::TranscodingHelper::checkBin (162) Found command: [wmadec] -r 44100 -b 16 -n 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 - [08-08-28 16:56:34.1865] Slim::Utils::Prefs::maxRate (815) Setting maxBitRate for Desktop to: 192 [08-08-28 16:56:34.1875] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-aif-softsqueeze-69:4c:d0:70:00:c2 [08-08-28 16:56:34.1879] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-aif-*-69:4c:d0:70:00:c2 [08-08-28 16:56:34.1883] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-aif-softsqueeze-* [08-08-28 16:56:34.1886] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-aif-*-* [08-08-28 16:56:34.1890] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-wav-softsqueeze-69:4c:d0:70:00:c2 [08-08-28 16:56:34.1893] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-wav-*-69:4c:d0:70:00:c2 [08-08-28 16:56:34.1897] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-wav-softsqueeze-* [08-08-28 16:56:34.1900] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-wav-*-* [08-08-28 16:56:34.1903] Slim::Player::TranscodingHelper::enabledFormat (119) Checking to see if wma-wav-*-* is enabled [08-08-28 16:56:34.1907] Slim::Player::TranscodingHelper::enabledFormat (127) There are 1 disabled formats... [08-08-28 16:56:34.1911] Slim::Player::TranscodingHelper::enabledFormat (133) Testing wma-wav-*-* vs wma-wav-*-* [08-08-28 16:56:34.1914] Slim::Player::TranscodingHelper::enabledFormat (137) ** wma-wav-*-* Disabled ** [08-08-28 16:56:34.1918] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-mp3-softsqueeze-69:4c:d0:70:00:c2 [08-08-28 16:56:34.1921] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-mp3-*-69:4c:d0:70:00:c2 [08-08-28 16:56:34.1924] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-mp3-softsqueeze-* [08-08-28 16:56:34.1928] Slim::Player::TranscodingHelper::checkBin (152) Checking formats for: wma-mp3-*-* [08-08-28 16:56:34.1931] Slim::Player::TranscodingHelper::enabledFormat (119) Checking to see if wma-mp3-*-* is enabled [08-08-28 16:56:34.1934] Slim::Player::TranscodingHelper::enabledFormat (127) There are 1 disabled formats... [08-08-28 16:56:34.1938] Slim::Player::TranscodingHelper::enabledFormat (133) Testing wma-wav-*-* vs wma-mp3-*-* [08-08-28 16:56:34.1941] Slim::Player::TranscodingHelper::checkBin (160) enabled [08-08-28 16:56:34.1944] Slim::Player::TranscodingHelper::checkBin (162) Found command: [wmadec] -r 44100 -b 16 -n 2 $FILE$ | [lame] $-x$ --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ - - [08-08-28 16:56:34.1950] Slim::Utils::Prefs::maxRate (815) Setting maxBitRate for Desktop to: 192 [08-08-28 16:56:34.1998] Slim::Player::TranscodingHelper::getConvertCommand (305) Matched Format: mp3 Type: wma Command: [wmadec] -r 44100 -b 16 -n 2 $FILE$ | [lame] $-x$ --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ - - [08-08-28 16:56:34.2003] Slim::Player::Source::gotoNext (1420) Playing out before starting next song. (old format: mp3, new: mp3) [08-08-28 16:56:34.2007] Slim::Player::Source::playmode (309) 69:4c:d0:70:00:c2: Switching to mode playout-play from play [08-08-28 16:56:34.2018] Slim::Player::Source::playmode (412) 69:4c:d0:70:00:c2 New play mode: playout-play [08-08-28 16:56:34.2036] Slim::Player::Source::playmode (581) 69:4c:d0:70:00:c2: Current playmode: playout-play [08-08-28 16:56:34.2040] Slim::Player::Source::dropStreamingConnection (1464) No pending chunks - we're dropping the streaming connection [08-08-28 16:56:34.2051] Slim::Player::Source::readNextChunk (2591) 69:4c:d0:70:00:c2: Can't opennext, returning no chunk. [08-08-28 16:56:34.3085] Slim::Player::Source::decoderUnderrun (607) 69:4c:d0:70:00:c2: Decoder underrun while this mode: playout-play [08-08-28 16:56:34.3090] Slim::Player::Source::nextsong (1705) The next song is number 2, was 1 [08-08-28 16:56:34.3099] Slim::Player::Source::nextsong (1705) The next song is number 2, was 1 [08-08-28 16:56:34.3105] Slim::Player::Source::decoderUnderrun (664) 69:4c:d0:70:00:c2: Ignoring decoder underrun, player already has 2 tracks [08-08-28 16:56:39.6154] Slim::Player::Source::playmode (309) 69:4c:d0:70:00:c2: Switching to mode pause from playout-play [08-08-28 16:56:39.6174] Slim::Player::Source::playmode (412) 69:4c:d0:70:00:c2 New play mode: pause [08-08-28 16:56:39.6193] Slim::Player::Source::playmode (581) 69:4c:d0:70:00:c2: Current playmode: pause [08-08-28 16:56:41.1805] Slim::Utils::Prefs::maxRate (815) Setting maxBitRate for Desktop to: 192 [08-08-28 16:56:41.1824] Slim::Utils::Prefs::maxRate (815) Setting maxBitRate for Desktop to: 192
Jeff, wmadec which is used to do server side transcoding and bitrate limiting of wma files requires a version of Windows Media Player to be installed. I am not sure if Windows Home Server supports installing Windows Media Player at this time. Are you able to successfully bitrate limit other formats such as wav or flac?
No, I just turned off lame for wma and turned on wave. Softsqueeze reports unknown stream. As for flac I didn't think you could bit limit it.
Sorry Jeff, to be more clear did you try playing a flac or wav file instead of a wma file?
My wma lossless files transcode to flac fine and stream to all my players. So you are saying that wma lossless can be transcoded to flac just fine on home server just not bit rate limited via Lame? I don't have any other file types in my library I'd have to put some bogus file up to test otherwise for you.
Ok, yes a flac file gets bit rate limited just fine. What about installing windows media encoder on the home server shouldn't that work?
Well if you can play wma lossless and stream them as flac, it seems that wmadec is already working properly on your windows home server. It seems it is just specific to the wmadec lame bitrate limiting combination.
Very Interesting! I found an older download of Lame 3.97 and it works with lame 3.97. Apparently the issues is related to lame 3.98. Might not be home server specific so it might be worth tracking down anyway. Anyway, 3.97 is good enough for me so do what you will this bug report. If You do want me to test something I'll put 3.98 back on my server.
Looks like our convert.conf needs to be updated to be compatible with LAME 3.98. I suggest changing this: wma mp3 * * [wmadec] -r 44100 -b 16 -n 2 $FILE$ | [lame] $-x$ --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ - - To this: wma mp3 * * [wmadec] -r 44100 -b 16 -n 2 -w $FILE$ | [lame] --silent -q $QUALITY$ --abr $BITRATE$ - - Adding the -w option to wmadec adds a wav header to the output so lame input no longer needs -x specified since the proper endiness information is contained in the header. No need to tell LAME to resample either since we have the -r 44100 turned on for wmadec, not really sure why that was there in the first place. I tested against both 3.97 and 3.98 versions of lame. Andy, could you take a look and check the change in if it seems ok to you?
Looks OK to me. Fixed in 7.2.1 change 23202.
Verified with SqueezeCenter Version: 7.2.1 - 23502
This bug has been fixed in the 7.3.0 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Reduce number of active targets for SC