LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2014, 03:16 PM   #4336
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Quote:
Originally Posted by fang2415 View Post
But that makes us feel so useful!

Code:
$ date
Sun Mar 16 19:54:52 GMT 2014
Does GMT even have a DST setting or do you have to manually adjust to GMT+1 later this month?

I just realized that the fix becomes more complicated, at least the way I have the code now, because the first conversion (ET to UTC) has to check ET for DST. The second conversion (UTC to localtime) has to check the local timezone for DST. I think it's just easier, for now anyway, to bring the time_offset= functionality back.
 
Old 03-16-2014, 04:27 PM   #4337
fang2415
Member
 
Registered: Jan 2007
Posts: 195

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
Does GMT even have a DST setting or do you have to manually adjust to GMT+1 later this month?
Nah, I never touch the thing. I just wake up on the morning it changes and the time's correct. I'm not sure whether the timezone then changes to BST (British Summer Time) or just applies it, but it works correctly.

Quote:
I just realized that the fix becomes more complicated, at least the way I have the code now, because the first conversion (ET to UTC) has to check ET for DST. The second conversion (UTC to localtime) has to check the local timezone for DST. I think it's just easier, for now anyway, to bring the time_offset= functionality back.
That woud be fine, I'm sure. As was mentioned upthread, this is a pretty easy issue to work around, especially because most of the live games are very late at night in Europe; so I (and I assume most other users) tend to watch archived games the next day, and the time doesn't matter in that case.
 
Old 03-16-2014, 06:09 PM   #4338
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by daftcat View Post
Does GMT even have a DST setting or do you have to manually adjust to GMT+1 later this month?
That's not a particularly meaningful question. Do you have to manually adjust for EDT (assuming you are on the east coast)? Most devices will surely automatically handle it for you? I do not know of any computer operating system which does not do so.

If your question is "does Western Europe have a daylight savings time", then the answer is yes. Not every country does. Much of Asia does not for example.
 
Old 03-17-2014, 03:04 AM   #4339
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by chrisVV View Post
That's not a particularly meaningful question. Do you have to manually adjust for EDT (assuming you are on the east coast)? Most devices will surely automatically handle it for you? I do not know of any computer operating system which does not do so.

If your question is "does Western Europe have a daylight savings time", then the answer is yes. Not every country does. Much of Asia does not for example.

No, I was specifically asking about GMT itself. Seeing as that's the reference point for all other timezone offsets, it would seem confusing to me to shift GMT as well. For example, Pacific, where I am, is GMT-8 during standard time and GMT-7 during DST. If GMT also changed, then I would expect it to only be GMT-7 for the few weeks where US shifts before UK. So if there's no manual intervention, then it's likely that GMT, in his case, is just an alias for another timezone that does observe DST. I'll definitely be asking for date output from fang2415 again in a couple of weeks.

In the meantime, there are routines and libraries to localize times based on timezones, etc. Time to learn some new classes. I've basically got two problems to work out here. The listings are in Eastern time so they need to be converted to UTC according to EDT offset. The second conversion to local time must be done according to the local timezone's DST rules and offset. Currently, as in just revision 590, it's a single call to time.localtime().tm_isdst. That should work correctly for the second conversion, but the first one needs to be mindful of ET DST rules rather than local DST rules. All of this is me just thinking aloud but now I know the task ahead.
 
Old 03-17-2014, 04:57 AM   #4340
fang2415
Member
 
Registered: Jan 2007
Posts: 195

Rep: Reputation: 15
GMT here is analogous to EST in NY, and BST is analogous to EDT. As far as I can recall, the British machines will automatically apply the GMT/BST changes the same way a New Yorkian machine would apply an EST/EDT change. But I'll try to post back later in the month with the details.
 
Old 03-17-2014, 06:54 AM   #4341
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by daftcat View Post
No, I was specifically asking about GMT itself. Seeing as that's the reference point for all other timezone offsets, it would seem confusing to me to shift GMT as well.
OK I see. GMT/UTC stays the same throughout the year (as does Eastern Standard Time, Central European Time, etc). Clocks advance from that to British Summer Time, as they do to Eastern Daylight Time and Central European Summer Time, and so forth. All time zone designations are deliberately non-ambiguous.
 
Old 03-18-2014, 01:53 PM   #4342
WaltH
LQ Newbie
 
Registered: Sep 2013
Posts: 24

Rep: Reputation: Disabled
Installing from scratch

Stupid question perhaps, but I am nothing if not daring. I gave mlbviewer a brief spin last year and really liked it. However, life intervened (job lost, job found, Linux distro changed), and now I sort of find myself starting from scratch. I now want to install mlbviewer on my laptop running openSUSE 13.1. Am I correct in thinking I need to start by downloading and installing the various components from the Sourceforge page and then installing svn so I can get the incremental updates that may appear throughout the season?

Also, while the Sourceforge page lists the files required, there are no installation instructions. Do I correctly guess that those would be found in a file within mlbviewer once it is downloaded and unpacked? Since I successfully installed mlbviewer last year on anothe distro, I am assuming (perhaps incorrectly) I can do so again successfully this year - also assuming I can find and/or remember my login and password for MLB.com.

Thanks for all you do.
 
Old 03-19-2014, 03:02 PM   #4343
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by WaltH View Post
Stupid question perhaps, but I am nothing if not daring. I gave mlbviewer a brief spin last year and really liked it. However, life intervened (job lost, job found, Linux distro changed), and now I sort of find myself starting from scratch. I now want to install mlbviewer on my laptop running openSUSE 13.1. Am I correct in thinking I need to start by downloading and installing the various components from the Sourceforge page and then installing svn so I can get the incremental updates that may appear throughout the season?

Also, while the Sourceforge page lists the files required, there are no installation instructions. Do I correctly guess that those would be found in a file within mlbviewer once it is downloaded and unpacked? Since I successfully installed mlbviewer last year on anothe distro, I am assuming (perhaps incorrectly) I can do so again successfully this year - also assuming I can find and/or remember my login and password for MLB.com.

Thanks for all you do.

There's no common installer and prerequisites are not automatically included or installed by mlbviewer because there are just too damn many distributions and they all manage packages and package versions differently.

Look in YaST for the dependencies I mention and install anything else those dependencies require (YaST should do that for you but I have no experience with that one.) If you want to use mlbhls ("Nexdef" streams), you'll need to install subversion, make, and gcc. You'll need subversion (svn) to pull the latest mlbhls source because their official download is too old.

Give it a go with this and let us know if you get stuck.
 
Old 03-19-2014, 10:41 PM   #4344
WaltH
LQ Newbie
 
Registered: Sep 2013
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
There's no common installer and prerequisites are not automatically included or installed by mlbviewer because there are just too damn many distributions and they all manage packages and package versions differently.

Look in YaST for the dependencies I mention and install anything else those dependencies require (YaST should do that for you but I have no experience with that one.) If you want to use mlbhls ("Nexdef" streams), you'll need to install subversion, make, and gcc. You'll need subversion (svn) to pull the latest mlbhls source because their official download is too old.

Give it a go with this and let us know if you get stuck.
Because I did not reformat my /home directory when I changed distributions, I had some bits of mlbviewer still on my computer. After installing python, rtmpdump, mplayer2, and svn, I was able to get mlbviewer working. I do still have a couple of questions, though.

At the time I originally installed, mlbviewer had one structure and directory (mlbviewer-2013). Then it went through some changes and the directory became mlb2013. Can I safely delete the mlmbviewer-2013 directory, or are there bits from there still used? Second, how important or useful is mlbhls if I do not have a premium subscription from MLB.tv? Thanks again.
 
Old 03-20-2014, 11:14 AM   #4345
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by WaltH View Post
Because I did not reformat my /home directory when I changed distributions, I had some bits of mlbviewer still on my computer. After installing python, rtmpdump, mplayer2, and svn, I was able to get mlbviewer working. I do still have a couple of questions, though.

At the time I originally installed, mlbviewer had one structure and directory (mlbviewer-2013). Then it went through some changes and the directory became mlb2013. Can I safely delete the mlmbviewer-2013 directory, or are there bits from there still used? Second, how important or useful is mlbhls if I do not have a premium subscription from MLB.tv? Thanks again.
If you cd into either one of those directories and type "svn info" and it comes back with something like "URL: http://svn.code.sf.net/p/mlbviewer/code/trunk" or "URL: svn://svn.code.sf.net/p/mlbviewer/code/trunk" in the output, you should only need to do an "svn up" to get to the latest. You can rename the directory to mlbviewer or mlb2014 if you want.

If you get "svn: '.' is not a working copy" instead, you're using a sourceforge download which is almost guaranteed to be too old. Honestly, very little has changed in 2014 so far, but that's about to change soon. MLBAM uses the previous year's offering for Spring Training and then rolls out the current year offering usually in the last week of Spring Training.

As for mlbhls, it used to be that only premium subscribers could access the "nexdef" or HLS streams. Or at least that's what I thought. However, it seems that basic subscribers can also use the HLS streams, but they just don't get access to the very top level streams (3000 kbps.)

So it just comes down to personal preference. Some find that the rtmpdump streams are more stable. Some like the HLS streams better. One thing the HLS streams can do that the rtmpdump streams cannot is adapt the bitrate to network conditions. If your network is slowing down, it adjusts to a slower bitrate until your network speeds up again.

However, this may all change soon. In the product brief for MLB.TV this year, they said something about doing away with the Nexdef plugin (which is what mlbhls emulates), so who knows whether the HLS streams will even be available this season.
 
Old 03-20-2014, 11:28 AM   #4346
WaltH
LQ Newbie
 
Registered: Sep 2013
Posts: 24

Rep: Reputation: Disabled
I ran into some of the error stuff about my version being too old, but once I found the right directory, I was able to "svn up," and I now have version 590, which is the latest - correct? It sounds like I can safely delete the older directory. My installation of openSUSE actually saved my menu links for mlbviewer and mlbvideos, so I just need to double-check which directory is actually the old one. As for mlbhls, I may wait and see what happens with Nexdef. Thanks.

Last edited by WaltH; 03-20-2014 at 02:14 PM. Reason: added missing word
 
Old 03-21-2014, 04:54 AM   #4347
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by WaltH View Post
Second, how important or useful is mlbhls if I do not have a premium subscription from MLB.tv?
There are three main things mlbhls offers you if, like me, you only have the basic subscription. First, mlbhls will give you the home team's radio commentary when watching the TV feed as an alternative to the home team's standard TV commentary - some people prefer that (with mplayer, press # to cycle through the audio feeds). Secondly, if you are watching an archived game, mlbhls will provide you with a 800kb/s stream whereas the standard feed (via rtmpdump) will not - the standard feed will only give you a 800kb/s stream when viewing live. All the other speeds (500k, 1200k, 1800k and 2400k) are available archived and live on both. Thirdly, mlbhls allows you to watch from the beginning of the game if the game is already underway when you start viewing.

Chris
 
Old 03-22-2014, 01:23 PM   #4348
WaltH
LQ Newbie
 
Registered: Sep 2013
Posts: 24

Rep: Reputation: Disabled
When I tried to install mlbhls, I got the following:
Code:
gcc -O2 mlb.c utils.c output.c -lm -lcrypto -lpthread -lconfig -lcurl -o mlbhls
mlb.c:16:23: fatal error: libconfig.h: No such file or directory
 #include <libconfig.h>
                       ^
compilation terminated.
make: *** [mlb] Error 1
I stopped there for fear of making things worse.

In addition, when I tried to check for any updates to mlbviewer, I got the following:
Code:
svn up
Skipped '.'
Summary of conflicts:
  Skipped paths: 1
It didn't seem to matter which directory of mlbviewer I was in. Also, this is with a fresh install. Any suggestions? Thanks.

Last edited by WaltH; 03-22-2014 at 01:26 PM. Reason: add additional detail
 
Old 03-22-2014, 08:07 PM   #4349
WaltH
LQ Newbie
 
Registered: Sep 2013
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
If you cd into either one of those directories and type "svn info" and it comes back with something like "URL: http://svn.code.sf.net/p/mlbviewer/code/trunk" or "URL: svn://svn.code.sf.net/p/mlbviewer/code/trunk" in the output, you should only need to do an "svn up" to get to the latest. You can rename the directory to mlbviewer or mlb2014 if you want.

If you get "svn: '.' is not a working copy" instead, you're using a sourceforge download which is almost guaranteed to be too old. Honestly, very little has changed in 2014 so far, but that's about to change soon. MLBAM uses the previous year's offering for Spring Training and then rolls out the current year offering usually in the last week of Spring Training.
I get this error: "svn: E155007: '/home/walt/mlb2013' is not a working copy" even though I downloaded and installed mlbviewer-sf-8, and that is the version number shown when I launch the application, yet I get the error I posted earlier when I try to upgrade or check for upgrades. Have there been that many changes since version eight was posted on Sourceforge? If so, is there any way for me to upgrade, or do I just need to wait for version nine? Thanks.
 
Old 03-24-2014, 05:13 PM   #4350
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by WaltH View Post
I get this error: "svn: E155007: '/home/walt/mlb2013' is not a working copy" even though I downloaded and installed mlbviewer-sf-8, and that is the version number shown when I launch the application, yet I get the error I posted earlier when I try to upgrade or check for upgrades. Have there been that many changes since version eight was posted on Sourceforge? If so, is there any way for me to upgrade, or do I just need to wait for version nine? Thanks.
SVN updates cannot be performed from Sourceforge releases. One is the stable release and the other is (potentially) not as stable. If you want to get onto the SVN releases, delete all your mlbviewer directories (except /home/walt/.mlb) and do the following:

Code:
svn checkout http://svn.code.sf.net/p/mlbviewer/code/trunk mlbviewer-svn
Once you have checked out mlbviewer-svn, you can update it as needed with "svn update".

Do not install the sourceforge download if you are using svn.

Last edited by daftcat; 03-26-2014 at 11:48 AM.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:36 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
Open Source Consulting | Domain Registration