Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay, so I think I know what's going on and I think I've fixed this on the nexdef2010 branch. I can't test this right now because there's a distinct possibility that I have a maintenance guy in my apartment right now (I'm at work) and I don't want him to freak out if a game audio started out of nowhere. Or rather, I wish I had a webcam to record his reaction but alas...I'm sticking to my first story.
Try this:
Code:
$ cd ~/
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/branches/nexdef2010 nexdef2010
$ cd nexdef2010
$ python mlbviewer.py
In other words, test with the nexdef2010 branch. If that fixes it, I'll merge the bug fix I made on that branch back to the trunk.
You'll be able to run an "svn up" when that's available (in mlbviewer-svn.) Since you're only doing audio, it's probably not worth it to stay on the nexdef2010 branch since that's where a lot of new and possibly unstable code is going.
daftcat:
I thought I had replied to you yesterday, but do not see it in the thread. Maybe I hit the wrong button. Anyway, tried your suggestions. The first couple of tries I received errors re. the files MediaService.wsdl and .xsd not being in usr/bin, so I copied them over. Now I see this:
debian:/home/kim/nexdef2010# python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1492, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1181, in mainloop
u = g.url()
File "/home/kim/nexdef2010/MLBviewer/mlbtv.py", line 1270, in url
raise Exception,self.error_str
Exception: System Error
debian:/home/kim/nexdef2010#
I thought I had replied to you yesterday, but do not see it in the thread. Maybe I hit the wrong button. Anyway, tried your suggestions. The first couple of tries I received errors re. the files MediaService.wsdl and .xsd not being in usr/bin, so I copied them over. Now I see this:
debian:/home/kim/nexdef2010# python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1492, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1181, in mainloop
u = g.url()
File "/home/kim/nexdef2010/MLBviewer/mlbtv.py", line 1270, in url
raise Exception,self.error_str
Exception: System Error
debian:/home/kim/nexdef2010#
Any thoughts would be appreciated. Thanks.
I thought the .wsdl, .xsd files were supposed to be in ~/.mlb/. Try copying/linking them there instead. That error is occurring in the middle of the SOAP code (the .wsdl file describes a SOAP-accessible web service).
I thought the .wsdl, .xsd files were supposed to be in ~/.mlb/. Try copying/linking them there instead. That error is occurring in the middle of the SOAP code (the .wsdl file describes a SOAP-accessible web service).
What he said.
Code:
$ cp MediaService* ~/.mlb
You only have to do this once. I should have mentioned that having gone through the installation steps for the trunk (mlbviewer-svn), you don't need to repeat those steps for the nexdef2010 branch.
I thought I had replied to you yesterday, but do not see it in the thread. Maybe I hit the wrong button. Anyway, tried your suggestions. The first couple of tries I received errors re. the files MediaService.wsdl and .xsd not being in usr/bin, so I copied them over. Now I see this:
debian:/home/kim/nexdef2010# python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1492, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1181, in mainloop
u = g.url()
File "/home/kim/nexdef2010/MLBviewer/mlbtv.py", line 1270, in url
raise Exception,self.error_str
Exception: System Error
debian:/home/kim/nexdef2010#
Any thoughts would be appreciated. Thanks.
That's a very vague exception from python. I wish there was more to go on.
Let's go back to the mlbviewer-svn code since that was mostly working for you already. I tested the "fix" I thought was missing from the trunk (mlbviewer is trunk, nexdef2010 is a branch) and it wasn't an issue for me last night.
Let me ask you a question or two.
Does sound work on your system? Yeah, I know that sounds really basic.
Do you have an mp3 file you can try playing with mplayer?
Code:
$ mplayer somesong.mp3 | tee mplayer.log
That second part of the command will create a log file called mplayer.log which will have all the output from the first part. Post that here so I can see what audio output device mplayer is preferring to use.
Also, what does "video_player=" setting look like in your ~/.mlb/config?
Code:
$ grep video_player ~/.mlb/config
One more question, did you run "./setup.py install" in the mlbviewer-svn directory?
If you did, that might be creating confusion in the nexdef2010 directory. You could be using mlbviewer-svn's version of mlbviewer.py against the nexdef2010 library files. To overcome this, if you're interested in seeing the nexdef2010 code working, change your execution statement from "python mlbviewer.py" to "python ./mlbviewer.py" forcing it to use the mlbviewer.py in the local directory instead of the mlbviewer-svn directory. I know this branch thing is kind of confusing. I am also likely going to remove the setup.py from mlbviewer-svn until I've merged nexdef2010 back to mlbviewer-svn.
Thanks for your information and your patience. I'll be adding a TROUBLESHOOTING file to both trunk and branch very soon.
That's a very vague exception from python. I wish there was more to go on.
Let's go back to the mlbviewer-svn code since that was mostly working for you already. I tested the "fix" I thought was missing from the trunk (mlbviewer is trunk, nexdef2010 is a branch) and it wasn't an issue for me last night.
Let me ask you a question or two.
Does sound work on your system? Yeah, I know that sounds really basic.
Do you have an mp3 file you can try playing with mplayer?
Code:
$ mplayer somesong.mp3 | tee mplayer.log
That second part of the command will create a log file called mplayer.log which will have all the output from the first part. Post that here so I can see what audio output device mplayer is preferring to use.
Also, what does "video_player=" setting look like in your ~/.mlb/config?
Code:
$ grep video_player ~/.mlb/config
One more question, did you run "./setup.py install" in the mlbviewer-svn directory?
If you did, that might be creating confusion in the nexdef2010 directory. You could be using mlbviewer-svn's version of mlbviewer.py against the nexdef2010 library files. To overcome this, if you're interested in seeing the nexdef2010 code working, change your execution statement from "python mlbviewer.py" to "python ./mlbviewer.py" forcing it to use the mlbviewer.py in the local directory instead of the mlbviewer-svn directory. I know this branch thing is kind of confusing. I am also likely going to remove the setup.py from mlbviewer-svn until I've merged nexdef2010 back to mlbviewer-svn.
Thanks for your information and your patience. I'll be adding a TROUBLESHOOTING file to both trunk and branch very soon.
daftcat:
I must not be using the quote-reply tool correctly, as this is my second try.
So - in answer to your questions.
Yes, the sound works - I listen to several internet radio stations. I did play an mp3 file. Here is the log:
~$ cat mplayer.log
MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
I don't remember using the './setup.py install' command nor do I have it written down, so I probably did not use it.
Using python ./mlbviewer.py yielded the same results.
One of the errors I saw when attempting to start was: 'mplayer: could not connect to socket.' So, based on a suggestion I saw in another thread, I added this to my mplayer.conf file: 'nolirc=yes'. (Should I undo this?)
Now, when I attempt to start gameday audio, with DEBUG set to off, I see 'Fetching URL for gamestream' and I see this:
RTMPDump v2.2d
Fetching URL (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: audiodatarate 0.00
15359.999 kB / 3409.99 sec
But no audio.
When I attemp to start with DEBUG turned on - I see 'Fetchin URL but not playing', then for a few seconds, I see this message:
And finally, in regards to the two MediaService files that I copied over to /usr/bin, they were in the ~/.mlb folder (and are still there, I did not delete them, just copied them to /usr/bin as I had an error message indicating it was looking for those files in that location.
So - apologize for the very long message here. May be hard to believe, but part of my 'day' jog is debugging log files (Dicom comm. used in medial apps.), so I appreciate how much work it is. Thanks for taking you time on this - I appreciate it. I will continue to try to figure this out.
I'm sorry. I meant what does your audio_player line look like:
Code:
$ grep audio_player ~/.mlb/config
Depending on what you have in the audio_player line, it takes a little while for cache to fill before playback starts. But we already saw in a previous quote that mplayer wasn't happy and we have to figure out why.
Try this line in your config since this seemed to work when playing a regular file:
Code:
audio_player=mplayer -ao alsa -cache 128
This should take about 2-4 seconds of rtmpdump output before mplayer begins playback.
Another thing you can try is this.
I have just checked in a fix for test/gamedayaudio.py which is a test script that runs outside of the curses "gui" and provides a LOT more detail. It also simply writes the audio stream to the disk. This is helpful in this case because you can record a few seconds of audio, and then run mplayer over that file on disk to get only the mplayer relevant messages.
Try this:
Code:
$ cd mlbviewer-svn/
$ test/gamedayaudio.py 14-264187-2010-05-03
This will start downloading the audio stream rather quickly. So Ctrl-C it after just a few seconds worth of audio is downloaded. That's all we need.
Now do the following:
Code:
$ mplayer 14-264187-2010-05-03.mp3 | tee mplayer.log
If that works, then simply change your config to audio_player=mplayer. You can always fine tune it with cache options and -ao alsa later. If that doesn't work, post mplayer.log here.
hey, this is in response to a few of you who wanted to to know how to setup mlbviewer on cygwin under windows 7...
Hi, I'm new here. I believe Wolfvorkian referred me to this posting of yours because I am a MLB.TV Premium subscriber and my laptop is seemingly no longer powerful enough to handle their player.
I tried your instructions, but I ran into problems, and then I saw that you said this would work for windows 7. I am still using Windows XP/Pro. Should your instructions still work for me, or do I need to upgrade to Windows 7?
Hi, I'm new here. I believe Wolfvorkian referred me to this posting of yours because I am a MLB.TV Premium subscriber and my laptop is seemingly no longer powerful enough to handle their player.
I tried your instructions, but I ran into problems, and then I saw that you said this would work for windows 7. I am still using Windows XP/Pro. Should your instructions still work for me, or do I need to upgrade to Windows 7?
Thanks!
I have only tested on windows 7, but I think it should be relatively the same process to set up, nothing I installed is dependent on windows 7
hey I'm getting a curious error on my ubuntu 10.04 laptop when I switch days on nexdef2010...
Code:
Traceback (most recent call last):
File "mlbviewer.py", line 1492, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 426, in mainloop
raise Exception,status_str
Exception: Status: Not Yet Available (No media)[HOME][1800K][--]
also, when I'm using nexdef on this machine, I see this in the terminal when playing:
Code:
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
mplayer: could not connect to socket
mplayer: No such file or directory
open: No such file or directory
open: No such file or directory
and the stream selection never even comes up... the video plays fine however, but it seems very strange to get these errors.
hey I'm getting a curious error on my ubuntu 10.04 laptop when I switch days on nexdef2010...
Code:
Traceback (most recent call last):
File "mlbviewer.py", line 1492, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 426, in mainloop
raise Exception,status_str
Exception: Status: Not Yet Available (No media)[HOME][1800K][--]
The status string couldn't be written to the screen. Do you have a small terminal (less than 80 columns)?
If you want to help me on this one, edit line 426 in mlbviewer.py and change that from "raise Exception,status_str" to simply, "raise" which will tell me more about the error that caused this exception.
Quote:
also, when I'm using nexdef on this machine, I see this in the terminal when playing:
Code:
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
mplayer: could not connect to socket
mplayer: No such file or directory
open: No such file or directory
open: No such file or directory
and the stream selection never even comes up... the video plays fine however, but it seems very strange to get these errors.
This seems like your audio device isn't being "grabbed" properly.
On my old Ubuntu system, Firefox goes bat-sh!t crazy with youtube after awhile and I have to restart Firefox. Actually, there's always something a little nutty about this laptop so I wrote a script I affectionately named, "wtf"
The status string couldn't be written to the screen. Do you have a small terminal (less than 80 columns)?
If you want to help me on this one, edit line 426 in mlbviewer.py and change that from "raise Exception,status_str" to simply, "raise" which will tell me more about the error that caused this exception.
This seems like your audio device isn't being "grabbed" properly.
On my old Ubuntu system, Firefox goes bat-sh!t crazy with youtube after awhile and I have to restart Firefox. Actually, there's always something a little nutty about this laptop so I wrote a script I affectionately named, "wtf"
You may have your own oddities that you can add or modify in this script. So when I get errors or sound doesn't play right, I can simply:
Code:
$ sudo wtf pcm
$ sudo wtf sound
The first kills any process that has the dsp open and the second restarts alsa.
Ok, so I changed line 426 to just raise, but it still gives me the same thing, nothing has changed in the terminal... my terminal says that it's 132 characters wide
edit: so I set the width up, I guess I had it zoomed in on my TV, and I can change days again, it's working fine...
The stream selection screen still never shows up and I tried that audio script with no success, however when I ran
sudo sh wtf.sh sound
i get:
sudo sh wtf.sh sound
Restarting alsa...
wtf.sh: 24: /etc/init.d/alsa-utils: not found
Last edited by edouble312; 05-05-2010 at 11:47 AM.
after some reading, I uninstalled bluez-alsa and that got rid of the bt_audio_service error... I think this this was a problem with bluetooth (which my laptop doesn't have)
I still get this though:
Code:
Buffering streammplayer: could not connect to socket
mplayer: No such file or directory
open: No such file or directory
open: No such file or directory
and no stream selection...
here is the output when I turn mplayer -really-quiet OFF:
Code:
Buffering streamMPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing http://local.swarmcast.net:8001/protected/content/adaptive-live/base64:aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbWxiYW0vMjAxMC8wNS8wNS9NTEJfR0FNRV9WSURFT19UT1JDTEVfSE9NRV8yMDEwMDUwNS9tYXN0ZXJfd2lyZWQubTN1OHwrZDEyVWtxdFRCQVV3S1cxd255SGRVNVVKbW89fHBsYXliYWNrPUhUVFBfQ0xPVURfV0lSRUQmY29udGVudElkPTc4Mzg2MzEmZXZlbnRJZD0wJmlwaWQ9ODU3NzU4MSZzZXNzaW9uS2V5PWp0TnYzZ0hQWHVQZWw3M2JPbGpFMVh4Z0owNCUzRCZjb3VudHJ5PXVzJnBvc3RhbENvZGU9NjA4MDQ=?max_bps=3000000.
Resolving local.swarmcast.net for AF_INET6...
Couldn't resolve name for AF_INET6: local.swarmcast.net
Resolving local.swarmcast.net for AF_INET...
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [H264] 1280x720 0bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
A:46757.1 V:46756.8 A-V: 0.271 ct: 0.000 A:46765.1 V:46765.1 A-V: 0.000 ct: 0.058 0/ 0 68% 5% 5.4% 4 0 47%
I'm not an expert with mplayer but it seems I might be using the wrong codec possibly?
Last edited by edouble312; 05-05-2010 at 12:05 PM.
after some reading, I uninstalled bluez-alsa and that got rid of the bt_audio_service error... I think this this was a problem with bluetooth (which my laptop doesn't have)
I still get this though:
Code:
Buffering streammplayer: could not connect to socket
mplayer: No such file or directory
open: No such file or directory
open: No such file or directory
and no stream selection...
here is the output when I turn mplayer -really-quiet OFF:
Code:
Buffering streamMPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing http://local.swarmcast.net:8001/protected/content/adaptive-live/base64:aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbWxiYW0vMjAxMC8wNS8wNS9NTEJfR0FNRV9WSURFT19UT1JDTEVfSE9NRV8yMDEwMDUwNS9tYXN0ZXJfd2lyZWQubTN1OHwrZDEyVWtxdFRCQVV3S1cxd255SGRVNVVKbW89fHBsYXliYWNrPUhUVFBfQ0xPVURfV0lSRUQmY29udGVudElkPTc4Mzg2MzEmZXZlbnRJZD0wJmlwaWQ9ODU3NzU4MSZzZXNzaW9uS2V5PWp0TnYzZ0hQWHVQZWw3M2JPbGpFMVh4Z0owNCUzRCZjb3VudHJ5PXVzJnBvc3RhbENvZGU9NjA4MDQ=?max_bps=3000000.
Resolving local.swarmcast.net for AF_INET6...
Couldn't resolve name for AF_INET6: local.swarmcast.net
Resolving local.swarmcast.net for AF_INET...
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [H264] 1280x720 0bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] This driver only supports the 3Dfx Banshee, Voodoo3 and Voodoo 5.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
A:46757.1 V:46756.8 A-V: 0.271 ct: 0.000 A:46765.1 V:46765.1 A-V: 0.000 ct: 0.058 0/ 0 68% 5% 5.4% 4 0 47%
I'm not an expert with mplayer but it seems I might be using the wrong codec possibly?
The codec recognition looks fine. But it seems mplayer is having trouble figuring out which video output driver to use. Do you normally use -vo xv or something else?
Best way to do this is to use either nexdef.py or soapevent.py to record several seconds worth of stream. Then use mplayer over that stream to find the options that work. Finally, put that command in video_player line.
Did something change on your system since this was last working?
Ok, so I changed line 426 to just raise, but it still gives me the same thing, nothing has changed in the terminal... my terminal says that it's 132 characters wide
edit: so I set the width up, I guess I had it zoomed in on my TV, and I can change days again, it's working fine...
The stream selection screen still never shows up and I tried that audio script with no success, however when I ran
sudo sh wtf.sh sound
i get:
sudo sh wtf.sh sound
Restarting alsa...
wtf.sh: 24: /etc/init.d/alsa-utils: not found
This was really meant as an example. It seems every Linux machine I've had has had some sort of weirdness that required intervention. I mean even firefox when it stops responding you could add a section for firefox that does a pkill -9 firefox.
On my system, that's where alsa restart happens but my Ubuntu is older than dirt. I think it's 8.04. I guess you could search /etc/init.d like:
Code:
$ ls /etc/init.d | grep alsa
to find the right path to your alsa stop/start script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.