LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 03-30-2009, 12:14 PM   #1036
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16

Quote:
Originally Posted by knappster View Post
I just happened to see this webpage not long ago:

http://www.eds.org/~straycat/mlblinux.php
Thanks. I'm probably doing something incorrectly though because I type that into a teminal and I only get a list of help options:
Quote:
rob@rob-desktop:~$ mplayer -vo x11
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ (Family: 15, Model: 67, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Option msglevel: Unknown suboption 5
Warning unknown option msglevel at line 5
Usage: mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)
-vo <drv> select video output driver ('-vo help' for a list)
-ao <drv> select audio output driver ('-ao help' for a list)
vcd://<trackno> play (S)VCD (Super Video CD) track (raw device, no mount)
dvd://<titleno> play DVD title from device instead of plain file
-alang/-slang select DVD audio/subtitle language (by 2-char country code)
-ss <position> seek to given (seconds or hh:mm:ss) position
-nosound do not play sound
-fs fullscreen playback (or -vm, -zoom, details in the man page)
-x <x> -y <y> set display resolution (for use with -vm or -zoom)
-sub <file> specify subtitle file to use (also see -subfps, -subdelay)
-playlist <file> specify playlist file
-vid x -aid y select video (x) and audio (y) stream to play
-fps x -srate y change video (x fps) and audio (y Hz) rate
-pp <quality> enable postprocessing filter (details in the man page)
-framedrop enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)
<- or -> seek backward/forward 10 seconds
down or up seek backward/forward 1 minute
pgdown or pgup seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or ESC stop playing and quit program
+ or - adjust audio delay by +/- 0.1 second
o cycle OSD mode: none / seekbar / seekbar + timer
* or / increase or decrease PCM volume
x or z adjust subtitle delay by +/- 0.1 second
r or t adjust subtitle position up/down, also see -vf expand

* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *
So I tried mplayer -vo and got this:
Quote:
rob@rob-desktop:~$ mplayer -vo
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ (Family: 15, Model: 67, Stepping: 3)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Option msglevel: Unknown suboption 5
Warning unknown option msglevel at line 5
Error parsing option on the command line: -vo
Which is not quite as lengthy as the first, so I assume I'm getting closer to correctness.

Last edited by rjwood; 03-30-2009 at 12:16 PM.
 
Old 03-30-2009, 12:26 PM   #1037
knappster
Member
 
Registered: Mar 2004
Posts: 175

Rep: Reputation: 30
If you're running it from the command line, then you might have to specify a video file. The format that it is displayed in is probably how it is supposed to be entered into the configuration file.

I can't actually verify this because I am on a windows machine right now, but I think that is why you're seeing what you're seeing.
 
Old 03-30-2009, 01:55 PM   #1038
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
I went into preferences via the gui and changed the setting to x11, but it didn't make any difference. I checked my laptop and found the setting is 'xv'. The feed plays fine on that machine. I checked the repositories on both machines and everything is identical. I believe this green bar only appeared after installing my new geforce 9500 gt card and switched to HDMI, however, even after restarting into rbg, its still there.

Last edited by rjwood; 03-30-2009 at 01:56 PM.
 
Old 03-30-2009, 04:30 PM   #1039
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
I'm thinking driver problem. Look how it even discolors the window decoration. Are you using the binary ATI driver (fglrx) or the open one (radeon)?
 
Old 03-30-2009, 04:52 PM   #1040
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
nvidia accelerated graphics driver 180. video from everywhere else is working great. Its only mlbviewer and the player from the mlb.tv site.
 
Old 03-30-2009, 11:31 PM   #1041
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by rjwood View Post
nvidia accelerated graphics driver 180. video from everywhere else is working great. Its only mlbviewer and the player from the mlb.tv site.
It could be the codec or rather, the version of the codec libraries you are using.

Since you'll almost definitely need to recompile your ffmpeg, x264, and probably faad for the new version of mlbviewer (e.g. for playing the flash streams), it wouldn't be a bad idea to also grab the latest mplayer from svn and rebuild that too.

This applies to everyone who wants to test the new mlbviewer (which I'll be releasing tonight or tomorrow night.) Actually, I'll move the new requirements to the next post.
 
Old 03-30-2009, 11:58 PM   #1042
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Requirements for testing mlbviewer 2009

ADDITIONAL PYTHON:

You will need additional python libraries because the 2009 season is shifting away from jsp and json to xml and SOAP.

python-xml

Debian package name: python-xml
Ubuntu: ?? You tell me
Redhat/Fedora/any other binary distros: ?? You tell me

Verify:

Code:
matthew@tango:~$ python
Python 2.4.4 (#2, Apr  5 2007, 20:11:18)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml
>>> from xml.dom.minidom import parse
suds

Binary packages: probably only fedora
Download from: https://fedorahosted.org/suds/

Verify:

Code:
matthew@tango:~$ python
Python 2.4.4 (#2, Apr  5 2007, 20:11:18)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from suds.client import Client
RTMPDUMP

As far as I know, the only flash client worth a lick on Linux besides the Adobe Flash plugin is rtmpdump. Actually, rtmpdump is worth only a third of a lick because it can only download 1/3 of the file before crapping out. Luckily it supports resume. Maybe on a live stream when it isn't downloading balls-to-the-wall, it might perform better.

Download from: http://sourceforge.net/projects/rtmpdump/

PLEASE make the following modification to the rtmpdump source before compiling it. Trust me, you'll thank me.

Comment out:

Code:
#define DEBUG
in log.h

Or add NODEBUG to your compile flags in your Makefile. I forgot how to do this, so someone tell me for the official HOWTO. By the way, all of you who volunteered to test are also volunteering to contribute to the HOWTO by posting any hacks or missing information here that got you going.

CODECS (ffmpeg, x264, faad, possibly mplayer)

At a minimum, most of you will have to recompile your ffmpeg, x264, and possibly faad and mplayer. There has been much development (and new codec support) in recent versions of ffmpeg but many distributions include older ffmpeg under the guise of "stability."

Here's a howto for rebuilding your ffmpeg and x264:
http://ubuntuforums.org/showthread.php?t=786095

I found that I also needed to recompile my mplayer and while I was at it, I recompiled faad too. Mplayer I pulled from the latest svn while faad I went with the source tarball (2-2.7).

For mplayer, I included the following flags for compilation:

Code:
sh configure --prefix=/usr --enable-dynamic-plugins
I've read that some folks were able to get flash video recognized by recompiling their ffmpeg and x264 alone. I'll get a sample flash file online for you guys to test with.



Well, that should keep a few of you busy for awhile. Again, please share your experiences on this forum so we can produce a comprehensive HOWTO.

Please be patient with the new code. With all the backend and media changes, you can expect that much of the old features of mlbviewer will be broken. When I release the new code, you'll basically get a small selection of WBC games to choose from and only the video. Audio and live games won't be supported until MLB.com supports them with the new player and new backend. Likewise for top plays and condensed games.

Thanks for helping out.
 
Old 03-31-2009, 12:14 AM   #1043
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Download this 12M clip to test whether you will need to upgrade ffmpeg and x264. If it complains of Unsupported video codec(7) or Unsupported audio codec (I forget what the number was), you will need to upgrade your ffmpeg and x264 at a minimum, and likely faad as well. If rebuilding the latest ffmpeg and x264 still doesn't fix it, then rebuild mplayer (or vlc) too.

Sample Flash Video
 
Old 03-31-2009, 09:56 AM   #1044
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
Download this 12M clip to test whether you will need to upgrade ffmpeg and x264. If it complains of Unsupported video codec(7) or Unsupported audio codec (I forget what the number was), you will need to upgrade your ffmpeg and x264 at a minimum, and likely faad as well. If rebuilding the latest ffmpeg and x264 still doesn't fix it, then rebuild mplayer (or vlc) too.

Sample Flash Video
Well I got my problem fixed although I can't say specifically what it was. I installed the 32bit version of ubuntu on a partition and all is fine. So. I guess it had something to do with the 64bit architecture.

Anyway, the link you provided works great on both my laptop and now my desktop.
 
Old 03-31-2009, 09:59 AM   #1045
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
Download this 12M clip to test whether you will need to upgrade ffmpeg and x264. If it complains of Unsupported video codec(7) or Unsupported audio codec (I forget what the number was), you will need to upgrade your ffmpeg and x264 at a minimum, and likely faad as well. If rebuilding the latest ffmpeg and x264 still doesn't fix it, then rebuild mplayer (or vlc) too.

Sample Flash Video
I tried the clip and it played perfectly with mplayer, both audio and video. I did get some new & unusual error messages in the terminal claiming "my system was too slow" and on and on but apparently they were lies.

Now what does this mean? Does it mean that once you get some other changes made that I'm home free concerning using MlbViewer? Incidentally, I recompiled nothing ....stock Arch downloads.

However on reflection, I don't really have a totally 'stock' setup. VLC was crashing so I did something I swore I'd never do again and that was download the VLC that was still in "testing". It still crashed but I still have the newer faad & X264 components that came with the VLC download after dumping it and reverting back to the one not in testing.

Last edited by Wolfvorkian; 03-31-2009 at 10:17 AM. Reason: info not accurate
 
Old 03-31-2009, 10:51 AM   #1046
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by Theophile View Post
I'm thinking driver problem. Look how it even discolors the window decoration. Are you using the binary ATI driver (fglrx) or the open one (radeon)?
You were correct. Its the nvidia driver. I installed the accelerated driver 180 and 'walla', green bar, uninstall driver and bar disappears. I'm not a gamer anyway, and I think thats what that driver is for. Am I right about that?
 
Old 03-31-2009, 12:44 PM   #1047
knappster
Member
 
Registered: Mar 2004
Posts: 175

Rep: Reputation: 30
Quote:
Originally Posted by rjwood View Post
You were correct. Its the nvidia driver. I installed the accelerated driver 180 and 'walla', green bar, uninstall driver and bar disappears. I'm not a gamer anyway, and I think thats what that driver is for. Am I right about that?
I would say yes, it is mainly for gaming. Basically it is used for 3D graphics acceleration. Another alternative might be to try a different version of the nvidia driver. But I am pretty sure the only time I have utilized the nvidia proprietary driver is for gaming. Otherwise using the open source nv driver shouldn't have any ill affects for you.
 
Old 03-31-2009, 01:11 PM   #1048
thegryghost
Member
 
Registered: Mar 2009
Distribution: Gentoo
Posts: 30

Rep: Reputation: 1
If you have a newer nvidia card, most 8 and 9 series, the newer nvidia drivers (180.37+) offer VDPAU, which is nvidia's accelerated playback for H264, VC1/WMV3, and MPEG-1/2.

Since the sample stream is encoded with H264, you can play the MLB clips with little CPU (< 2% on my system).

Quote:
Originally Posted by rjwood View Post
You were correct. Its the nvidia driver. I installed the accelerated driver 180 and 'walla', green bar, uninstall driver and bar disappears. I'm not a gamer anyway, and I think thats what that driver is for. Am I right about that?
 
Old 03-31-2009, 01:44 PM   #1049
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by thegryghost View Post
If you have a newer nvidia card, most 8 and 9 series, the newer nvidia drivers (180.37+) offer VDPAU, which is nvidia's accelerated playback for H264, VC1/WMV3, and MPEG-1/2.

Since the sample stream is encoded with H264, you can play the MLB clips with little CPU (< 2% on my system).
This is driver 180.11 from the ubuntu repositories. I'm wondering if installing nvidia-glx and nvidia-180-kernel-source would help? Otherwise I guess I could get the 180.37 driver from nvidia. Haven't done that in a while. Thanks!
 
Old 03-31-2009, 01:49 PM   #1050
thegryghost
Member
 
Registered: Mar 2009
Distribution: Gentoo
Posts: 30

Rep: Reputation: 1
Quote:
Originally Posted by rjwood View Post
This is driver 180.11 from the ubuntu repositories. I'm wondering if installing nvidia-glx and nvidia-180-kernel-source would help? Otherwise I guess I could get the 180.37 driver from nvidia. Haven't done that in a while. Thanks!
The latest is 180.44, just released yesterday (I think?). You'll also need a version of mplayer that supports VDPAU. Support is in the latest SVN of mplayer and I think someone made packages for Ubuntu.. right now, only mplayer, xine, and myth have support for VDPAU.
 
  


Reply

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration