LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 04-24-2009, 04:49 PM   #1396
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35

Quote:
Originally Posted by Takabru View Post
So if I save it to a file and play that file through mplayer will that work on live games too? Archives I can see that being useful though. Also, I do have a 15Mbps connection but I will lower the bitrate to see if that works.
Yes, it just creates a buffer. It will only be behind the amount of time it takes you to start playback. The advantage is that if mplayer dies because of a playback error, the file keeps getting recorded anyway and you can find where you left off. It will also help you figure out whether the problem is network related or player related. If mplayer can dump the stream without dying, you know you're getting a stable data stream.

Quote:
Second, how do I actually play a file with mplayer through the command line? Is it just mplayer <filename>?

Thanks again.
Yup! Though you can add options to the end like -really-quiet to silence the error messages and -fs to force fullscreen playback.
 
Old 04-24-2009, 04:52 PM   #1397
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by JackRubysDog View Post
So close . . . I think I actually want to cry

I have spent four hours on this and . . . I get audio but no video.

I am getting the ALC ffmpeg 1 byte errors but cannot figure out how to apply the patch.

I have downloaded the updated version of h264.c but whenever I configure and try to make mplayer I get "all: nothing to do". Compare that to the 20 mins it took to build mplayer after downloading it via svn.

Please help. I will love you for ever. Promise.
If you have pulled mplayer from SVN, you shouldn't have to apply any patches. It is already included. Again, there is no need to patch anything or download individual source files. mplayer-svn already has the fix, as does ffmpeg-svn.

Are you trying to playback with mplayer?
 
Old 04-24-2009, 04:55 PM   #1398
JackRubysDog
Member
 
Registered: Feb 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by Theophile View Post
If you have pulled mplayer from SVN, you shouldn't have to apply any patches. It is already included. Again, there is no need to patch anything or download individual source files. mplayer-svn already has the fix, as does ffmpeg-svn.

Are you trying to playback with mplayer?
Yes. What should be my video_player line? Currently it is just mplayer.
 
Old 04-24-2009, 04:57 PM   #1399
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
That should work. What is the ouput of:

mplayer --version

?
 
Old 04-24-2009, 05:03 PM   #1400
JackRubysDog
Member
 
Registered: Feb 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by Theophile View Post
That should work. What is the ouput of:

mplayer --version

?
MPlayer SVN-r29229-4.3.2 (C) 2000-2009 MPlayer Team
 
Old 04-24-2009, 05:04 PM   #1401
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by JackRubysDog View Post
MPlayer SVN-r29229-4.3.2 (C) 2000-2009 MPlayer Team
That should be able to play these stream no problem. You are a premium subscriber using autobahn, yes?
 
Old 04-24-2009, 05:09 PM   #1402
Takabru
Member
 
Registered: Apr 2009
Posts: 37

Rep: Reputation: 15
Posting this again cause the thread added a page.

Getting this error now for some reason:

tb24@tkb24-laptop:~$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from suds.client import Client
/usr/local/lib/python2.6/dist-packages/suds-0.3.5-py2.6.egg/suds/wsse.py:26: DeprecationWarning: the md5 module is deprecated; use hashlib instead

Not sure why. The archives were working fine a few minutes ago. Any ideas? Looks like suds is messed up to me.
 
Old 04-24-2009, 05:10 PM   #1403
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Takabru,

We'll have to wait for daftcat to shed some light on that one.
 
Old 04-24-2009, 05:11 PM   #1404
JackRubysDog
Member
 
Registered: Feb 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by Theophile View Post
That should be able to play these stream no problem. You are a premium subscriber using autobahn, yes?
Oh yes. I have autobahn running, and even have got it running using the (poor) flash MLB.TV player.

I an currently listening to the archived Atlanta/Washington game. For the video I just get:

[h264 @ 0x883fe20]AVC: Consumed only 1 bytes instead of xxxx over and over again where xxxx is a number between 1000 and 4000

???
 
Old 04-24-2009, 05:18 PM   #1405
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by JackRubysDog View Post
Oh yes. I have autobahn running, and even have got it running using the (poor) flash MLB.TV player.

I an currently listening to the archived Atlanta/Washington game. For the video I just get:

[h264 @ 0x883fe20]AVC: Consumed only 1 bytes instead of xxxx over and over again where xxxx is a number between 1000 and 4000

???
That error occurs even when working properly. I suspect there is another problem and those AVC errors are masking it. Can mplayer play video from other kinds of files?
 
Old 04-24-2009, 05:36 PM   #1406
JackRubysDog
Member
 
Registered: Feb 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by Theophile View Post
That error occurs even when working properly. I suspect there is another problem and those AVC errors are masking it. Can mplayer play video from other kinds of files?
Ah.

Tried to play an mp4 and got audio (!) but no video and the following messages:

libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [mp4v] 368x208 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Can't open /dev/fb0: No such file or directory
[fbdev2] Can't open /dev/fb0: No such file or directory
VO: [v4l2] No such file or directory
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[cyberblade] Error occurred during pci scan: Operation not permitted
[mach64] Error occurred during pci scan: Operation not permitted
[mga] Error occurred during pci scan: Operation not permitted
[mga] Error occurred during pci scan: Operation not permitted
[nvidia_vid] Error occurred during pci scan: Operation not permitted
[pm3] Error occurred during pci scan: Operation not permitted
[radeon] Error occurred during pci scan: Operation not permitted
[rage128] Error occurred during pci scan: Operation not permitted
[s3_vid] Error occurred during pci scan: Operation not permitted
[SiS] Error occurred during pci scan: Operation not permitted
[unichrome] Error occurred during pci scan: Operation not permitted
[VO_SUB_VIDIX] Couldn't find working VIDIX driver.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 368 x 208 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO: [null] 368x208 => 368x208 Planar YV12
 
Old 04-24-2009, 05:43 PM   #1407
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Try playing that file with the option: -vo xv

If that doesn't work, try: -vo x11
 
Old 04-24-2009, 05:58 PM   #1408
JackRubysDog
Member
 
Registered: Feb 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by Theophile View Post
Try playing that file with the option: -vo xv

If that doesn't work, try: -vo x11
Both those come up with

Error opening/initializing the selected video_out (-vo) device.

I thought it may be my NVIDIA drivers, but I de-activated them and still not joy...

Off to bed now (I am in UK). Many thanks for your help so far. It is really, genuinely appreciated.
 
Old 04-24-2009, 06:00 PM   #1409
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Okay. You will have to recompile your mplayer. None of your video outputs seem to be enabled. Make sure to look at the output of the ./configure command before running "make." It will tell you what video output drivers are enabled or disabled.
 
Old 04-24-2009, 06:22 PM   #1410
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by Takabru View Post
Posting this again cause the thread added a page.

Getting this error now for some reason:

tb24@tkb24-laptop:~$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from suds.client import Client
/usr/local/lib/python2.6/dist-packages/suds-0.3.5-py2.6.egg/suds/wsse.py:26: DeprecationWarning: the md5 module is deprecated; use hashlib instead

Not sure why. The archives were working fine a few minutes ago. Any ideas? Looks like suds is messed up to me.
It looks like it's just a warning.

An easy way to see if the suds code is working is to enable debugging with the 'd' key. This will make the SOAP (suds) requests and display the url parsed from the reply. If it's something with http://local.swarmcast:8001/...., then the suds code is fine and you've just got an annoying warning. If it crashes out with any error (other than login/logout unsuccessful which happens occasionally), the suds is failing. (If it displays an rtmp:// url, you're using mlbdvr instead of mlbviewer.)

If you get a url, then the next step is your autobahn.jar. I find one of two things happen with autobahn errors. Sometimes the stream just needs to be primed, aka, the first request fails but a subsequent request succeeds. If they always fails, especially with an error like "read failed:", but it worked at one time, restart the autobahn.jar:

Code:
$ kill -9 `ps -ef | grep autobahn.jar | grep -v grep | awk '{print $2}'`
$ java -jar autobahn.jar &
(By the way, the first command is an interview question I always use with candidates at my work if they list any kind of linux/unix experience on their resume. )

As for streaming, I personally have lousy success with -dumpstream. It does produce a dumped file, but it's not playable (it's about 1 frame per second.) I also get much better performance with -really-quiet than I do without it. Sometimes the stream won't play for more than a second unless I have -really-quiet in the video_player command.

A more detailed way to debug mlbviewer issues is to use nexdef.py in the test directory. First find the event-id of the game you want to test with. It's the number that looks something like 14-24555-2009-04-24. You can get the event-id either from mlblistings.py or by highlighting a game in mlbviewer and looking at the internal data structure with the 'z' key. Then quit out of mlbviewer and execute nexdef.py as:

Code:
$ test/nexdef.py 14-123456-2009-04-24 | tee nexdef.log
replacing that with the correct event-id.

This will produce a lot of output (and by default starts mplayer in -dumpstream mode. You can change that by editing the nexdef.py file to change the DEFAULT_PLAYER line. The second part of that command copies all the output to nexdef.log. You can either post the log file to pastebin.com if you want us to look it over.
 
  


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 09:50 PM.

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