LinuxQuestions.org
Visit Jeremy's Blog.
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 05-26-2009, 09:21 AM   #1996
MattJW92
LQ Newbie
 
Registered: May 2009
Posts: 23

Rep: Reputation: 15

Quote:
Originally Posted by daftcat View Post
Matt, you're very close.

I will likely fix the speed option to include nexdef speeds but for now, speed= option is used for non-nexdef operation. Nexdef uses a different option called max_bps. max_bps defaults to 800K. To get 3000K, you'll need to add/modify this option to read:

Code:
max_bps=3000000
That's 3 million.

As for the picture, you can try adding "-vo xv" to your video_player line. If that doesn't work, please rebuild mplayer AFTER you have followed the instructions at http://www.mplayerhq.hu/DOCS/HTML/en/video.html. Pay special attention to 8.1 and 8.2. Make sure when you run ./configure that xv is in the "Enabled optional drivers" under "Video output".

Example
Code:
Creating config.mak
Creating config.h

Config files successfully generated by ./configure --prefix=/usr --enable-dynamic-plugins !

  Install prefix: /usr
  Data directory: /usr/share/mplayer
  Config direct.: /usr/etc/mplayer

  Byte order: little-endian
  Optimizing for: native

  Languages:
    Messages/GUI: en
    Manual pages: en

  Enabled optional drivers:
    Input: dvdnav(internal) ftp pvr tv-teletext tv-v4l2 tv-v4l tv libdvdcss(internal) dvdread(internal) vcd dvb network 
    Codecs: x264 xvid libavcodec(internal) qtx real xanim win32 faad2(internal) faac libmpeg2(internal) liba52(internal) mp3lib(internal) libtheora tremor(internal) twolame libmad 
    Audio output: alsa nas esd arts oss v4l2 sdl mpegpes(dvb) 
    Video output: v4l2 sdl pnm jpeg png mpegpes(dvb) fbdev caca aa xvidix cvidix opengl xv x11 xover dfbmga directfb yuv4mpeg md5sum tga 

  Disabled optional drivers:
    Input: vstream radio tv-dshow live555 nemesi cddb cdda smb 
    Codecs: libschroedinger libdirac libdv libamr_wb libamr_nb musepack libdca speex toolame liblzo gif 
    Audio output: sun openal jack pulse ivtv dxr2 
    Video output: zr zr2 ivtv dxr3 dxr2 vesa gif89a svga ggi xmga mga winvidix 3dfx dga vdpau xvmc bl xvr100 tdfx_vid wii s3fb tdfxfb

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)

Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).

NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
I think I have done parts 8.1 and 8.2 correctly.

Here is what comes up when I do the configure:

Code:
Creating config.mak
Creating config.h

Config files successfully generated by ./configure --enable-dynamic-plugins --prefix=/usr !

  Install prefix: /usr
  Data directory: /usr/share/mplayer
  Config direct.: /usr/etc/mplayer

  Byte order: little-endian
  Optimizing for: 

  Languages:
    Messages/GUI: en
    Manual pages: en

  Enabled optional drivers:
    Input: dvdnav(internal) ftp pvr tv-v4l2 tv-v4l tv libdvdcss(internal) dvdread(internal) vcd dvb network 
    Codecs: libavcodec(internal) real xanim faad2(internal) libmpeg2(internal) liba52(internal) mp3lib(internal) tremor(internal) 
    Audio output: oss v4l2 mpegpes(dvb) 
    Video output: v4l2 pnm mpegpes(dvb) fbdev cvidix yuv4mpeg md5sum tga 

  Disabled optional drivers:
    Input: vstream radio tv-teletext tv-dshow live555 nemesi cddb cdda smb 
    Codecs: libschroedinger libdirac x264 xvid libdv libamr_wb libamr_nb qtx win32 faac musepack libdca libtheora speex toolame twolame libmad liblzo gif 
    Audio output: sun alsa openal jack pulse nas esd arts ivtv dxr2 sdl 
    Video output: zr zr2 ivtv dxr3 dxr2 sdl vesa gif89a jpeg png svga caca aa ggi xmga mga xvidix winvidix opengl 3dfx dga vdpau xvmc xv x11 dfbmga directfb bl xvr100 tdfx_vid wii s3fb tdfxfb 

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)

NOTE: Win32 codec DLLs are not supported on your CPU (x86_64) or your
operating system (Linux). You may encounter a few files that cannot
be played due to missing open source video/audio codec support.

Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).

NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
No xv in the video output. In fact it appears in the list of disables optional drivers. How do I put it in the correct part?

Last edited by MattJW92; 05-26-2009 at 09:24 AM.
 
Old 05-26-2009, 10:05 AM   #1997
bodly
LQ Newbie
 
Registered: Mar 2009
Distribution: Kubuntu
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by MattJW92 View Post
I think I have done parts 8.1 and 8.2 correctly.

Here is what comes up when I do the configure:

Code:
Creating config.mak
Creating config.h

Config files successfully generated by ./configure --enable-dynamic-plugins --prefix=/usr !

  Install prefix: /usr
  Data directory: /usr/share/mplayer
  Config direct.: /usr/etc/mplayer

  Byte order: little-endian
  Optimizing for: 

  Languages:
    Messages/GUI: en
    Manual pages: en

  Enabled optional drivers:
    Input: dvdnav(internal) ftp pvr tv-v4l2 tv-v4l tv libdvdcss(internal) dvdread(internal) vcd dvb network 
    Codecs: libavcodec(internal) real xanim faad2(internal) libmpeg2(internal) liba52(internal) mp3lib(internal) tremor(internal) 
    Audio output: oss v4l2 mpegpes(dvb) 
    Video output: v4l2 pnm mpegpes(dvb) fbdev cvidix yuv4mpeg md5sum tga 

  Disabled optional drivers:
    Input: vstream radio tv-teletext tv-dshow live555 nemesi cddb cdda smb 
    Codecs: libschroedinger libdirac x264 xvid libdv libamr_wb libamr_nb qtx win32 faac musepack libdca libtheora speex toolame twolame libmad liblzo gif 
    Audio output: sun alsa openal jack pulse nas esd arts ivtv dxr2 sdl 
    Video output: zr zr2 ivtv dxr3 dxr2 sdl vesa gif89a jpeg png svga caca aa ggi xmga mga xvidix winvidix opengl 3dfx dga vdpau xvmc xv x11 dfbmga directfb bl xvr100 tdfx_vid wii s3fb tdfxfb 

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)

NOTE: Win32 codec DLLs are not supported on your CPU (x86_64) or your
operating system (Linux). You may encounter a few files that cannot
be played due to missing open source video/audio codec support.

Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).

NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
No xv in the video output. In fact it appears in the list of disables optional drivers. How do I put it in the correct part?
If you're using Ubuntu, install the xv development files. It will probably also pull in some other files it is dependent on.

Code:
sudo apt-get install libxv-dev
If you're not using Ubuntu, then the library will probably be called something different, like libxv-devel, and the command to install it will be different.
 
Old 05-26-2009, 10:14 AM   #1998
MattJW92
LQ Newbie
 
Registered: May 2009
Posts: 23

Rep: Reputation: 15
I'm using Ubuntu, so I'll give it a crack now
 
Old 05-26-2009, 10:46 AM   #1999
MattJW92
LQ Newbie
 
Registered: May 2009
Posts: 23

Rep: Reputation: 15
Ok, done that and the video now displays, but it keeps freezing while the audio goes on (this is on an archived game). Once again I am getting the 'only consumed one bytes of ####' error, shown in this screenshot:

http://img8.imageshack.us/img8/5267/screenshot3f.png
 
Old 05-26-2009, 12:02 PM   #2000
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Quote:
Originally Posted by MattJW92 View Post
Ok, done that and the video now displays, but it keeps freezing while the audio goes on (this is on an archived game). Once again I am getting the 'only consumed one bytes of ####' error, shown in this screenshot:

http://img8.imageshack.us/img8/5267/screenshot3f.png
The "only consumed..." errors are "normal" right now. Something is either up with the file or with the decoder, but it is not a real error in the sense that it breaks anything; everyone currently gets this. I'm not sure about your freezing problems though...
 
Old 05-26-2009, 01:42 PM   #2001
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Some things to consider about 3000K stream...

1) Do you have the proper screen resolution for this stream? Since the 3000K stream is 1280x720, you should have your screen resolution set to at least that much.

2) Do you have enough bandwidth? Use an online speed test to verify that you have at least 3 Mbps download.

3) Do you have enough CPU/RAM? I can't personally answer this one but I believe that last time I asked for stats and resolutions, I'd estimate that a 1.8 Ghz with 1 GB RAM should be the minimum requirement for mlbviewer plus mplayer.

4) Do you have a "sane" video_player command? One that works well for most is:

Code:
video_player=mplayer -cache 4096 -fs -autosync 30 -really-quiet
-fs is recommended because any downshifting of speed from nexdef won't jerk the mplayer window out of fullscreen if started in fullscreen
-autosync is recommended to solve basic (small) discrepancies in audio and video synchronizaton. Often these are network issues beyond the control of mplayer but occasionally mplayer can detect and fix sync issues.
-really-quiet will usually hide all those "consumed only xxxx bytes" errors which can often have a negative impact on playback performance.
 
Old 05-26-2009, 07:52 PM   #2002
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
daftcat -

how does the LIRC stuff work? I've surmised so far that "mlbviewer" should be the "prog" string (I think). I've discovered that so long as I'm in my home directory when I start mlbviewer that the log says "LIRC initialized". What are the "config" strings? Are they the "Jump", "Flash" etc. strings or the keys themselves, "q", "f", etc?

note--i've set up LIRC and my remote and I've configured LIRC for other programs before.

thanks

Last edited by poorboywilly; 05-26-2009 at 08:03 PM.
 
Old 05-26-2009, 09:54 PM   #2003
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Quote:
Originally Posted by poorboywilly View Post
daftcat -

how does the LIRC stuff work? I've surmised so far that "mlbviewer" should be the "prog" string (I think). I've discovered that so long as I'm in my home directory when I start mlbviewer that the log says "LIRC initialized". What are the "config" strings? Are they the "Jump", "Flash" etc. strings or the keys themselves, "q", "f", etc?

note--i've set up LIRC and my remote and I've configured LIRC for other programs before.

thanks
Never mind. It appears my problem was attempting to "Include" the mlb configuration into .lircrc. I also monkeyed with the LIRC code to better suit myself.
 
Old 05-26-2009, 10:26 PM   #2004
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I really have no idea how the lirc code works. I don't have a setup to test it with. That code was put in by Jesse because he thought it would be useful. I'm not even sure he had a setup to test with because I discovered earlier this year that it was never being initialized correctly.

The words like 'Flash', 'Jump', etc are presumably just comments. That's how I've been using them. As far as I know, there would be no curses or lirc input that would generate those strings. I could be wrong, though. Like I said, I've never messed with lirc before.
 
Old 05-27-2009, 03:10 PM   #2005
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
The basic .lircrc config entry looks like
Code:
begin
prog = mlbviewer
button = cancel
config = Exit
repeat = 0
end
LIRC passes the "config" string (as well as other info) to its socket. The beauty of how you set up the commands is that you can make this config string the "friendly" names like Exit, Flash etc. and this decouples the LIRC config from the actual keystroke shortcuts, so if you wanted to you could allow users to change their shortcut keys without affecting LIRC commands at all.

As it is currently implemented, the LIRC code is reading the raw data from the LIRC socket and parsing the lirc config file on it's own, and it doesn't take into account the "repeat" strings or some of the more advanced features. The main problem I was having was trying to use "include" to import the configuration for mlbviewer into the main ~/.lircrc file; this command is not recognized by the code.

I've written some basic code that uses the pylirc module, which does all the footwork of parsing the config file and setting up the LIRC socket, and implements the repeat and other features. If you would like, when I make sure it works real well I can pass it over to you and write up some LIRC documentation for the README. Pylirc need not be a requirement, if it fails to import we can just disable LIRC.
 
Old 05-27-2009, 09:42 PM   #2006
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by poorboywilly View Post
The basic .lircrc config entry looks like
Code:
begin
prog = mlbviewer
button = cancel
config = Exit
repeat = 0
end
LIRC passes the "config" string (as well as other info) to its socket. The beauty of how you set up the commands is that you can make this config string the "friendly" names like Exit, Flash etc. and this decouples the LIRC config from the actual keystroke shortcuts, so if you wanted to you could allow users to change their shortcut keys without affecting LIRC commands at all.

As it is currently implemented, the LIRC code is reading the raw data from the LIRC socket and parsing the lirc config file on it's own, and it doesn't take into account the "repeat" strings or some of the more advanced features. The main problem I was having was trying to use "include" to import the configuration for mlbviewer into the main ~/.lircrc file; this command is not recognized by the code.

I've written some basic code that uses the pylirc module, which does all the footwork of parsing the config file and setting up the LIRC socket, and implements the repeat and other features. If you would like, when I make sure it works real well I can pass it over to you and write up some LIRC documentation for the README. Pylirc need not be a requirement, if it fails to import we can just disable LIRC.
Cool. Okay.

I'm still not sure what you mean by importing the configuration for mlbviewer. Surely you're not talking about the config file which makes no sense. I'm assuming you were creating a separate file for mlbviewer commands and then using an include or import command in the main .lircrc file? Okay, that makes sense.

I'll keep using the string commands too. I never knew they were actually useful for anything other than commenting.
 
Old 05-27-2009, 11:16 PM   #2007
djalmabm
LQ Newbie
 
Registered: Mar 2009
Location: São Paulo/SP - Brasil
Distribution: Debian sid
Posts: 7

Rep: Reputation: 0
Problem with condensed games

I can't see Dodgers condensed games since 05/23. Something changed? I'm using revision 207. Regards.
 
Old 05-27-2009, 11:48 PM   #2008
Wolfvorkian
Member
 
Registered: Sep 2007
Distribution: Arch
Posts: 108

Rep: Reputation: 15
Quote:
Originally Posted by djalmabm View Post
I can't see Dodgers condensed games since 05/23. Something changed? I'm using revision 207. Regards.
Same here. I haven't been able to watch a condensed game now for any team for few days.

I get the below in the terminal and then it reverts back to the listings.

On their web page the condensed games are free, like the 'top plays'... have they always been this way or is this something new?

Code:
mplayer -cache 2048  -autosync 30 -really-quiet rtsp://a870.v10869f.c10869.g.vq.
akamaistream.net/7/870/10869/v0001/mlb2003.download.akamai.com/10869/2009/open/m
lbam/2009/05/27/mlbtv_slnmil_4758251_3gpp_200K.3gpmplayer: could not connect to socket
      mplayer: No such file or directory
 
Old 05-28-2009, 02:31 PM   #2009
thepedestrian
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
daftcat I'd like to say thank you for all your work. I was a mlbviewer user last season and I suffered through the stuttering and popup windows of the flash player for as long as I could before coming back again this season. Now I have perfect HD video (just in time to play it on my brand new HDTV)

linuxphan (or anyone else that may be working on it), any update on the Boxee plugin? Baseball inside Boxee would mean I would never have to leave the app and I could finally put my keyboard away for good.
 
Old 05-28-2009, 05:55 PM   #2010
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Quote:
Originally Posted by daftcat View Post
Cool. Okay.

I'm still not sure what you mean by importing the configuration for mlbviewer. Surely you're not talking about the config file which makes no sense. I'm assuming you were creating a separate file for mlbviewer commands and then using an include or import command in the main .lircrc file? Okay, that makes sense.
Yep, that's what I was rambling about...
 
  


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 03:31 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