LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-28-2009, 12:30 AM   #1471
Takabru
Member
 
Registered: Apr 2009
Posts: 37

Rep: Reputation: 15

How the heck to I add returns to the code box lol? So, it doesn't scroll forever in my runoff sentences.
 
Old 04-28-2009, 01:00 AM   #1472
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by Takabru View Post
How the heck to I add returns to the code box lol? So, it doesn't scroll forever in my runoff sentences.
Hehe! Maybe 'code' is not the right interface for entering answers.

Trust me. You don't want to use rtmpdump. I mean, it's okay for archive but it totally sucks for live video. It's great for audio both live and archived. You also can only get 800K max from rtmpdump. The quality bars map out to 164, 400, 600, 800 for non-nexdef. Anything higher than 800 requires nexdef.

In other news, I finally got a troublesome bit of code figured out for stream selection. Now I'm going out dancing and I'll finish up that piece of code when I get back.
 
Old 04-28-2009, 06:51 AM   #1473
mswift42
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 16
Hey Dafcat, Since this morning, mlbviewer suddenly stopped working.

Here is the error message:

Code:
Traceback (most recent call last):
                                    File "mlbviewer.py", line 1127, in <module>                                                                                 curses.wrapper(mainloop, mycfg.data)
                                         File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
                             return func(stdscr, *args, **kwds)
                                                                 File "mlbviewer.py", line 200, in mainloop
                               available = mysched.getListings(cfg['speed'],cfg['blackout'],cfg['audio_follow'])
                                  File "/home/martin/mlbviewer/MLBviewer/mlbtv.py", line 645, in getListings
                                return self.getXmlListings(myspeed, blackout, audiofollow)
            File "/home/martin/mlbviewer/MLBviewer/mlbtv.py", line 651, in getXmlListings
             listings = self.trimXmlList(blackout)T
                                                    File "/home/martin/mlbviewer/MLBviewer/mlbtv.py", line 385, in trimXmlList
                                                  hrs, mins = time_string.split(':')
    ValueError: need more than 1 value to unpack
                                                martin@martin-laptop:~/mlbviewer$
Do you have any idea what's going on?
 
Old 04-28-2009, 06:57 AM   #1474
mswift42
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 16
BTW, for all Ubuntu users, who want an easy way to install pyxml and suds:

Code:
sudo apt-get install python-setuptools

easy_install suds
easy_install pyxml
done.
 
Old 04-28-2009, 10:07 AM   #1475
Onip
Member
 
Registered: Apr 2008
Posts: 36

Rep: Reputation: 15
Today by chanche I stumbled upon rtmpy, which seems an rtmp enabling extension to the twisted engine.

What may be interesting is
a) it's in python.
b) they have a client example in their sources.

For what I understood by some inaccurate reading twisted should be a network abstraction layer so you could uniform rtmp and swarmcast interaction and maybe simplify your work.
from the other side I don't know if this is worth the mess of learning a new middleware.

Just a hint for you developers out there.
 
Old 04-28-2009, 10:37 AM   #1476
Takabru
Member
 
Registered: Apr 2009
Posts: 37

Rep: Reputation: 15
Quote:
Originally Posted by mswift42 View Post
Hey Dafcat, Since this morning, mlbviewer suddenly stopped working.

Here is the error message:

Code:
Traceback (most recent call last):
                                    File "mlbviewer.py", line 1127, in <module>                                                                                 curses.wrapper(mainloop, mycfg.data)
                                         File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
                             return func(stdscr, *args, **kwds)
                                                                 File "mlbviewer.py", line 200, in mainloop
                               available = mysched.getListings(cfg['speed'],cfg['blackout'],cfg['audio_follow'])
                                  File "/home/martin/mlbviewer/MLBviewer/mlbtv.py", line 645, in getListings
                                return self.getXmlListings(myspeed, blackout, audiofollow)
            File "/home/martin/mlbviewer/MLBviewer/mlbtv.py", line 651, in getXmlListings
             listings = self.trimXmlList(blackout)T
                                                    File "/home/martin/mlbviewer/MLBviewer/mlbtv.py", line 385, in trimXmlList
                                                  hrs, mins = time_string.split(':')
    ValueError: need more than 1 value to unpack
                                                martin@martin-laptop:~/mlbviewer$
Do you have any idea what's going on?
I get this from time to time now too. It started after the getting the update to mlbviewer. I just close the terminal and restart it and it seems to work again. I thought I was doing something wrong, maybe I wasnt now that someone else is experiencing it.
 
Old 04-28-2009, 11:26 AM   #1477
TheDevilWearsPravda
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
RE: System requirements

Quote:
Originally Posted by daftcat View Post
So we all know that Linux is lighter on the system requirements than Windows -- one of the most attractive qualities of Linux.

However, this year's mlb.tv offering seems to be much more resource intensive than last year, especially with the nexdef support.

So, I want to try to formulate system requirements suggestions.

Please tell me
1. What specs do you have: CPU / RAM

Code:
1.7 Ghz , 512 Mb RAM
2. Nexdef or rtmpdump?

Code:
rtmpdump... I live in my team's blackout region, so archives only for me
3. Peak hours experience (7:00 - 11:00 ET?) e.g. when the majority of live games are in progress

Code:
Only watch off peak, no experience.
4. Off-peak hours experience (when the majority of the games are completed/Archived):

Code:
Never have a stream drop. Occasional audio/video sync issues, autosync usually clears those p.
5. Overall better experience than Windows plus Flash player (if you dual boot)?

Code:
NA
6. Preferred stream (or max_bps setting since you probably don't know yet which stream you're actually getting)

Code:
800K... best I can get. At least MLB has been letting me chose home or away streams... No Hawk
 
Old 04-28-2009, 11:38 AM   #1478
TheDevilWearsPravda
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by Takabru View Post
I get this from time to time now too. It started after the getting the update to mlbviewer. I just close the terminal and restart it and it seems to work again. I thought I was doing something wrong, maybe I wasnt now that someone else is experiencing it.
I'm getting the same exact error. If I use mlblistings.py, I can see yesterday's listings and tomorrow's, so it's something to do with today's listings. Maybe the doubleheader with a game listed as TBD?
 
Old 04-28-2009, 11:43 AM   #1479
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by Onip View Post
Today by chanche I stumbled upon rtmpy, which seems an rtmp enabling extension to the twisted engine.

What may be interesting is
a) it's in python.
b) they have a client example in their sources.

For what I understood by some inaccurate reading twisted should be a network abstraction layer so you could uniform rtmp and swarmcast interaction and maybe simplify your work.
from the other side I don't know if this is worth the mess of learning a new middleware.

Just a hint for you developers out there.
Their documentation is lacking big time and they have a sample media player which is not quite the same as a sample client. SimpleMediaPlayer is more like Flow Player for embedding RTMP in a web page (replacing Flash plugin), rather than delivering a stream either to disk or to mplayer.

It seemed like more effort than it was worth to try and reinvent rtmpdump from poorly documented RTMPy.

Thanks anyway, though.
 
Old 04-28-2009, 11:48 AM   #1480
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by TheDevilWearsPravda View Post
I'm getting the same exact error. If I use mlblistings.py, I can see yesterday's listings and tomorrow's, so it's something to do with today's listings. Maybe the doubleheader with a game listed as TBD?
That's exactly what it is.

Unfortunately, I do a lot of manipulation on the time so when the time is listed as "Gm2" instead of a real time, it's going to fail in multiple places.

Fortunately, I've been working on new code to use a different xml to get the listings. At least in this xml they fudged the time as 3:33 AM. Which is weird because you'll get Game 2 appearing before Game 1 in the listings. But at least it will be there. This code is almost ready.

Stay tuned.

In the meantime, if you want to watch yesterday's games, start mlbviewer with a startdate of yesterday:

Code:
$ mlbviewer startdate=04/27/09
 
Old 04-28-2009, 12:00 PM   #1481
mswift42
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 16
Thank you very much !!!

1. What specs do you have: CPU / RAM

Code:
Dual Core 1.7 Ghz, 3 GB Ram
2. Nexdef or rtmpdump?

Code:
awesome next-def all the way
3. Peak hours experience (7:00 - 11:00 ET?) e.g. when the majority of live games are in progress

Code:
with mplayer really good. Flash player barely usable.
4. Off-peak hours experience (when the majority of the games are completed/Archived):

Code:
nearly perfect with mplayer, except for occasional audio off-sync.
5. Overall better experience than Windows plus Flash player (if you dual boot)?

Code:
Way better.
6. Preferred stream (or max_bps setting since you probably don't know yet which stream you're actually getting)

Code:
max_bps = 300000
 
Old 04-28-2009, 12:47 PM   #1482
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Quote:
Originally Posted by daftcat View Post
So we all know that Linux is lighter on the system requirements than Windows -- one of the most attractive qualities of Linux.

However, this year's mlb.tv offering seems to be much more resource intensive than last year, especially with the nexdef support.

So, I want to try to formulate system requirements suggestions.

Please tell me (my answers inline):

1. What specs do you have: CPU / RAM
Core 2 Quad 2.4g, 2.0gb RAM

Quote:
Originally Posted by daftcat View Post

2. Nexdef or rtmpdump?
Nexdef

Quote:
Originally Posted by daftcat View Post

3. Peak hours experience (7:00 - 11:00 ET?) e.g. when the majority of live games are in progress
Some choppy streams, streams occasionally dropped. All-in-all better than flash player live.

Quote:
Originally Posted by daftcat View Post

4. Off-peak hours experience (when the majority of the games are completed/Archived):
Pretty much perfect. Don't watch a whole lot of archives right now though. Probably will in the summer when I'm working during peak hours.

Quote:
Originally Posted by daftcat View Post

5. Overall better experience than Windows plus Flash player (if you dual boot)?
That would be YES.

Quote:
Originally Posted by daftcat View Post

6. Preferred stream (or max_bps setting since you probably don't know yet which stream you're actually getting)
3M. I've noticed I don't get it all the time, but I have been looking at the VLC statistics, and probably 1/2 to 2/3 of the time I get the 3M (if it is available); and it is as good as watching it on an HD TV in my opinion.

Quote:
Originally Posted by daftcat View Post

7. Do you feel like your system is sufficient for mlbviewer plus nexdef (or rtmpdump)?
Yes--CPU time is at about 5-7% when watching the full 3M stream. I also have a laptop that is much less powerful, but it only runs windows at this time. I got last years mlbviewer working on it (with Cygwin), maybe when the dust settles this year I will try that this year.
 
Old 04-28-2009, 12:48 PM   #1483
mjbcoug
LQ Newbie
 
Registered: Apr 2009
Location: Spokane, WA
Distribution: Ubuntu (Jaunty)
Posts: 19

Rep: Reputation: 0
I stumbled upon mlbviewer almost by accident. I can't heap enough praise on you guy~!! This is AWESOME!

1. What specs do you have: CPU / RAM

Code:
2.10 GHz Intel Core 2 Duo, 3GB RAM (6 mo. old HP laptop)
2. Nexdef or rtmpdump?

Code:
Nexdef
3. Peak hours experience (7:00 - 11:00 ET?) e.g. when the majority of live games are in progress

Code:
Excellent. Very occasional hiccups in stream.
4. Off-peak hours experience (when the majority of the games are completed/Archived):

Code:
Amazing.
5. Overall better experience than Windows plus Flash player (if you dual boot)?

Code:
Overall better with mlbviewer.
My desktop is Windows and work is Windows. Both run nicely but through the browser 
the streams often get pixellation and artifacts typically along the bottom of the picture.
6. Preferred stream (or max_bps setting since you probably don't know yet which stream you're actually getting)

Code:
Premium subscriber so whatever is highest.  Looks simply amazing. 
Had a buddy check it out the other day and he almost wet himself with excitement.
 
Old 04-28-2009, 01:03 PM   #1484
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
SVN revision 171: A lot of testing code still unfinished

The doubleheader today has forced my hand to check in a lot of unfinished code.

I had started to work on parsing the media listings from grid.xml instead of epg.xml. Fortunately, this paid off because epg.xml has the start time= element of the second game of the doubleheader as "Gm2" which is failing the time parsing code. While grid.xml just made up a time for the game 2 (3:33 AM.) So at least that gets through all the time parsing code. Also, I parse these games in listing order rather than time order so Game 2 does appear after Game 1 in the listings unlike my earlier post stated.

The majority of the unfinished code isn't used so I'm not going to bother explaining it just yet.

One thing you will notice in this new code is that I poll nexdef with control messages about every ten seconds and update the screen with the currently selected stream. This way you guys can know what stream you are actually using* and when the stream up or down shifts on you. It's still the same max_bps code meaning all you are doing is specifying what you can handle. It's still up to nexdef to decide what it's going to give you. The stream adjustment code will be in a future revision. Because of the poll code, it may take up to 10 seconds to return to the listings after the player quits and it may take longer if mplayer decides to take its time exiting after a "read failed" error. This is part of the unfinished bit of the code.

*I suspect many of you think you are getting the 3000K stream but are actually getting the 2200K stream (still a damn fine stream, by the way.) There's really nothing I can do right now to fix this just yet but at least now you'll know for sure.

Gameday audio and non-nexdef users, you can update to this revision to get the doubleheader fix ("Need more than one value to unpack") but please continue to use mlbdvr. Your integration code isn't ready yet.
 
Old 04-28-2009, 01:27 PM   #1485
jeremybub
LQ Newbie
 
Registered: Apr 2009
Posts: 26

Rep: Reputation: 16
As a non-nexdef user, do live games work? (with rtmpdump I assume) and if they do, are there any problems with them. You seemed to say that they were not working well, but that would imply that they are at least working. If they are working, how do you get them up, just the normal way with mlbviewer.py?
 
  


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