View Full Version : PlayWma does not work in 7.5.1
I just loaded SqueezeCenter 7.5.1 on MacBookpro, 10.6 OSX snow leopard, 64 bit.
also loaded mplayer with the intel extension library. Also enabled the PlayWma plugin. The objective is to get this wma station to work
mms://64.225.157.204/sawtfm1
I tried the station directly into mplayer and seems to work fine. But when I try to play it in SC, I get a log error, that PlayWma unable to generate a command to mplayer.
Any help appreciated.
I had to reload back 7.3.4 with AlienBBC, I will try that combination tonight.
I tried the station directly into mplayer and seems to work fine. But when I try to play it in SC, I get a log error, that PlayWma unable to generate a command to mplayer.
Enable player.source logging to DEBUG ad plugin.playwma to DEBUG and then post the relevant section of the log verbatim. Sometimes it is the log messages that are missing not the ones that are present that helps find the problem
Bpa,
I wish I knew you were going to reply so fast!! thanks!
unfortunately I gave up and loaded 7.3.4 with Alien, I will test that tonight, if it also does not work. I will reload 7.5.1 and try exactly what you suggested and send you the logs.
Many thanks indeed for being so prompt. I also read all your postings on replacing Alien ( most excellent postings). That still did not help. Could be something to do with the 64 bit systems.
Unlikely 64 bit is an issue since the mplayer app runs OK on your system.
More likely is the mplayer cannot be found by the wmaplayer.sh shell script or there is a permissions issue. The log message will help as I don't recognise the message "PlayWma unable to generate a command to mplayer.".
I tried Alien, same issue no luck. Here is the log file ( notice error 408 at bottom), looks like SC is crashing ? Also If you can give me a more detail hint how to enable more debugging as you requested I would appreciate it, I am not familiar with how to enable debugging on plugins
>>>>>
frame 12: main::main (./slimserver.pl line 1072)
[10-11-05 19:04:35.8827] Slim::Plugin::MusicMagic::Plugin::initPlugin (265) Can't connect to port 10002 - MusicIP disabled.
[10-11-05 19:04:36.0547] main::checkDataSource (974) Warning: Schema updated or no tracks in the database, initiating scan.
[10-11-05 19:17:15.6375] Slim::Player::Song::open (408) Error: Couldn't create command line for wma playback for [mms://64.225.157.204/sawtfm1]
[10-11-05 19:18:08.5005] Slim::Player::Song::open (408) Error: Couldn't create command line for wma playback for [mms://64.225.157.204/sawtfm1]
[10-11-05 19:18:24.3710] Slim::Player::Song::open (408) Error: Couldn't create command line for wma playback for [mms://64.225.157.204/sawtfm1]
[10-11-05 19:28:05.2172] main::init (323) Starting Squeezebox Server (v7.5.1, r30836, Tue Jun 1 05:56:14 PDT 2010) perl 5.010000
[10-11-05 19:28:06.3291] main::init (323) Starting Squeezebox Server (v7.5.1, r30836, Tue Jun 1 05:56:14 PDT 2010) perl 5.010000
Sorry, I figured out your debugging instructions... my bad.
Here is what I get, it keeps repeating this, I could not catch the beginning
[10-11-05 19:47:21.6631] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-05 19:47:21.9673] Slim::Player::Player::_buffering (1149) Buffering... 0 / 261120
[10-11-05 19:47:21.9736] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-05 19:47:22.2705] Slim::Player::Player::_buffering (1149) Buffering... 0 / 261120
[10-11-05 19:47:22.3647] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-05 19:47:22.5724] Slim::Player::Player::_buffering (1149) Buffering... 0 / 261120
[10-11-05 19:47:22.5772] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-05 19:47:22.8736] Slim::Player::Player::_buffering (1149) Buffering... 0 / 261120
[10-11-05 19:47:22.8803] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-05 19:47:23.1753] Slim::Player::Player::_buffering (1149) Buffering... 0 / 261120
[10-11-05 19:47:23.1827] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-05 19:47:23.4776] Slim::Player::Player::_buffering (1149) Buffering... 0 / 261120
[10-11-05 19:47:23.4844] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-05 19:47:23.7800] Slim::Player::Player::_buffering (1149) Buffering... 0 / 261120
[10-11-05 19:47:23.7868] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-05 19:47:24.0
Looks like playWMA has not been installed properly as the log does not show any processing of the URL or perhaps you have missed that part of the log. Open the log window before you start the test to see early messages. Otherwise copy from the server.log file itself - all message are kept.
Are there any messages against PlayWMA in Settings/Advanced/Plugins ?
Do you have wmaplayer.sh entries in Settings/Advanced/Filetypes for Windows Media ?
Have you disabled native Windows Media in Settings/Advanced/Filetypes ?
Script seems to be loaded, I had to go to server.log to get the proper section. Here it is, seems the command forms properly but somehow does not go to mplayer. I also tried playreal, it has the same issue.
>>>>[10-11-06 08:31:39.7799] Slim::Player::StreamingController::resetSongqueue (1644)
[10-11-06 08:31:39.7903] Slim::Player::Song::new (107) index 0 -> mms://64.225.157.204/sawtfm1
[10-11-06 08:31:39.7908] Slim::Player::Song::new (149) live=1
[10-11-06 08:31:39.7911] Slim::Player::StreamingController::_setStreamingSt ate (2245) new streaming state TRACKWAIT
[10-11-06 08:31:39.7913] Slim::Player::Song::getNextSong (228) mms://64.225.157.204/sawtfm1
[10-11-06 08:31:39.7916] Slim::Player::Song::getNextSong (250) scanning URL mms://64.225.157.204/sawtfm1
[10-11-06 08:31:39.7923] Slim::Player::TranscodingHelper::enabledFormat (199) Checking to see if wma-wma-*-* is enabled
[10-11-06 08:31:39.7925] Slim::Player::TranscodingHelper::enabledFormat (207) There are 1 disabled formats...
[10-11-06 08:31:39.7927] Slim::Player::TranscodingHelper::enabledFormat (213) Testing wma-wma-*-* vs wma-wma-*-*
[10-11-06 08:31:39.7929] Slim::Player::TranscodingHelper::enabledFormat (217) ** wma-wma-*-* Disabled **
[10-11-06 08:31:39.7932] Slim::Player::Song::getNextSong (228) mms://64.225.157.204/sawtfm1
[10-11-06 08:31:39.7934] Slim::Player::StreamingController::_nextTrackReady (730) 00:04:20:05:3e:b4: nextTrack will be index 0
[10-11-06 08:31:39.7936] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: NextTrackReady in STOPPED-TRACKWAIT -> Slim::Player::StreamingController::_Stream
[10-11-06 08:31:39.7939] Slim::Player::StreamingController::_Stream (1162) Song queue is now 0
[10-11-06 08:31:39.7941] Slim::Player::StreamingController::_Stream (1165) 00:04:20:05:3e:b4: preparing to stream song index 0
[10-11-06 08:31:39.7943] Slim::Player::Song::open (362) mms://64.225.157.204/sawtfm1
[10-11-06 08:31:39.7949] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-squeezebox-00:04:20:05:3e:b4
[10-11-06 08:31:39.7951] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-*-00:04:20:05:3e:b4
[10-11-06 08:31:39.7954] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-squeezebox-*
[10-11-06 08:31:39.7956] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-*-*
[10-11-06 08:31:39.7958] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-squeezebox-00:04:20:05:3e:b4
[10-11-06 08:31:39.7960] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-*-00:04:20:05:3e:b4
[10-11-06 08:31:39.7962] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-squeezebox-*
[10-11-06 08:31:39.7964] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-*-*
[10-11-06 08:31:39.7966] Slim::Player::TranscodingHelper::enabledFormat (199) Checking to see if wma-pcm-*-* is enabled
[10-11-06 08:31:39.7968] Slim::Player::TranscodingHelper::enabledFormat (207) There are 1 disabled formats...
[10-11-06 08:31:39.7970] Slim::Player::TranscodingHelper::enabledFormat (213) Testing wma-wma-*-* vs wma-pcm-*-*
[10-11-06 08:31:39.7972] Slim::Player::TranscodingHelper::checkBin (240) enabled
[10-11-06 08:31:39.7975] Slim::Player::TranscodingHelper::checkBin (242) Found command: [wmamplayer.sh] -really-quiet -vc null -vo null $START$ $DURATION$ -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 $PATH$
[10-11-06 08:31:39.7977] Slim::Player::TranscodingHelper::getConvertCommand 2 (424) Matched: wma->pcm via: [wmamplayer.sh] -really-quiet -vc null -vo null $START$ $DURATION$ -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 $PATH$
[10-11-06 08:31:39.7980] Slim::Player::Song::open (386) seek=false time=0 canSeek=2
[10-11-06 08:31:39.7983] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-squeezebox-00:04:20:05:3e:b4
[10-11-06 08:31:39.7985] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-*-00:04:20:05:3e:b4
[10-11-06 08:31:39.7987] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-squeezebox-*
[10-11-06 08:31:39.7989] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-*-*
[10-11-06 08:31:39.7991] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-squeezebox-00:04:20:05:3e:b4
[10-11-06 08:31:39.7993] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-*-00:04:20:05:3e:b4
[10-11-06 08:31:39.7995] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-squeezebox-*
[10-11-06 08:31:39.7997] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-*-*
[10-11-06 08:31:39.7999] Slim::Player::TranscodingHelper::enabledFormat (199) Checking to see if wma-pcm-*-* is enabled
[10-11-06 08:31:39.8001] Slim::Player::TranscodingHelper::enabledFormat (207) There are 1 disabled formats...
[10-11-06 08:31:39.8003] Slim::Player::TranscodingHelper::enabledFormat (213) Testing wma-wma-*-* vs wma-pcm-*-*
[10-11-06 08:31:39.8005] Slim::Player::TranscodingHelper::checkBin (240) enabled
[10-11-06 08:31:39.8007] Slim::Player::TranscodingHelper::checkBin (242) Found command: [wmamplayer.sh] -really-quiet -vc null -vo null $START$ $DURATION$ -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 $PATH$
[10-11-06 08:31:39.8010] Slim::Player::TranscodingHelper::getConvertCommand 2 (424) Matched: wma->pcm via: [wmamplayer.sh] -really-quiet -vc null -vo null $START$ $DURATION$ -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 $PATH$
[10-11-06 08:31:39.8012] Slim::Player::Song::open (407) Transcoder: streamMode=R, streamformat=pcm
[10-11-06 08:31:39.8020] Slim::Player::TranscodingHelper::tokenizeConvertCo mmand2 (527) Using command for conversion: "/Users/mitrihalabi/Library/Caches/Squeezebox/InstalledPlugins/Plugins/PlayWMA/Bin/wmamplayer.sh" -really-quiet -vc null -vo null -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 "mms://64.225.157.204/sawtfm1" & |
[10-11-06 08:31:39.8022] Slim::Player::Song::open (552) Tokenized command "/Users/mitrihalabi/Library/Caches/Squeezebox/InstalledPlugins/Plugins/PlayWMA/Bin/wmamplayer.sh" -really-quiet -vc null -vo null -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 "mms://64.225.157.204/sawtfm1" & |
[10-11-06 08:31:39.8125] Slim::Player::SongStreamController::new (32) live=1
What happens next ?
The next few lines in the log file are important until play attempt fails and as I said before sometimes it is the lines that are missing that indicate the problem.
You can copy a lot more log lines if you save them in a text file, zip it and then attach text file to a post.
Here is what happens and then keeps repeating buffer overflow. I am new to the Macworld, I have yet to earn how to Zip ( sorry the message board kicks me out when I include large message) , I will figure it out and send you a whole zip. Many thanks. I tested my mplayer and seems to work directly with all these stations ( WMA and real) so I am ok there.
[10-11-06 08:31:39.8022] Slim::Player::Song::open (552) Tokenized command "/Users/mitrihalabi/Library/Caches/Squeezebox/InstalledPlugins/Plugins/PlayWMA/Bin/wmamplayer.sh" -really-quiet -vc null -vo null -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 "mms://64.225.157.204/sawtfm1" & |
[10-11-06 08:31:39.8125] Slim::Player::SongStreamController::new (32) live=1
[10-11-06 08:31:39.8167] Slim::Player::StreamingController::_Stream (1220) 00:04:20:05:3e:b4: stream
[10-11-06 08:31:39.8229] Slim::Player::StreamingController::_Stream (1255) Song queue is now 0
[10-11-06 08:31:39.8235] Slim::Player::StreamingController::_setPlayingStat e (2232) new playing state BUFFERING
[10-11-06 08:31:39.8237] Slim::Player::StreamingController::_setStreamingSt ate (2245) new streaming state STREAMING
[10-11-06 08:31:39.8240] Slim::Player::StreamingController::_eventAction (303) 00:04:20:05:3e:b4: NextTrackReady - new state BUFFERING-STREAMING
[10-11-06 08:31:39.8245] Slim::Player::StreamingController::_eventAction (303) 00:04:20:05:3e:b4: Play - new state BUFFERING-STREAMING
[10-11-06 08:31:39.8306] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-06 08:31:39.8310] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-06 08:31:39.8313] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-06 08:31:39.8316] Slim::Player::StreamingController::_eventAction (271) 00:04:20:05:3e:b4: StatusHeartbeat in BUFFERING-STREAMING -> Slim::Player::StreamingController::_NoOp
[10-11-06 08:31:39.8350] Slim::Player::StreamingController::playingSongElap sed (1593) songtime=0.0253689289093018 from byterate=176400, duration=0, bytesReceived=0, fullness=0, startStream=0
[10-11-06 08:31:39.8578] Slim::Player::StreamingController::playingSongElap sed (1593) songtime=0.0481498241424561 from byterate=176400, duration=0, bytesReceived=0, fullness=0, startStream=0
[10-11-06 08:31:39.8586] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-squeezebox-00:04:20:05:3e:b4
[10-11-06 08:31:39.8588] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-*-00:04:20:05:3e:b4
[10-11-06 08:31:39.8590] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-squeezebox-*
[10-11-06 08:31:39.8592] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-aif-*-*
[10-11-06 08:31:39.8594] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-squeezebox-00:04:20:05:3e:b4
[10-11-06 08:31:39.8596] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-*-00:04:20:05:3e:b4
[10-11-06 08:31:39.8598] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-squeezebox-*
[10-11-06 08:31:39.8600] Slim::Player::TranscodingHelper::checkBin (232) Checking formats for: wma-pcm-*-*
[10-11-06 08:31:39.8603] Slim::Player::TranscodingHelper::enabledFormat (199) Checking to see if wma-pcm-*-* is enabled
[10-11-06 08:31:39.8606] Slim::Player::TranscodingHelper::enabledFormat (207) There are 1 disabled formats...
[10-11-06 08:31:39.8608] Slim::Player::TranscodingHelper::enabledFormat (213) Testing wma-wma-*-* vs wma-pcm-*-*
[10-11-06 08:31:39.8610] Slim::Player::TranscodingHelper::checkBin (240) enabled
[10-11-06 08:31:39.8612] Slim::Player::TranscodingHelper::checkBin (242) Found command: [wmamplayer.sh] -really-quiet -vc null -vo null $START$ $DURATION$ -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 $PATH$
[10-11-06 08:31:39.8615] Slim::Player::TranscodingHelper::getConvertCommand 2 (424) Matched: wma->pcm via: [wmamplayer.sh] -really-quiet -vc null -vo null $START$ $DURATION$ -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 $PATH$
[10-11-06 08:31:39.8694] Slim::Player::StreamingController::playingSongElap sed (1593) songtime=0.0597479343414307 from byterate=176400, duration=0, bytesReceived=0, fullness=0, startStream=0
[10-11-06 08:3
figured it out, this is the full log file. Take a look at the section today 8:31am time which follows the section I sent. Seems to keep repeating. thanks!
here is some output from the wma log when I invoke it directly ( when it works), seems like the path is a bit different from the script ?
2010-11-05 19:25:06.977 MPlayer OSX[392:207] ===================== MPlayer OSX Started =====================
2010-11-05 19:25:36.616 MPlayer OSX[392:207] Path to MPlayer: /Applications/MPlayer OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer
2010-11-05 19:25:36.616 MPlayer OSX[392:207] Arg: mms://64.225.157.204/sawtfm1
2010-11-05 19:25:36.617 MPlayer OSX[392:207] Arg: -monitoraspect
2010-11-05 19:25:36.618 MPlayer OSX[392:207] Arg: 1.600000
2010-11-05 19:25:36.618 MPlayer OSX[392:207] Arg: -vo
2010-11-05 19:25:36.619 MPlayer OSX[392:207] Arg: macosx:shared_buffer
2010-11-05 19:25:36.619 MPlayer OSX[392:207] Arg: -slave
2010-11-05 19:25:36.620 MPlayer OSX[392:207] Arg: -identify
2010-11-05 19:25:37.055 MPlayer OSX[392:207] *** Assertion failure in -[NSTextFieldCell _objectValue:forString:errorDescription:], /SourceCache/AppKit/AppKit-1038.32/AppKit.subproj/NSCell.m:1531
2010-11-05 19:25:37.056 MPlayer OSX[392:207] Exception raised during posting of notification. Ignored. exception: 'Invalid parameter not satisfying: aString != nil' invoked observer method: '*** -[PlayerController statusUpdate:]' observer: 0x12bba0 notification name: 'MIStateUpdatedNotification'
Couldn't resolve name for AF_INET6: 64.225.157.204
unknown o
here is some output from the wma log when I invoke it directly ( when it works), seems like the path is a bit different from the script ?
2010-11-05 19:25:06.977 MPlayer OSX[392:207] ===================== MPlayer OSX Started =====================
2010-11-05 19:25:36.616 MPlayer OSX[392:207] Path to MPlayer: /Applications/MPlayer OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer
The paths looks the same to me - what difference do you see ?
if [ `uname` = "Darwin" ] ; then
if [ `uname -p` = "i386" ] && [ -x "/Applications/MPlayer OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer" ]; then
app="/Applications/MPlayer OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer"
Sorry, you are right. The path is the same as the script. Then what do you think is the issue ?
I noticed that mplayer, takes about 20-30 seconds then it locks on the station after a delay. I tried to increase the station acquisition time to max, but that did not help. Could it be a privilege issue to run mplayer ?
I might have a hint, I was fiddling around with mplayer form the shell, I had to add a \ ( backslash) in front of the empty space in "Mplayer\ OSX.app" directory, to make mplayer work. I tried to modify that in the script but that did not work. Maybe that will give you an idea. Essentially if I do, the following window shell, the station comes on. Without the \ it does not work
/Applications/MPlayer\ OSX.app/Contents/Resources/External_Binaries/mplayer.app/Contents/MacOS/mplayer
mms://64.225.157.204/sawtfm1
Oh I love linux!!
The directory string is already quoted (i.e. surrounded by ") and so spaces are handled correctly unless OSX shell is non standard. Anyway the script is identical to the one in the last version of AlienBBC which you say works.
The plugin checks for mplayer and you can see the status in the plugins Settings pages - it should read "installed".
Alternative possibilities relate to the wmaplayer.sh script - check ownership and permissions. You should also check whether the version of flac installed in SBS Bin directory works OK.
AlienBBC did not work either on MAC, it only worked on my PC. I did downgrade as I mentioned on the MAC but Alien had the same issue on the MAC.
I already checked the status of the plug in, it says mplayer "installed". but I have no way to test that ( on the PC, Alien shows a test link, but not on Mac).
I will check the executable permission of the script maybe that is the issue. do you think I can type the script name on the shell with the station, should that work ?? (if you can point me to a way to test the script thru SC that would be great)
not familiar with the flac recommendation, how do I check that this works.
Also I am on snow leopard maybe they did some changes there ?
I will check the executable permission of the script maybe that is the issue. do you think I can type the script name on the shell with the station, should that work ?? (if you can point me to a way to test the script thru SC that would be great)
No - you would need to be logged in as the same user as SBS uses before it would be a reasonable test.
I don't have an OSX system and OSX often caused problems with AlienBBC until they were sorted in conjunction with a helpful OSX users.
I checked the script it has 700 permission, I changed it to 755 but that was not the issue. I checked the command that SC is issuing ( from the log)
>>>>>
"/Users/mitrihalabi/Library/Caches/Squeezebox/InstalledPlugins/Plugins/PlayWMA/Bin/wmamplayer.sh" -really-quiet -vc null -vo null -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 "mms://64.225.157.204/sawtfm1"
>>>
I tried to execute it from the shell, and it locks to the station but no volume comes out ( which is exactly what I get in SC). I removed the -af and -ao options, and things started working.
I am not sure who generated those options, ( the rate shows as 0 wma on SC), but it is not a security issue, it is a simple options issue that are fed incorrectly to the script.
If that gives you a clue or you know somebody in the community with a MAC that would be helpful, since those scripts are mainly for Mac users, PC users would not need a PlayWma.
I tried to execute it from the shell, and it locks to the station but no volume comes out ( which is exactly what I get in SC). I removed the -af and -ao options, and things started working.
I am not sure who generated those options, ( the rate shows as 0 wma on SC), but it is not a security issue, it is a simple options issue that are fed incorrectly to the script.
The options are correct to work with SBS. .You forget that the mplayer stream has to be routed through SBS not the OSX audio subsystem.
The "-af" option ensure that mplayer output a 44.1kHz 2 channel stream which SBS expects any other speed or a single channel and it will not play. The URL you want to play through SBS is a 32kHz stream. I think you will find you can run the command line with the "-af" option.
The "-ao" option redirects the decoded WMA stream into /dev/fd/3 which is then redirected to stdout (the " exec 3>&1" in the script) which the flac process later picks up, compresses and then passes onto SBS. From a command line since you did not specify what to to with /dev/fd/3 you heard no audio.
In an earlier post
I tried to increase the station acquisition time to max
I'm not sure what you are adjusting but the long delay issue is because mplayer has been set to use a cache of 128kbytes and the stream is a 32kHz stream which means it will take about 20-30 secs to fill the buffer before it starts playing. This could cause problems if you SBS timeout is less than 20.
You should try a fast WMA stream through SBS just to be sure. For example http://somafm.com/wma128/groovesalad.asx
What I tried to adjust in under advanced, Network, Radio station timeout (30s) that is not helping.
Can you give me a hint on how to check the flac, you mentioned it is under SBS bin, but I cannot find that ?
It seems that the SBS process at the output of mplayer ( you call it flac) is not working, SBS shows that the station has locked, but rate is 0, and you can see those buffering messages that keep repeating. I am just about giving up, anything you recommend to narrow this down ?
I reloaded with 7.3.4 with playwma and playreal.
I tested http://somafm.com/wma128/groovesalad.asx, it takes about 1:30 minutes to open, but then it works fine, the rate shows as zero.
all the other Real and Wma stations I have ( 32K and below) do not work.
Is there a way to set mplayer to load faster. I have VLC and it seems to load much faster.
Re slow stations - Did you ensure that Radio Station Timeout was at least 40 ?
Re 1:30 delay for GrooveSalad
On my PC system 0n a command line and with SBS "Tune-in" both using mplayer - they both take about 5 secs to start so there must be something wrong with your network, router or firewall ?
Was the 1:30 timed with Tune-in or command line ? If command line did you use the "-playlist" option which is required for ASX URLs.
I spent the whole day on this, I even installed QT7 and Flip4Mac. I got Groove Salad to work native within seconds of clicking ( it is not a network issue). But when I disable native and go PlayWma it takes 1:30 ( as a playlist inside SBS), but it works. I did max station timeout.
The other mms station did not work ( even in the native mode after spending money upgrading QT7/Flip4Mac), also PlayReal has the same issues for Real stations.
This is something to do with Snow Leopard on the Mac, I am probably at the beginning of this wave, as people upgrade on Macs, seems like everything that is wma will break for SBS... I will just and check in a month or so with the posts to see if there is an upgrade or a solution path.
Thanks a lot for your help!!
I'm pretty sure this is a networking issue or more unlikely an mplayer OSX build specific issue.
The issue is either some port is block by OSX firewall (this has happened in the past) as mplayer tried some unusual ports when trying to make connections. However the 1:30 delay when using Tune-in on SBS implies that connection is made within timeout but flow of data is being throttled - again this is usually a firewall or router issue.
You could reduce the cache setting to about 64 but no lower than 32 in the wmamplayer.sh script and that would reduce the chance of a timeout and see of the mms stations startup.
You could also run mplayer from a commmand line on the GrooveSalad 128k URL with "-playlist" before the URL. Add the option "-v" as well and you can see all the combinations being tried and get a feel for the timing.
Here are my points of reference,
1) mplayer on the command line, plays all stations very quickly into the Mac speakers, this tells me it is not and input networking issue
2) Once we add -af and -ao to redirect to stereo and to SB output, somehow the packets get dropped and you keep getting those buffering messages and the station never opens. ( maybe it is a firewall on the output side as you mentioned, but I have no idea how to fix that, I will try to google that today ?)
3) in SBS server native mode (Flip4Mac) Groove Salad opens within seconds, however when I put it thru playwma mode, it takes 1:30 to open.
Could be an output firewall when Mplayer pushes output to SBS ( you call it flac ?), but no idea how to go on...
I read a bunch of boards today about mplayer in OSX not being able to redirect to the -ao pcm:nowaveheader:file=/dev/fd/3 ( /dev/fd/3)
to send the data back to SBS, many of them suggested to recompile mplayer for the specific OSX, and load the Mac port application. It is starting to get pretty complex for a supposedly simple thing. I guess whatever I am doing is not very popular or I would have seen more solutions.... But looks like an output redirect issue in mplayer.
Resolved!
I had to go to terminal mode MAC and load the following
1) X11 tool package from OSX DVD
2) Macport snow leopard ( from Macport site)
3) sudo port install mplayer-devel +mencoder_extras
(you can do: port variants mplayer-devel in order to see options available)
This loads a good mplayer at /opt/local/bin/mplayer
Then you need to modify the path under the darwin section of the realmplayer.sh with the new path.
For some odd reason with my snow leopard ( setup from factory), the package you download from the mplayer link does not redirect the output correctly... I guess you have to load it on top of Macport in order to get that option correct.
Thanks a lot for your direction and help!!! and the patience with my Emails. Hope other users would benefit from this. I ended up using 7.5.1, once I fixed mplayer ( on top of Macport), seems that everything started working!
Well Done.
In the past with AlienBBC there were similar OSX build problem with mplayer. As this use of mplayer with PlayWMA/PlayReal/AlienBBC is not the "normal" way mplayer is used and hence user base is small with an even smaller number of users willing to spend time to identify and solve the problem.
I'm glad you got it resolved and your efforts will help others.
If you attach your revised wmamplayer.sh script to a post, it will be easily available to others and I'll include in a rev of the relevant plugins which will be needed for 7.6.
Here is the procedure for snow leopard with Intel CPU
1) Load X11 tool package from OSX DVD
2) load Macport snow leopard version ( from Macport site)
3) Open Mac terminal: sudo port install mplayer-devel +mencoder_extras
(you can do: port variants mplayer-devel in order to see other mplayer options available)
This loads a good mplayer at /opt/local/bin/mplayer
Then you need to modify the path under the darwin(i386) or corresponding section of ~/Library/Caches/Squeezebox/InstalledPlugins/Plugins/PlayWMA/Bin/wmamplayer.sh
I changed the name of .sh script in order to attach it ( in the forum Email), but this gives you an idea. You have to do the same work for the Realplayer that is installed in a similar location under InstalledPlugins.
Again many thanks for your help and hints and direction.
Powered by vBulletin® Version 4.1.12 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.