LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-14-2013, 09:51 AM   #4051
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled

Quote:
Originally Posted by daftcat View Post
Been looking at the MLB servers trying to figure out what else I could add to mlbviewer...

From MLB's RSS website:



The default feed is "mlb" (all of MLB) and individual team feeds can be selected within the RSS screen by pressing the RSS key again (currently 'w' but customizable with the RSS action if you're customizing keybindings.)

So 'w' to open the mlb feed and 'w' again to open a team feed. The prompt will ask for the teamcode. The teamcode can be found from mlbplay.py without arguments (pretty much the same codes you have been using for audio_follow, video_follow, favorite, etc.)

[snip]
Now that I can finally play with this I have to say I LOVE it! It gives me yet another reason to fire up mlbviewer every day to catch up on what happened to my beloved Dodgers the day/night before. It took me a couple of tries to get the option coded in the configs correctly for Google Chrome but once I pulled my head out of my arse it was a bit of madeleine. I'll wish there were a way to go straight to my Dodgers feed ("la" instead of the usual "lad"? Okay.) but that's more about me being lazy than anything else. I seem to be getting a bit of traffic with people hitting my mlbviewer article so I'll have to write a followup to let folks know the shiny new bits that we have that they may not have noticed yet.
 
Old 05-14-2013, 07:14 PM   #4052
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by BostonPeng View Post
Now that I can finally play with this I have to say I LOVE it! It gives me yet another reason to fire up mlbviewer every day to catch up on what happened to my beloved Dodgers the day/night before. It took me a couple of tries to get the option coded in the configs correctly for Google Chrome but once I pulled my head out of my arse it was a bit of madeleine. I'll wish there were a way to go straight to my Dodgers feed ("la" instead of the usual "lad"? Okay.) but that's more about me being lazy than anything else. I seem to be getting a bit of traffic with people hitting my mlbviewer article so I'll have to write a followup to let folks know the shiny new bits that we have that they may not have noticed yet.
I have to look further into this. I threw the feature together in a couple of hours really late one night when I couldn't sleep. Actually, that's how you got most of the new features this season.

If favorite= can share the same codes as RSS, I could default to favorite= or "mlb" if favorite= is not defined. But if they are using different codes, e.g. lad vs. la, then I have to find a different way to do it.

EDIT: Tested with favorite team highlighting which doesn't work with "lad". Not sure where you are using "lad". The code is "la" because the only other "LA" team is "ana".

EDIT 2: Seems like if I highlight a "favorite" team in listings, I should also highlight that team in scoreboard and standings. I'll look into that too. I often don't use the color settings anymore so I'm not sure if underline (default highlighting if use_color= is not set) is going to look alright in those views.

Last edited by daftcat; 05-14-2013 at 07:18 PM.
 
Old 05-15-2013, 09:10 AM   #4053
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Hmm. I guess the codes changed this year because I've used lad in the past, or at least I think I have. I have lad in my.mlb/config, which I now need to change. Of course I may just be used to using LAD ID the team when I save files (games notes, recaps, box scores, etc.).
 
Old 05-15-2013, 01:56 PM   #4054
acm006
LQ Newbie
 
Registered: May 2013
Posts: 6

Rep: Reputation: Disabled
Hi, I'm a relative Ubuntu newbie, so please bear with me. First off, I love mlbviewer, so thanks for everyone's hard work in creating it. I searched the thread for the answer, but I didn't find anything.

I currently have my config files set as so:

Code:
video_player=mplayer -cache 2048 -really-quiet
audio_player=mplayer -cache 64 -really-quiet
When I select a game to watch, this comes up in the terminal:

Code:
Requesting media: ('WGN-HD', u'145', '26971279', '14-347334-2013-05-15')
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
However, the video still pops up and works wonderfully. The only thing I can see is that the application running the video is mplayer2, as I installed it following BostonPeng's directions on their blog. So changing my config to

Code:
video_player=mplayer2 -cache 2048 -really-quiet
audio_player=mplayer2 -cache 64 -really-quiet
I get the following in the terminal and no picture at all:

Code:
Requesting media: ('FSNO-HD', u'142', '26971289', '14-347334-2013-05-15')/bin/sh: 1: mplayer2: not found
I'm not terribly concerned because, as I mentioned, with the first settings it still works. Is this perhaps a video card problem?

Thanks so much, both for your program and help.

Specs:
Lenovo thinkpad x120e
Ubuntu 12.04
AMD Radeon HD 6310 Graphics (Driver: VESA: WRESTLER)
AMD E-350 Processor 2
 
Old 05-15-2013, 02:52 PM   #4055
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by acm006 View Post
Hi, I'm a relative Ubuntu newbie, so please bear with me. First off, I love mlbviewer, so thanks for everyone's hard work in creating it. I searched the thread for the answer, but I didn't find anything.

I currently have my config files set as so:

Code:
video_player=mplayer -cache 2048 -really-quiet
audio_player=mplayer -cache 64 -really-quiet
When I select a game to watch, this comes up in the terminal:

Code:
Requesting media: ('WGN-HD', u'145', '26971279', '14-347334-2013-05-15')
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
However, the video still pops up and works wonderfully. The only thing I can see is that the application running the video is mplayer2, as I installed it following BostonPeng's directions on their blog. So changing my config to

Code:
video_player=mplayer2 -cache 2048 -really-quiet
audio_player=mplayer2 -cache 64 -really-quiet
I get the following in the terminal and no picture at all:

Code:
Requesting media: ('FSNO-HD', u'142', '26971289', '14-347334-2013-05-15')/bin/sh: 1: mplayer2: not found
I'm not terribly concerned because, as I mentioned, with the first settings it still works. Is this perhaps a video card problem?

Thanks so much, both for your program and help.

Specs:
Lenovo thinkpad x120e
Ubuntu 12.04
AMD Radeon HD 6310 Graphics (Driver: VESA: WRESTLER)
AMD E-350 Processor 2
You had it right the first time. If you installed mplayer2, it uses the same mplayer executable name. To verify you actually have mplayer2 installed, use the -version argument (which surprisingly is not supported but still prints what you want to see.)

Code:
matthew@wheezy:~/mlb2013$ mplayer --version
Unknown option on the command line: --version
Error parsing option on the command line: --version
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
The "mplayer: No such file or directory" error you see is related to LIRC (IR remote control) and can be ignored. Not sure why the VPDAU error is there but it also seems to be harmless. You can ignore them.

There may be ways to silence them in the mplayer configuration files (presumably the global configuration file has settings that are causing them in the first place.) But since you can get video playback, don't worry about them. I'll see what I can figure out on my own and maybe suggest some settings to add to mplayer.conf to silence them.

Last edited by daftcat; 05-15-2013 at 02:56 PM.
 
Old 05-15-2013, 07:49 PM   #4056
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
User poll: documentation from single README to directory of mini-docs?

mlbviewer is powerful with many, many features, configuration file options, and a few (possibly undocumented) hacks for feature requests (like tying condensed game speed to speed= option.)

The README file is getting pretty big and hard to maintain.

How many of you have read the README?

Would it be more helpful to have a QUICK-START and a Documentation directory with smaller mini-HOWTO files targeting specific features or hacks?

Any other ideas on how I can tackle the documentation in a way that's easier to digest?
 
Old 05-16-2013, 12:14 AM   #4057
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
SVN revision 479: adaptive_stream fixed, RSS defaults to favorite, min/max_bps allowed in kbps

Bug fixes and enhancements:
  • adaptive_stream hasn't been working since the rewrite; this revision should fix that
  • min_bps and max_bps used to tune adaptive streaming or request nexdef stream speed now allows kbps values
  • RSS now defaults to favorite= team (or MLB if no favorite is specified.) If multiple favorites are specified, RSS will aggregate all favorite teams into default view. A value of 'mlb' in the "Enter teamcode for feed:" prompt will open the league (MLB) RSS feed.

Quick review of adaptive streaming:

Adaptive streaming refers to the ability of mlbhls to adapt through a range of min_bps to max_bps streams based on whether the network is keeping up with the requested stream. The min_bps should be set to the lowest value you want to tolerate up when the network is lagging. If the network is keeping up, then mlbhls should adapt up to but not over the max_bps value.

To enable adaptive streaming from, for example, a minimum of 1200 to a maximum of 4500, you would use the following in your config:

Code:
use_nexdef=1
adaptive_stream=1
min_bps=1200
max_bps=4500
As of this revision, you can specify the min_bps and max_bps in either bits per second or kilobits per second, e.g. min_bps=1200 is now the same as min_bps=1200000. Since the slowest stream is 128000, if you specify a value below 128000, the code will assume it's a kbps value and multiply it by 1000 to get the bps value that mlbhls is expecting.

Valid speeds for min_bps= and max_bps= are:

128
500
800
1200
1800
2400
3000
4500

(or their equivalents in bps, e.g. 128000, 500000, etc.)

If adaptive_stream=0, mlbhls will lock onto the max_bps= stream and won't perform any speed switching adaptations based on network conditions.
 
Old 05-16-2013, 03:21 AM   #4058
icelancer
LQ Newbie
 
Registered: May 2013
Posts: 13

Rep: Reputation: Disabled
I have a question about substring operations for dumping a video file (I know, I know, no dumping support).

My video_player line in the config file is:

video_player=mplayer -cache 2048 -really-quiet -dumpstream %s -dumpfile %f

But what if I wanted to just name the file 2013-05-05-texmlb-houmlb-1.mp4? That means ignoring the bolded portion here:

houmlb-1-FSSW-HD.mp4

I tried redirecting to a shell script or doing inline substring work without much help. Any ideas?

Second question: Do you plan on trying to support milb.tv? I imagine it's the same back-end and the like. If you are interested, I'll buy you a subscription and help with debugging.

Thanks a ton!
 
Old 05-16-2013, 10:00 AM   #4059
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by icelancer View Post
I have a question about substring operations for dumping a video file (I know, I know, no dumping support).

My video_player line in the config file is:

video_player=mplayer -cache 2048 -really-quiet -dumpstream %s -dumpfile %f

But what if I wanted to just name the file 2013-05-05-texmlb-houmlb-1.mp4? That means ignoring the bolded portion here:

houmlb-1-FSSW-HD.mp4

I tried redirecting to a shell script or doing inline substring work without much help. Any ideas?
Probably not going to change that since recording is one of those grey areas in the Terms of Service. You should be thankful that %s and %f expansions are actually there at all.

Help me understand why you want to drop the call letters and maybe I can come up with something for you.

Quote:
Second question: Do you plan on trying to support milb.tv? I imagine it's the same back-end and the like. If you are interested, I'll buy you a subscription and help with debugging.

Thanks a ton!
I'm not really confident that any of it is the same between products. Historically, it hasn't been.

I do know the listings is not the same at all. The listings still uses JSON (yuck!) instead of XML. And so far, my attempts to tackle that JSON have resulted in some nonsensical listings with the odd repeated game starting at 3:33 AM.

I already have an MiLB subscription and honestly, I think it was too inexpensive to motivate me to fix milbviewer for 2013. We'll see if that changes as the season goes on.
 
Old 05-16-2013, 10:18 AM   #4060
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by icelancer View Post
I have a question about substring operations for dumping a video file (I know, I know, no dumping support).

My video_player line in the config file is:

video_player=mplayer -cache 2048 -really-quiet -dumpstream %s -dumpfile %f

But what if I wanted to just name the file 2013-05-05-texmlb-houmlb-1.mp4? That means ignoring the bolded portion here:

houmlb-1-FSSW-HD.mp4

I tried redirecting to a shell script or doing inline substring work without much help. Any ideas?

Second question: Do you plan on trying to support milb.tv? I imagine it's the same back-end and the like. If you are interested, I'll buy you a subscription and help with debugging.

Thanks a ton!

If it's a question of matching the string of the filename created, you can predict what that string will be using the z=1 flag of mlbplay, e.g.

Quote:
matthew@dubstep32:~/mlbtv/mlb2013$ ./mlblistings.py | grep kc
CG: 7:05 PM: 2013/05/15/kcamlb-anamlb-1 E: 14-347337-2013-05-15
matthew@dubstep32:~/mlbtv/mlb2013$ ./mlbplay.py v=kc z=1
media = [[('FSW-HD', u'108', '26971957', '14-347337-2013-05-15'), ('FSKC-HD', u'118', '26971955', '14-347337-2013-05-15')]]
prefer = ('FSKC-HD', u'118', '26971955', '14-347337-2013-05-15')
Looking at that prefer line, it's going to be the gameid selected from mlblistings.py plus that first element in the prefer tuple.

Using some shell scripting...

Quote:
matthew@dubstep32:~/mlbtv/mlb2013$ ./mlblistings.py | grep kc | awk '{print $4}' | sed 's/\//-/g'
2013-05-15-kcamlb-anamlb-1
matthew@dubstep32:~/mlbtv/mlb2013$ ./mlbplay.py v=kc z=1 | grep prefer | cut -d\' -f2
FSKC-HD
Obviously, that will need to be tuned a little for double headers but you can change that "grep kc" to the grep $event_id once you have decided which event_id you want.

If you store those in variables game_id and call_letters, your filename will be ${game_id}-${call_letters}.mp4.

Quote:
matthew@dubstep32:~/mlbtv/mlb2013$ game_id=$(./mlblistings.py | grep kc | awk '{print $4}' | sed 's/\//-/g')
matthew@dubstep32:~/mlbtv/mlb2013$ call_letters=$(./mlbplay.py v=kc z=1 | grep prefer | cut -d\' -f2)
matthew@dubstep32:~/mlbtv/mlb2013$ echo ${game_id}-${call_letters}.mp4
2013-05-15-kcamlb-anamlb-1-FSKC-HD.mp4
matthew@dubstep32:~/mlbtv/mlb2013$

Last edited by daftcat; 05-16-2013 at 10:20 AM.
 
Old 05-16-2013, 11:20 AM   #4061
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
mlbviewer is powerful with many, many features, configuration file options, and a few (possibly undocumented) hacks for feature requests (like tying condensed game speed to speed= option.)

The README file is getting pretty big and hard to maintain.

How many of you have read the README?

Would it be more helpful to have a QUICK-START and a Documentation directory with smaller mini-HOWTO files targeting specific features or hacks?

Any other ideas on how I can tackle the documentation in a way that's easier to digest?
I've not only read the README, I refer to it often as a reference for the hotkeys. A QUICK-START may be handy, and a single file with the hotkeys could be even handier than using the README, but I don't mind how it is now.
 
Old 05-16-2013, 03:36 PM   #4062
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by BostonPeng View Post
I've not only read the README, I refer to it often as a reference for the hotkeys. A QUICK-START may be handy, and a single file with the hotkeys could be even handier than using the README, but I don't mind how it is now.
The 'h' key is probably more up-to-date than the README for hot-keys.

The help screen and key mappings are now intertwined so that I cannot add any new hot-keys without also updating the help screen. Furthermore, you can customize the key mappings and those automatically update the Help screen as well.
 
Old 05-16-2013, 03:47 PM   #4063
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
The 'h' key is probably more up-to-date than the README for hot-keys.

The help screen and key mappings are now intertwined so that I cannot add any new hot-keys without also updating the help screen. Furthermore, you can customize the key mappings and those automatically update the Help screen as well.
Woops! I better make an updated keymap file then so I can remember everything. I usually use the "h" key anyway, but I have gone to the README to try to keep from having to constantly pull up the help screen sometimes.
 
Old 05-16-2013, 04:02 PM   #4064
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by BostonPeng View Post
Woops! I better make an updated keymap file then so I can remember everything. I usually use the "h" key anyway, but I have gone to the README to try to keep from having to constantly pull up the help screen sometimes.
The README is not that out-of-date. But it may be missing Standings and RSS depending on whether I checked in recent documentation updates or not. Maybe I'll add a hidden "save to file" feature for the Help Screen.
 
Old 05-16-2013, 04:25 PM   #4065
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
The README is not that out-of-date. But it may be missing Standings and RSS depending on whether I checked in recent documentation updates or not. Maybe I'll add a hidden "save to file" feature for the Help Screen.
I just called up the file and it looks like only the RSS is missing. The Standings is in the file on line 121, so it's not nearly as bad as I was afraid it was from your earlier comment. That's from the latest upload to SF, and Saturday I'll update via svn to get the latest goodies.

One thing I'm noticing, and I'm not sure if it's an issue with my system or my 'net connection or what, but the condensed game is pretty useless to me. It's hanging up so often, and so badly, that I can't even get through the first batter. Looking at last night's Nats v Dodgers game, not logged in and with a speed of 1800K selected for mplayer2, I'm noticing this in the terminal
Quote:
Requesting media: ('CG', 0, '27169291', '14-347346-2013-05-15')RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting download at: -0.001 kB
INFO: Metadata:
INFO: duration 931.43
INFO: moovPosition 36.00
INFO: width 960.00
INFO: height 540.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 100.00
INFO: avclevel 40.00
INFO: aacaot 2.00
INFO: videoframerate 29.97
INFO: audiosamplerate 48000.00
INFO: audiochannels 1.00
INFO: trackinfo:
INFO: length 27941914.00
INFO: timescale 30000.00
INFO: language und
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 44708864.00
INFO: timescale 48000.00
INFO: language und
INFO: sampledescription:
INFO: sampletype mp4a
258.420 kB / 1.74 sec (0.1%)Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Using debug mode I get a URL of rtmp://cp65671.edgefcs.net/ondemand/mp4:open/mlbam/2013/05/16/mlbtv_27169291_1800K.mp4
 
  


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 04:53 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