maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] mlbviewer_gui for maemo (Beta) (https://talk.maemo.org/showthread.php?t=20740)

jorgecallejas 2008-08-05 01:48

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
hvacengi I never told you I am from nicaragua and my internet conection is 768 it can be the problem because today I flayed to Miami ,the fist I did was to launch mlbviewer and Eureka! it worked,audio is fine. the live strean is like everybody said choppy.
thank a lot for all

mrbadboy 2008-08-05 04:11

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Has anyone been able to watch a live game successfully?

hvacengi 2008-08-05 13:07

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Quote:

Originally Posted by jorgecallejas (Post 210250)
hvacengi I never told you I am from nicaragua and my internet conection is 768 it can be the problem because today I flayed to Miami ,the fist I did was to launch mlbviewer and Eureka! it worked,audio is fine. the live strean is like everybody said choppy.
thank a lot for all

That was actually going to be one of my next questions, if we had been able to confirm that mplayer was launching. I'm glad you figured out what the problem is, but it is too bad that it won't be very easy to fix. Are you able to connect on your regular PC on that internet connection?

Quote:

Originally Posted by mrbadboy (Post 210274)
Has anyone been able to watch a live game successfully?

As far as I am aware, no. The live video consumes all of the cpu, and still wants more. I did run the video stream with the video decoding disabled and had no cpu issue. I did not try using the option of -vo null to simply disable video output, that might be a good way to confirm that the video's extra copy protection is messing us up.

I have also confirmed (by way of an IP web cam at my office) that mplayer is very capable of streaming 512kbps when using the mpeg4 codec, so it shouldn't be a bandwidth issue.


On a seperate note, I was thinking of adding an option in the config to setup the color code used for the game times, so that you could create your own map that would make sense to you (instead of just my crazy brain). Do you think that would be a good addition?

mrbadboy 2008-08-05 13:24

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I love colors and choices.

On the Live Video: I did install VLC; similar live video results. The video freezes, the audio continues to run OK. The audio output is much LOUDER with VLC.

VLC tends to lock up mlbviewer, It grays out condensed games, and doesn't show the top plays.

Is there a way to configure mplayer to use less CPU?

hvacengi 2008-08-05 14:12

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I tried to figure that out about a month ago. One thing I tried was lowering the scale, so that it only tried to display 1/2 the resolution, but the image just became corrupted in a different way (kind of photo negative static). I tried a number of other options, but I invite you to take a look at mplayer's options here and see if you have any more luck. I did briefly revert to mplayer0.26 and then add the rc2 patch. It improved video play back, but not enough to matter.

It was no longer garbled, but instead incredibly laggy. Messing with frame drop settings seemed to help, but not enough.

The player command shouldn't affect which buttons are enabled or not, only the game status (for a finished game it is either 'F' or 'CG', the latter of which includes a condensed game). You said the video freezes, does that mean that it shows the game's image and isn't a block of random color squares?

mrbadboy 2008-08-05 14:35

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
[QUOTE=hvacengi;. You said the video freezes, does that mean that it shows the game's image and isn't a block of random color squares?[/QUOTE]

Correct; You see a brief stream, then it freezes a single "clear" (ungarbled) image, while continuing to stream very clear audio.

You can also have "Full screen" or a smaller scale.

hvacengi 2008-08-05 19:40

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Could you post the command string you used, I'm a bit more familiar with vlc form my PC and I can see if there is a way to speed up the process.

Looking over the mplayer options, I noticed "−hardframedrop". I didn't notice it before, so maybe you could try that and see if it helps. I suspect it won't without being rc2, but it's worth a shot (I do think the latest version of mplayer rc1 does better than when we started this whole ordeal).

mrbadboy 2008-08-05 23:34

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Quote:

Originally Posted by hvacengi (Post 210513)
Could you post the command string you used, I'm a bit more familiar with vlc form my PC and I can see if there is a way to speed up the process.

Looking over the mplayer options, I noticed "−hardframedrop". I didn't notice it before, so maybe you could try that and see if it helps. I suspect it won't without being rc2, but it's worth a shot (I do think the latest version of mplayer rc1 does better than when we started this whole ordeal).

I didn't use the command line; in the mlbviewer options I changed video to: vlc
That's it.
I tried playing with the options in vlc, but I couldn't get the video to stream.

mrbadboy 2008-08-06 00:11

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
No Luck with "-hardframedrop".

jorgecallejas 2008-08-06 03:23

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Yes I can connet to mlbtv with my ,amd window pc, I got only the 400 connection , I watch The Phillies all the season without problem, I installed siverlight and is working well.

hvacengi 2008-08-06 05:19

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Then it *should* be able to work on the nit for you, though latency may be working against you. I've decided to revamp the logging on the next release to better facilitate issues with using the standard output. That should help with finding you're exact error.

Thanks mrbadboy for trying... I think my best hope right now is for the optimized version of vlc that antoine is working on for the google summer of code.

jorgecallejas 2008-08-13 02:10

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I am back home, It was nice to watch the condended gamas in my n800, Now I have to wait until you figured how to help me , one more time thank a lot for your time and patience

blade2002 2008-10-02 04:11

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Anyone else having problems listening to tha games ?? Since the playoffs started i cant listen anymore :eek:
I still can listen to the games on my pc.
I´m still running chinook fyi
Help Help

hvacengi 2008-10-02 04:19

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I listened to the brewer game today without any issues, and I just launched the Red Sox game also. Do you get any errors, do you get a system note that the stream is caheing?

blade2002 2008-10-02 04:33

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
No,
The game (s) are greyed out when they are in progress. I dont have the option to click on the live games. Only the completed games give me the option to click on the matchups ??

Maybe something to do with me trying to listen over here in Germany ???

Forget the last question, it´s got nothing to do with listening over here in Germany, because on my pc (windows) everything works just fine ?

hvacengi 2008-10-02 14:30

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Being in Germany should have no affect. And the app read the website text to figure out the details, so if you're PC doesn't have a different ISP or proxy or some other funky thing you should se the same results on the PC as on the tablet. After the time of the game in the greyed buttons, what was the game code. For me, they all show as (NB) since the are blacked out hear in the US for video coverage. If the app finds a status it doesn't recognize, it may default to disabling the game, so maybe thats the issue. Check out what it says for todays games.

blade2002 2008-10-02 16:09

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Well i just tried installing the newest versions over my older version.
To no avail, mlbviewer started but there was no games listings at all, not even for the previous days. I then deinstalled everything, restarted, then installed the newest version.
Now todays games are at least outlined black ( before everything was just greyed out) :D :D
Anxious to see if it woks tonight.

hvacengi,thnx once again for your time.

Update: Everything works fine now !!!!!, except that we lost 6-4 to the Rays.

hvacengi 2008-10-08 03:56

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I'm glad you got it working!

Too bad indeed, I'm sad that the Brew Crew is finished as well :(

So... just in time for the teams of every one (that I know uses this from this forum) to all be finished, I've made another release! I've wanted to get this figured out since about a month into working on the project, but never found the time to investigate the dbus code needed to launch the default media player.

Quote:

New in this release:
--Enter "mediaplayer" (no quotes) in any of the player command textboxes to play that type on the default media player (helpful on audio streams to give you an interface, you can pick whichever works better for you).
--icons! Not very good, drawn with a touch pad, but they're still icons.
No new real features, but if you listen to the audio and have the same complaint that was discussed earlier in the thread about the sound being too quite, this is your update (finally). I actually really like the audio on the media player because of the interface as well. When I initially tested the video out, it seemed to be more choppy than with mplayer, but when I just now ran my final test before release they seemed about equal... try it out, see if it makes a difference, let me, and every one else here, know, and we'll go on from there :)

As always, let me know if you find any bugs, issues, or if you have a suggestion.

-Brad

jorgecallejas 2009-02-22 16:57

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
The spring training games are coming , and one more time I need help, I have two routers, with the Linksys WRT54GX2 I can watch the condensed games at my N800 but with my Dlink Dir 655. I can not.

hvacengi 2009-02-24 22:01

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Quote:

Originally Posted by jorgecallejas (Post 266271)
The spring training games are coming , and one more time I need help, I have two routers, with the Linksys WRT54GX2 I can watch the condensed games at my N800 but with my Dlink Dir 655. I can not.

Do any of the other services work on the Dlink? (Audio or video replays of last seasons games) Does it give you any error messages? Does the player launch at all or just fail completely? Have you tried switching to the built in media player by setting "mediaplayer" (no quotes) as your video and top plays commands?

I'm actually going to uploading a new version latter tonight (after one last run of my own bug testing) that will have a little simpler interface and improved error logging/viewing.

ehovorka 2009-02-28 05:10

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I have downloaded the latest (mlbviewer_gui-0.0.10 and python-mlbviewer-0.0.3) and it appears there is a time offset problem. I'm seeing game times at 11:05 AM and 01:05 PM. I'm in the Pacific TZ and the games were at 10am and Noon. I tried deleting my .mlb/config file and recreating it and I also tried changing the 'time_offset' by hand and it made no difference.

hvacengi 2009-02-28 21:56

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I have actually noticed the same thing, and I've tried to trace it down. It seems to be a problem in the mlbviewer base lib, or my interaction with it. What you should see is the Eastern time of the game, but I have also found what appears to be a bug in python's daylight savings code on the tablet since everything shows up one hour late for me. It looks like you have the same q hur offset, but in your TZ, not mine... I am going to have to dig in a bit more and fix it, maybe I missed mlbviewer paying attention to the tablets set timezone somehow. Any other noticable issues?

ehovorka 2009-02-28 23:29

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I've got it figured out. The re pattern is bad in mlbtv.py line 92. After this fix you'll need to not subtract 5 from time_offset in setup_cfg, line 527. Below is the code change from mlbtv.py starting at line 90:

Code:

    if time_shift:
#        pattern = re.compile(r'([+-]?)([0-9]{2})([0-9]{2})')
        pattern = re.compile(r'([+-]?)([0-9]{,2})([0-9]{,2})*')
        parsed = re.match(pattern,time_shift)
        # So if we could parse it, we split it up.
        if parsed:
            # added this check for null string
            if parsed.groups()[2] == '':
                secdigit = 0
            else:
                secdigit = int(parsed.groups()[2])
#            mins = ( 60* int(parsed.groups()[1]) ) + int(parsed.groups()[2])
            mins = ( 60* int(parsed.groups()[1]) ) + secdigit
            secs = 60 * mins
            # here's the weird part: python does timezones in terms of
            # a difference, so we have to reverse the signs. In other
            # words, a '-' means that it's a positive difference.
            if parsed.groups()[0] in ('+', ''):
                secs *= -1
            myzone = secs
        # Otherwise we just go by the default machine time
        else:
            # If time.daylight returns 0 (false) it will choose the
            # first element; if it returns 1 (true) it will return the
            # second element.
            myzone = (time.timezone, time.altzone)[time.daylight]
    else:
        myzone = (time.timezone, time.altzone)[time.daylight]


ehovorka 2009-02-28 23:39

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
BTW, I changed my .mlb/config file to have a time_offset=-8 for Pacific Time

hvacengi 2009-03-01 02:23

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Thanks for tracking that down for me! I'll update it tomorrow morning and get a new deb file uploaded. I think I'll also take a look at what it takes to get this stuff into the maemo repo's (or just make my own, whichever looks easier).

hvacengi 2009-03-01 18:48

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I have now updated the files, with ehovorka's patch (thanks again for that!).

I also added a couple of lines to the launch script to copy the log file, and then remove the copy after closing the program. This let me add a log viewing link in the program menu, which should make things easier. I think I removed any print statements that reveal a username and password, but you should still double check before you post any text from your log if you're looking for help.

ehovorka 2009-03-07 03:49

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
New problem, they've added 600k streams. I think the base mlbviewer code has a fix for this already. Here's a patch. /usr/lib/python2.5/site-packages/MLBviewer/mbltv.py, line 274, add the following two lines.
Code:

      for url in elem['mlbtv']['urls']:
          # handle 2007 season where 700K is top quality
          # mask 700K to look like 800K
          if str(self.year) == '2007' and url['speed'] == '700':
              dct['video']['800'] = url['url']

##########add this
              if url['speed'] == '600':
                  dct['video']['400'] = url['url']
###############

              dct['video'][url['speed']] = url['url']
              # national blackout
              try:
                  if (url['blackout'] == 'national') and \
                          elem['status'] in ('I','W','P','IP'):
                          dct['status'] = 'NB'
              except:
                  pass


jus2much314 2009-03-07 04:15

Video and Movies for N810
 
Does anyone know how to rip dvd's with a free dvd ripper software and send them to the n810 and if so, please let me know asap I have to go on a trip to Canada and I need to watch some good movies. I already installed the video converter from nokia's website. I can be reached at gizmo my sn is : jsmith8386 anytime or gtalk:jus2much314

Betty Woo 2009-03-07 23:53

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I buckled and bought another year's subscription (though I HATE the freakin' ads between innings).

I did it to watch The Netherlands blow up the Dominican Republic's egos :-) Although, Alou, the manager is wonderful ex-Expos manager and is well-loved. But I do loves me some underdogs.

Anyway. About 28 more days to opening day and I just read that they're changing from Silverlight to some flash-based system.

How will this affect mlbviewer and the ability to watch the games on the N800 / N810 s?

Anybody?

hvacengi 2009-03-09 13:48

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Quote:

Originally Posted by Betty Woo (Post 269711)
I buckled and bought another year's subscription (though I HATE the freakin' ads between innings).

I did it to watch The Netherlands blow up the Dominican Republic's egos :-) Although, Alou, the manager is wonderful ex-Expos manager and is well-loved. But I do loves me some underdogs.

Anyway. About 28 more days to opening day and I just read that they're changing from Silverlight to some flash-based system.

How will this affect mlbviewer and the ability to watch the games on the N800 / N810 s?

Anybody?

We probably won't know how it will fully affect the system until it is implemented. Last year, when they made the switch to silverlight it had no affect on the ability to play streams (though if I recall correctly, they did need to patch the stream URL and page parsing). It may mean that you won't need this application to access the audio streams though, as prior to last season I was able to get into the gameday audio page and start the stream. Running it in their flash app will probably hurt battery life though (flash can be very resource intensive).

Quote:

Originally Posted by ehovorka (Post 269551)
New problem, they've added 600k streams. I think the base mlbviewer code has a fix for this already. Here's a patch. /usr/lib/python2.5/site-packages/MLBviewer/mbltv.py, line 274, add the following two lines.

I can make that modification (though if it is already upstream I'll just update to the newest version of mlbviewer and go from there). I'm curious, has the 600k video helped you with being able to actually view the video of the games? (assuming you applied the mod yourself already).

ehovorka 2009-03-10 01:20

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
I don't subscribe to video, just audio. The addition of the 600k broke the parsing, so I wasn't able to listen to anything. My fix isn't the 'correct' fix, it's just one to get past the problem.

blade2002 2009-03-24 21:56

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Well,
Finally got around to installing Diablo :rolleyes:

And mlbviewer is not working :(:( :( :(

I installed the 3 prog´s from the 1st page, and Mplayer in the version 1.0rc1-maemo.29.n8x0 is installed according to the application manager.

When i start mlb viewer i keep getting "error loading current day:400"

Any suggestions :confused:

ehovorka 2009-03-25 00:53

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
This is probably the problem I mentioned in post #186. If you're up for it, you can apply the changes I posted. Then again, maybe not, since I haven't had the guts to try to upgrade to Diablo.

blade2002 2009-03-25 01:06

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Quote:

Originally Posted by ehovorka (Post 274370)
This is probably the problem I mentioned in post #186. If you're up for it, you can apply the changes I posted. Then again, maybe not, since I haven't had the guts to try to upgrade to Diablo.

Thanx for the quick reply,

Do you mean the "BTW, I changed my .mlb/config file to have a time_offset=-8 for Pacific Time" in post #184.

Ahh, the Diablo update was not so bad as i thought. The few prog´s i use, seem to work ok except for mlbviewer :(

But i´m sure hvacengi will come to the rescue like usual :D :D :D

ehovorka 2009-03-25 01:28

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Oops, sorry, I meant #187 about the 600k streams.

blade2002 2009-03-25 01:52

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Quote:

Originally Posted by ehovorka (Post 274375)
Oops, sorry, I meant #187 about the 600k streams.

No prob thanx anyway

hvacengi 2009-03-31 16:09

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
OK, sorry that it took me forever to get back to you (blade) I've updated the python-mlbviewer lib on the garage page. All that I seem to have had to do is update to the most current version of the code. It looks like they changed the time zone handling just like ehovorka's code changes, and they added support for the 600k streams (I haven't implemented anything for it yet), on top of the parsing issues which caused the error 400. I haven't done extensive testing yet, installed and launched an audio stream from yesterday without issue. Check it out and see if you have any issues. If you still have problems with it let me know, and I'll hack around it tonight. I was just caught up with some other side projects for the last week or so.

blade2002 2009-03-31 20:52

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
@hvacengi

You da man :) :) :) :):) :)

Everything working like a charm again ;) ;) ;) ;)

Thanks a million :D :D :D :D :D

blowfish23 2009-04-05 00:46

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Yesterday and today mlb tv has a free preview. I tried it on my n800 but it needs a newer version of flash. I would have bought a subscription if it had worked since I am an Angel's fan living in Illinois. I know I can watch the mlb network for free on my n800 though: mms://a1503.l1086932070.c10869.g.lm....ideo&event_pk=
Does anybody know what kind of games will be on the mlb network?

ehovorka 2009-04-05 15:30

Re: [ANNOUNCE] mlbviewer_gui for maemo (Beta)
 
Thanks for the MLB Network link. It's a bit choppy on my NIT, maybe my bandwidth. Anyway, here's a link to the MLB Network Thursday night baseball schedule.

http://mlb.com/network/schedule/thur...t_baseball.jsp


All times are GMT. The time now is 22:52.

vBulletin® Version 3.8.8