LinuxQuestions.org
Visit Jeremy's Blog.
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 09-10-2012, 08:02 AM   #3736
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15

Quote:
Originally Posted by larshenric View Post
Thanks fang2415!
I was thinking of a new config file, too, but didn't know where to get it from. Could you tell me where I can download a new one?
Hmm, probably wherever you got mlbviewer in the first place! (If you've still got the .tar.gz lying around, just extract it again.) In fact it may be almost as easy to simply reinstall mlbviewer altogether -- should be pretty easy now that you've got all the dependencies set up. I can't remember which links are up-to-date, but I assume that the version at http://sourceforge.net/projects/mlbviewer/ will work; alternatively you could search this thread for the most recent few mentions of "svn" and follow the instructions to get a bleeding-edge version with this season's bugfixes.

But yeah: the best way to get the fresh config file back is probably to get it from the original package. And keep a backup next time!
 
Old 09-10-2012, 02:31 PM   #3737
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by larshenric View Post
Hm...
Now mlbviewer doesn't work anymore... I get this terminal message:

lars@X64V:~/mlbviewer2012$ python mlbviewer.py
Traceback (most recent call last):
File "mlbviewer.py", line 1630, 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 500, in mainloop
+ len(coveragetoggle.get(cfg['coverage'])) + 2
TypeError: object of type 'NoneType' has no len()
lars@X64V:~/mlbviewer2012$

Please, help...!
Please post your config (without user= and pass=)

That specific line of code does three different look-ups so your problem could be with invalid data for adaptive_stream, coverage, or speed.

I suspect that you placed chc in the coverage field which is incorrect. coverage should either be 'home' or 'away'. The team codes are used in video_follow and audio_follow to automatically select the correct broadcast for a particular team.

As for mlbgamedl.py. As the directory suggests, these are test scripts. The dl scripts were mostly intended to allow users to download a small piece of audio or video (e.g. a few seconds) which can be sent to the ffmpeg/mplayer team when MLB.TV has implemented something that mplayer doesn't support. So while the test scripts can be used for downloading an entire game, they certainly were not intended for that purpose. As such, I will not be implementing the entire feature set in those scripts. I won't be implementing home and away coverage selection or video/audio follow for the test scripts.

There is a way to do it with your video_player command in mlbviewer itself. I forget the specific command but you can either try searching this thread (under Thread Tools) for "mplayer dumpstream" or maybe someone here can share the correct video_player command.
 
Old 09-10-2012, 02:34 PM   #3738
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by fang2415 View Post
Hmm, probably wherever you got mlbviewer in the first place! (If you've still got the .tar.gz lying around, just extract it again.) In fact it may be almost as easy to simply reinstall mlbviewer altogether -- should be pretty easy now that you've got all the dependencies set up. I can't remember which links are up-to-date, but I assume that the version at http://sourceforge.net/projects/mlbviewer/ will work; alternatively you could search this thread for the most recent few mentions of "svn" and follow the instructions to get a bleeding-edge version with this season's bugfixes.

But yeah: the best way to get the fresh config file back is probably to get it from the original package. And keep a backup next time!
Easiest way to start with a new config:

$ mv ~/.mlb/config ~/.mlb/config.old

Now you have backed up the old config.

Start mlbviewer and it will create a new config with all the default options.

Edit the new ~/.mlb/config and change user and pass and you should be back in business.

(If you need any specific customization like custom video_player commands, you can copy those lines from your backed up config.)

Last edited by daftcat; 09-10-2012 at 02:35 PM.
 
Old 09-10-2012, 05:11 PM   #3739
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: Ubuntu 11.04
Posts: 42

Rep: Reputation: Disabled
Thank you, guys, for helping...!!

The "easiest way" to start a new config file worked perfectly, mlbviewer is running again...

Now I'll go to bed, and tommorrow I'll compare the new with the old config file to see what might be wrong with the old one. I'll post the "results" here...

Good night for now and thanks again!
 
Old 09-11-2012, 04:20 PM   #3740
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: Ubuntu 11.04
Posts: 42

Rep: Reputation: Disabled
comparing new config with the old one I found out, that in the old one there was no "home" or "away" at the coverage option. That might have been the mistake? everything else is equal...
 
Old 09-16-2012, 05:03 PM   #3741
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
I recently rebuilt my laptop to use the Linux Mint Debian Edition KDE respin and since today's Dodgers/Cards game is the freebie I installed mlbviewer-test again to watch it. I made sure I followed the steps I documented in my blog post but now when I try to watch the game I get

Quote:
Buffering stream/bin/sh: rtmpdump: not found
But I've installed rtmdump four times from git code. Any ideas what may be going wrong?
 
Old 09-17-2012, 05:13 AM   #3742
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: Ubuntu 11.04
Posts: 42

Rep: Reputation: Disabled
Hm...
Trying to watch BAL@OAK this morning the stream started, but after a while it stopped, with terminal giving this message:

"ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 67367"

So, I've got the same question as BostonPeng...
 
Old 09-17-2012, 05:46 AM   #3743
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
FWIW, I don't think those are the same problem actually. Lars, I get the same message frequently -- basically any time the stream dies even temporarily, rtmpdump gives that error and stops (I get it all the time if my wifi is flaky). I think all you can do from within mlbviewer is to try again. Alternatively, you could look in the log file at .mlb/log to see the rtmpdump command that mlbviewer last used and run that command manually from the command line. That has several advantages, including being able to properly specify an output file and then resume download to that file if the stream dies again (using rtmpdump's -o and -e options -- do "man rtmpdump" for details); also, it seems that using rtmpdump manually will never trigger a password lock-out, so you can keep retrying as many times as you want.

BostonPeng: ...? It doesn't sound like rtmpdump is in the path (or anywhere else that mlbviewer can find it). Have you tried "which rtmpdump"? Maybe you forgot to copy the rtmpdump binary into /usr/bin/ after compiling? Can you run rtmpdump manually from the command line (even just with some garbage inputs that'll give you rtmpdump's error message)?
 
Old 09-17-2012, 10:18 AM   #3744
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 88

Rep: Reputation: Disabled
I don't recall having to copy the binary when I installed it before but which gave me bupkis so I copied it over. Once I did I was able to snag yesterday's game without a problem. Now I just have to retweak my settings since when I reinstalled LMDE I ended up with a default config file despite leaving my /home partition alone for the install.

It turns out I forgot to move my tutorial over to my new site so when I get it moved over I'll include the copying step, as well as changing the command to make for rtmpdump since for some reason I said to make it for darwin rather than the posix that Linux needs. (The updated post is here, and once I get mlbhls installed I'll include the steps needed for that in an update.)

Thanks again for the assist.

Last edited by BostonPeng; 09-17-2012 at 10:46 AM.
 
Old 09-17-2012, 10:48 AM   #3745
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: Ubuntu 11.04
Posts: 42

Rep: Reputation: Disabled
Quote:
Originally Posted by BostonPeng View Post
Thanks again for the assist.
The same from my side...!!
 
Old 09-20-2012, 10:31 AM   #3746
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: Ubuntu 11.04
Posts: 42

Rep: Reputation: Disabled
Hi...!

I would like to ask something: These days the WBC qualifiers are on the way and the games are listed in mlbviewer, but it says "no media". Is there any possibility to make them available? It would be more than great...

Lars
 
Old 09-21-2012, 02:09 PM   #3747
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by larshenric View Post
Hi...!

I would like to ask something: These days the WBC qualifiers are on the way and the games are listed in mlbviewer, but it says "no media". Is there any possibility to make them available? It would be more than great...

Lars
Unless WBC is part of the MLB.TV package, it won't be available through mlbviewer. I visited the WBC website and didn't see an option to watch the games or subscribe to a package to watch the games. So, no, can't be done.

Might be able to support the Top Plays but that's going to require some additional development effort. I can make no promises on when I can get around to this as I currently have a sprained wrist.
 
Old 09-21-2012, 05:27 PM   #3748
larshenric
Member
 
Registered: Aug 2012
Location: Flensburg, Germany
Distribution: Ubuntu 11.04
Posts: 42

Rep: Reputation: Disabled
Hi daftcat!
Never mind! It just would have been nice to "schedule" viewing by myself with the help of mlbviewer. On worldbaseballclassic.com one can see the games live, but only live, not in a replay... And that's the problem for me as many games are at 1 am in the morning...
 
Old 09-25-2012, 04:39 AM   #3749
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
Solved: mlbhls segmentation fault

So yesterday I tried installing mlbviewer and mlbhls on a new Ubuntu machine. mlbviewer installed without a hitch, but mlbhls kept giving me segfaults. Long story short: after a fair amount of hacking I realized that the trunk version of mlbhls seems broken, but the version in the experimental branch works fine.

That is, downloading the source using the following gave me warnings on compile and a binary that segfaulted every time (even with previous versions):
Code:
svn checkout http://mlbtv-hls-nexdef.googlecode.com/svn/trunk/ mlbhls
But with the following, I got a clean compile and a binary that worked a treat:
Code:
svn checkout https://mlbtv-hls-nexdef.googlecode.com/svn/branches/experimental mlbhls
I haven't seen this documented anywhere and it runs contrary to what's suggested at https://code.google.com/p/mlbtv-hls-...ource/checkout... (I only figured it out when I checked "svn info" on my old system, and then noticed that the good svn link was upthread here.) I know some people have been having trouble installing mlbhls, so hopefully this information will help solve some of those problems. thegryghost, if this is right, maybe it'd help to add it to the mlbhls project page?

Hope that's helpful.
 
Old 10-04-2012, 02:33 PM   #3750
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
I'm generally unavailable for the next seven days or so. Any postseason woes you might have with mlbviewer you should try to help each other with. I will look at what they are doing for postseason this year when I return next week. If last year is any indication, they may offer alternate camera angles for an extra subscription. My code from last year *may* work with the P (uppercase P) key to access the camera angles list.
 
  


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 11:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM


All times are GMT -5. The time now is 10:52 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration