LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-13-2012, 10:43 PM   #3481
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,744

Rep: Reputation: 76
trunks and branches


mlbviewer trunk will be used for getting basic service working for 2012

If you don't have an mlbviewer trunk copy to update, you can check it out with:

Code:
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer
Please do this in a separate directory from any nexdef branches.

nexdef2012 branch (not yet created) will be used for hacking in new features (if any) and getting nexdef to work (if it requires big changes from trunk)

nexdef2011 branch is now dead. The trunk now contains whatever changes I made since I created that branch last year (including mlbplay.py)
 
Old 03-14-2012, 03:16 PM   #3482
cjbissonnette
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Still have issues with 2012 Viewing

When a try to view (either a live stream or an archived one) I get:
An error occurred in locating the game stream

When I turn debug on the program crashes and I got the following on the terminal:
curtis@curtis2:~/mlbviewer$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1626, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1307, in mainloop
u = g.url()
File "/home/curtis/mlbviewer/MLBviewer/mlbtv.py", line 1383, in url
'fingerprint': urllib.unquote(self.cookies['fprt']),
KeyError: 'fprt'

I'll add that this is the first time that I'm trying to use mlbviewer, so I have never had it working on my system.
 
Old 03-14-2012, 04:17 PM   #3483
thegryghost
LQ Newbie
 
Registered: Mar 2009
Distribution: Gentoo
Posts: 28

Rep: Reputation: 1
Quote:
Originally Posted by thegryghost View Post
I've looked into the bad decrypting issue and it seems the encryption keys are being changed after X amount of chunks. The previous behavior was to just use a single key for the entire game. I'll update mlbhls to fetch the new keys when needed (just like a 'real' HLS client).
I have a preliminary fix for the decryption issue, if anyone wants to test it.. try my experimental branch:
Code:
svn co https://mlbtv-hls-nexdef.googlecode.com/svn/branches/experimental mlb.exp
This code also has working (or it should be working) bandwidth switching . It will start out at the lowest bitrate (128k), calculate the average bitrate of the last 3 chunks, then switch to the highest available, without going over. It'll continuously switch depending on the average speed of the last 3 chunks. New options:
Code:
-L, --lock		Toggle Adapative Bandwidth (default is on)
-b, --maxbit		Limit Maximum bitrate
-m, --minbit		Limit Minimum bitrate
-s, --startbit		Bitrate to start at when using adaptive (default is lowest)
So, if you want the old behavior.. use -L with -s.

I've tested this on archived games and today's Live Mets/Tigers game. Let me know if you run into any troubles.
 
Old 03-14-2012, 05:05 PM   #3484
chrisVV
Member
 
Registered: Aug 2010
Posts: 108

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
What has not been tested and may or may not work:
- Live audio
- Live video of any flavor
- Nexdef video using autobahn.jar
Thanks for your great work on this.

Archived games work for me, but live games fail with "'An error occurred in locating the game stream. 'Nonetype' object has no attribute 'groups'" error (as tested with the NYM/Detroit game).

The new MLB.TV standard streams seem to cause problems with my version of mplayer (the video "sticks" and then aborts), but that does not appear to be a mlbviewer issue, as vlc works OK.
 
Old 03-14-2012, 11:54 PM   #3485
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,744

Rep: Reputation: 76
Quote:
Originally Posted by cjbissonnette View Post
When a try to view (either a live stream or an archived one) I get:
An error occurred in locating the game stream

When I turn debug on the program crashes and I got the following on the terminal:
curtis@curtis2:~/mlbviewer$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1626, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 1307, in mainloop
u = g.url()
File "/home/curtis/mlbviewer/MLBviewer/mlbtv.py", line 1383, in url
'fingerprint': urllib.unquote(self.cookies['fprt']),
KeyError: 'fprt'

I'll add that this is the first time that I'm trying to use mlbviewer, so I have never had it working on my system.
Do you have user= and pass= filled out in ~/.mlb/config? Basic question, I know. But I'm not sure why you would be getting an incomplete cookie.
 
Old 03-14-2012, 11:56 PM   #3486
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,744

Rep: Reputation: 76
Quote:
Originally Posted by chrisVV View Post
Thanks for your great work on this.

Archived games work for me, but live games fail with "'An error occurred in locating the game stream. 'Nonetype' object has no attribute 'groups'" error (as tested with the NYM/Detroit game).

The new MLB.TV standard streams seem to cause problems with my version of mplayer (the video "sticks" and then aborts), but that does not appear to be a mlbviewer issue, as vlc works OK.
Live games is going to need more hacking. I don't really understand the AMF necessary for handshaking and getting a stream going with rtmpdump and why this is different for live games vs archived. The best I can do is wait for another live game (the last one just finished) and try to match my outgoing requests with what I can partially see through wireshark.
 
Old 03-15-2012, 08:59 AM   #3487
cjbissonnette
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Fixed, Thank You

Quote:
Originally Posted by daftcat View Post
Do you have user= and pass= filled out in ~/.mlb/config? Basic question, I know. But I'm not sure why you would be getting an incomplete cookie.
I'm an idiot, I had my user name filled out (which I can use on mlb.com) but it required my full email address. Sorry about that, archived games appear to be working now. Thanks!

P.S. Maybe have it prompt with a "could not login" error, for stupid people like me
 
Old 03-15-2012, 12:17 PM   #3488
kweisen
Member
 
Registered: May 2006
Location: Stewartsville, NJ
Distribution: fedora 14 & MInt 15
Posts: 50

Rep: Reputation: 0
Now Im getting a different error. I'm not even getting to the game selection screen:

[kweisen@localhost mlbviewer]$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1626, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 474, in mainloop
+ len(coveragetoggle.get(cfg['coverage'])) + 2
TypeError: object of type 'NoneType' has no len()
 
Old 03-16-2012, 12:42 AM   #3489
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,744

Rep: Reputation: 76
Quote:
Originally Posted by kweisen View Post
Now Im getting a different error. I'm not even getting to the game selection screen:

[kweisen@localhost mlbviewer]$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1626, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.7/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "mlbviewer.py", line 474, in mainloop
+ len(coveragetoggle.get(cfg['coverage'])) + 2
TypeError: object of type 'NoneType' has no len()
Change the speed in your config file to 1200. Prior default was 800 but I don't think they are going to have an 800K stream this year from the debugging I've done so far.
 
Old 03-16-2012, 01:28 PM   #3490
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
Change the speed in your config file to 1200. Prior default was 800 but I don't think they are going to have an 800K stream this year from the debugging I've done so far.
Yes, that was it. Now I can select the games. Still, can just listen to the archived games. With live, getting the 'Nonetype' object has no attribute 'groups' error, but from I read, others are also.

Thanks for your help.
 
Old 03-16-2012, 06:17 PM   #3491
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,744

Rep: Reputation: 76
Quote:
Originally Posted by kweisen View Post
Yes, that was it. Now I can select the games. Still, can just listen to the archived games. With live, getting the 'Nonetype' object has no attribute 'groups' error, but from I read, others are also.

Thanks for your help.
Yeah. I don't know that I checked in the "fix" for live games yet.

Brief answer, live games are not working yet and I am aware of this. I have been able to test a fix for live games just now and it seems to work. However, this seems "fix" seems to break archived games. A bit more testing needs to be done and I don't think I will be home tonight before the last live game finishes.

Hopefully I'll have a fix for live games (without breaking archived games) sometime this weekend.
 
Old 03-16-2012, 06:21 PM   #3492
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,744

Rep: Reputation: 76
Quote:
Originally Posted by thegryghost View Post
I have a preliminary fix for the decryption issue, if anyone wants to test it.. try my experimental branch:
Code:
svn co https://mlbtv-hls-nexdef.googlecode.com/svn/branches/experimental mlb.exp
This code also has working (or it should be working) bandwidth switching . It will start out at the lowest bitrate (128k), calculate the average bitrate of the last 3 chunks, then switch to the highest available, without going over. It'll continuously switch depending on the average speed of the last 3 chunks. New options:
Code:
-L, --lock		Toggle Adapative Bandwidth (default is on)
-b, --maxbit		Limit Maximum bitrate
-m, --minbit		Limit Minimum bitrate
-s, --startbit		Bitrate to start at when using adaptive (default is lowest)
So, if you want the old behavior.. use -L with -s.

I've tested this on archived games and today's Live Mets/Tigers game. Let me know if you run into any troubles.
Oooh! I definitely want to try this out. But right now, I'm focusing my effort on getting basic service working. Hopefully I'll have that working tomorrow so I can test this out with premium service.

Thanks for your continued support of this fine tool.
 
Old 03-17-2012, 02:26 PM   #3493
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,744

Rep: Reputation: 76
Revision 321: Fix for live audio and video

I believe I have a fix for live audio and video for basic service.

Tested and working:
- Live audio
- Live basic service video
- Archived audio
- Archived basic service video

Let me know how this all works.

Next up: If basic service is working, I'll look at what it will take to integrate the latest changes to mlbhls into mlbviewer. I tested briefly last night and it occasionally cycled to a different stream speed. Mplayer handled this perfectly but it might be worth it to add in some configuration file option to specify the command-line options to mlbhls for those who want to try to lock on the desired bitrate.

Last edited by daftcat; 03-17-2012 at 05:07 PM.
 
Old 03-17-2012, 08:20 PM   #3494
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,744

Rep: Reputation: 76
Quote:
Originally Posted by cjbissonnette View Post
I'm an idiot, I had my user name filled out (which I can use on mlb.com) but it required my full email address. Sorry about that, archived games appear to be working now. Thanks!

P.S. Maybe have it prompt with a "could not login" error, for stupid people like me
Better to figure out why the login code isn't catching the "login unsuccessful" status. I'll put it on the list for later after all basic/nexdef/highlights/condensed, etc functionality is taken care of. But at least I know how to reproduce this now.
 
Old 03-18-2012, 02:45 PM   #3495
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
I believe I have a fix for live audio and video for basic service.

Tested and working:
- Live audio
- Live basic service video
- Archived audio
- Archived basic service video

Let me know how this all works.

Next up: If basic service is working, I'll look at what it will take to integrate the latest changes to mlbhls into mlbviewer. I tested briefly last night and it occasionally cycled to a different stream speed. Mplayer handled this perfectly but it might be worth it to add in some configuration file option to specify the command-line options to mlbhls for those who want to try to lock on the desired bitrate.

It works! I can get both the live and archived audio. Thanks for your work.
 
  


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:28 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