LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 05-04-2010, 11:02 AM   #2866
kweisen
Member
 
Registered: May 2006
Location: Stewartsville, NJ
Distribution: fedora 14 & MInt 15
Posts: 50

Rep: Reputation: 0

Quote:
Originally Posted by daftcat View Post
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#

Any thoughts would be appreciated. Thanks.
 
Old 05-04-2010, 11:27 AM   #2867
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Quote:
Originally Posted by kweisen View Post
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#

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).
 
Old 05-04-2010, 01:14 PM   #2868
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by poorboywilly View Post
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.

Last edited by daftcat; 05-04-2010 at 01:20 PM.
 
Old 05-04-2010, 01:18 PM   #2869
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by kweisen View Post
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#

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.

Last edited by daftcat; 05-04-2010 at 01:26 PM.
 
Old 05-04-2010, 07:24 PM   #2870
kweisen
Member
 
Registered: May 2006
Location: Stewartsville, NJ
Distribution: fedora 14 & MInt 15
Posts: 50

Rep: Reputation: 0
Cool

Quote:
Originally Posted by daftcat View Post
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.

Playing ./Music/Better.mp3.
Audio file file format detected.
Clip info:
Title:
Artist:
Album:
Year: 2009
Comment:
Track: 1
Genre: Blues
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...


And the grep video_player command gives this:

:~$ grep video_player ~/.mlb/config
video_player=mplayer -cache 2048 -really-quiet

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:

Url received:
rtmpdump -f "LNX 10,0,22,87" -o - -r "rtmp://cp65670.live.edgefcs.net/live/mlb_g
a_20@s8490?auth=da.aKdebScLcPbgbIb4dndsbCajcuaOadbx-bl4kyN-O-HqpEEpCwlpAkFr-m9ma
kjjnl6j5jakajdm6kblgl4kck9kdm6mekhjnl3jaje&aifp=v0006&ct5=04-May-10&ct6=24.102.1
49.56&ct7=7813665:AUDIO_FMS_32K&ct8=1&ct1=mlb&ct3=6910222&ct4=mlb" -y "mlb_ga_20
@s8490?auth=da.aKdebScLcPbgbIb4dndsbCajcuaOadbx-bl4kyN-O-HqpEEpCwlpAkFr-m9makjjn
l6j5jakajdm6kblgl4kck9kdm6mekhjnl3jaje&aifp=v0006&ct5=04-May-10&ct6=24.102.149.5
6&ct7=7813665:AUDIO_FMS_32K&ct8=1&ct1=mlb&ct3=6910222&ct4=mlb" -a "live?_fcs_vho
st=cp65670.live.edgefcs.net&akmfv=1.6" -s http://mlb.mlb.com/flash/mediaplayer/v
4/RC91/MediaPlayer4.swf?v=4 -d mlb_ga_20@s8490 -v -A 0

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.
 
Old 05-04-2010, 08:31 PM   #2871
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
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.
 
Old 05-04-2010, 10:53 PM   #2872
JimSquire
LQ Newbie
 
Registered: May 2010
Location: St. Louis, MO
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by edouble312 View Post
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?

Thanks!
 
Old 05-05-2010, 12:40 AM   #2873
edouble312
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 16
Quote:
Originally Posted by JimSquire View Post
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
 
Old 05-05-2010, 03:11 AM   #2874
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by edouble312 View Post
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
Works fine on XP Pro. That's what I've tested with.
 
Old 05-05-2010, 11:10 AM   #2875
edouble312
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 16
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.
 
Old 05-05-2010, 11:22 AM   #2876
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by edouble312 View Post
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"

Code:
#!/bin/sh

case $1 in
	net)
		echo "Restarting ipw2200..."
		rmmod ipw2200
		modprobe ipw2200
		;;
	sound)
		echo "Restarting alsa..."
		/etc/init.d/alsa-utils restart
		;;
	pcm)
		echo "Killing any processes attached to pcm..."
		kill -9 `lsof | grep pcm | awk '{print $2}'`
		;;
	pen)
		echo "Resetting serial device..."
		echo -x \03 > /dev/ttyS0
		;;
	*)
		echo "Supported: net, sound, pcm, pen"
		;;
esac
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.
 
Old 05-05-2010, 11:35 AM   #2877
edouble312
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
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"

Code:
#!/bin/sh

case $1 in
	net)
		echo "Restarting ipw2200..."
		rmmod ipw2200
		modprobe ipw2200
		;;
	sound)
		echo "Restarting alsa..."
		/etc/init.d/alsa-utils restart
		;;
	pcm)
		echo "Killing any processes attached to pcm..."
		kill -9 `lsof | grep pcm | awk '{print $2}'`
		;;
	pen)
		echo "Resetting serial device..."
		echo -x \03 > /dev/ttyS0
		;;
	*)
		echo "Supported: net, sound, pcm, pen"
		;;
esac
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.
 
Old 05-05-2010, 11:55 AM   #2878
edouble312
Member
 
Registered: Apr 2009
Posts: 107

Rep: Reputation: 16
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.
 
Old 05-05-2010, 02:42 PM   #2879
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by edouble312 View Post
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?
 
Old 05-05-2010, 02:45 PM   #2880
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by edouble312 View Post
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.
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration