LinuxQuestions.org
Visit Jeremy's Blog.
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 10-05-2014, 07:02 PM   #4591
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Quote:
Originally Posted by cbpb View Post
I have checked out the current sourcecode (r652) from the repository: Works perfectly with international=1. Although I hadn't the time to update before the Cardinals/Dodgers game on MLBN for which I reverted to my crude fix I expect it will although work for games on MLBN. Thanks for the quick fix.

Sadly I have two times now had the problem that during a game mlbviewer stopped working and went back to the listings screen. Restarting mlbviewer didn't help and neither did disabling nexdef. This happened during the Royals/Angels game on 10/3 and the Giants/Nationals game yesterday. The Cardinals/Dodgers game at the same time worked perfectly and also in the browser the Giants/Nationals game could be watched. In the log file nothing unusual was logged. I think this was more a technical issue on mlbtv's side than an error in mlbviewer so probably not much can be done about it. I hope that it doesn't happen again.

Regards

There's not much mlbviewer can do for connection issues. You can try increasing the cache value passed to mpv/mplayer2 in video_player=.

You can also try enabling adaptive streaming (adaptive_stream=1) with nexdef and set min_bps and max_bps to a wide range like 1200 to 4500. You will definitely need a newer video player like mpv for adaptive streaming.

Other than that, if there's network issues, not a whole lot mlbviewer can do to fix those.

Anyway, I don't even get to watch these games live on mlbviewer or the website due to their pay TV wall. I listen to the audio and pull up one of the PostSeason.TV camera angles. Or I go out to a bar.
 
Old 10-05-2014, 08:51 PM   #4592
pajamian
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
International users using my patch above, please revert it and update to SVN 651:
After updating to 651, you will need to add international=1 to your ~/.mlb/config
Works great, thanks. Unfortunately I don't think I'll be enjoying it beyond today's game, unless the Angels pull a miracle. I don't suppose you can come up with a patch to help the Angels win? ;-)

Quote:
This covers both TBS and MLBN. At some point, Fox may also have a -NAT/-INT separation. When that happens, I'll be adding another *_auth_required check.
I wonder if it would be a good idea to have a screen that shows all available streams (including any that would normally get dropped) and lets you choose any one of them to play? It would be a good workaround for if this sort of thing happens again, so you don't have to rush another patch out and we don't have to wait for one to be able to watch a game.

Quote:
For the reverse, e.g. US users who want to watch the -NAT streams, I'm not exactly sure the right approach to take for that. With international, it's easy to toss out the *_auth_required listings. However, the international streams do not have a *_auth_required=N. So tossing out anything that doesn't have an *_auth_required will break regular season. Probably not a big deal now but it will be for next season or even wanting to go back and watch games from this season.
You may have to cycle through once, look for any stream with a "*_auth_required" and if it exists cycle through a second time and toss out anything without it.

Quote:
I'm considering a postseason_us= option so that will at least be descriptive of the behavior rather than just assuming international=0 or no international= option. I think I'm running out of time to work on this today so I'll revisit the US behavior tomorrow.
I'm personally not too fond of the postseason flag, config settings should remain fairly static, imo, and not have to be flipped between regular season and postseason, or even just based on which game you want to watch. Isn't there some way to detect if a game being listed / requested is a postseason game automatically rather than having to flip this config setting every time?
 
Old 10-05-2014, 08:59 PM   #4593
pajamian
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 1
Quote:
Originally Posted by pajamian View Post
I wonder if it would be a good idea to have a screen that shows all available streams... It would be a good workaround
...
You may have to cycle through once, look for any stream with a "*_auth_required" and if it exists cycle through a second time and toss out anything without it.
...
I'm personally not too fond of the postseason flag
It occurs to me that this logic of trying to select one stream and then giving up if it doesn't work may not be the best way to go, the logic seems to be getting more and more complex and is prone to failure if MLB makes any small change. A better approach might be to try to sort the streams (instead of skipping or dropping them) based on this logic, but if the first one doesn't play, automatically try the second, then the third, etc. So that way the logic will try to get the best stream first, but if it fails for some reason and there's another stream available that can play it will still play and the whole thing doesn't fall flat. It would basically just be adding some robustness to your code so that it would still work under less-than-ideal situations.
 
Old 10-06-2014, 01:00 AM   #4594
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by pajamian View Post
It occurs to me that this logic of trying to select one stream and then giving up if it doesn't work may not be the best way to go, the logic seems to be getting more and more complex and is prone to failure if MLB makes any small change. A better approach might be to try to sort the streams (instead of skipping or dropping them) based on this logic, but if the first one doesn't play, automatically try the second, then the third, etc. So that way the logic will try to get the best stream first, but if it fails for some reason and there's another stream available that can play it will still play and the whole thing doesn't fall flat. It would basically just be adding some robustness to your code so that it would still work under less-than-ideal situations.
1. There is a screen to see available media: the media detail screen, "e" key.

2. The problem with postseason arises from the fact that there are two different streams that are national broadcasts. Regular season, there's usually only one national broadcast (e.g. the game of the week or All-Star Game.)

3. While making an assumption based on the presence of *_auth_required is fairly safe, making assumptions based on the absence of that parameter is not so safe.

The postseason= and international= flags are safe for regular season too. postseason= flag basically says, "ignore blackout statuses" and international= says, "filter out pay walls." In regular season, ignoring a blackout status will still result in a blackout response. And regular season doesn't employ pay walls.

One thing I can probably implement easily is to extend mlbplay to select games based on content-id. Or call letters.

Perhaps I could make a drill-down at the game level to list and select all streams. That's more involved and may not happen until next weekend.
 
Old 10-06-2014, 04:59 AM   #4595
pajamian
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
1. There is a screen to see available media: the media detail screen, "e" key.
Yeah I know, but you can't select a different stream from there to play other than the same ones that play from the listings screen.

Quote:
3. While making an assumption based on the presence of *_auth_required is fairly safe, making assumptions based on the absence of that parameter is not so safe.
Right, but what's the alternative? I suppose you could look for the -NAT in the call letters, but as you've already said, that's a rather ugly hack. My suggestion, though was to check for the presence of the header first in a separate loop, and then to loop through again and discard streams where it's absent, but only once you know that the game in question has streams with the header present, this is a bit more logic but should be a safer approach. At any rate, this is more of a suggestion for improvement for your national viewers, since I'm international it doesn't affect me this way anyways.

Quote:
The postseason= and international= flags are safe for regular season too. postseason= flag basically says, "ignore blackout statuses" and international= says, "filter out pay walls." In regular season, ignoring a blackout status will still result in a blackout response. And regular season doesn't employ pay walls.
Ahhh, ok, I wasn't aware that postseason was safe for regular season use. I was aware that international should be safe, though, and agree that should remain a config setting. It's not so bad for postseason if it can just be left on all season. Perhaps "postseason" would then be better named, "ignore_blackout" but I guess I can understand why you wouldn't want to do that, it would give the impression that mlbViewer allows people to bypass blackout restrictions which is most certainly not the case here.

Quote:
One thing I can probably implement easily is to extend mlbplay to select games based on content-id. Or call letters.
That would help, or just any way to select alternate streams other than the one that would play by default.

Quote:
Perhaps I could make a drill-down at the game level to list and select all streams. That's more involved and may not happen until next weekend.
That's fine, I'm not expecting you do do this with any urgency. I really do appreciate everything you do for this project, it enables me to watch baseball on my old lower-powered laptop which just doesn't like the flash-player for it.
 
Old 10-06-2014, 09:25 PM   #4596
iamtheaardvark
LQ Newbie
 
Registered: Oct 2014
Posts: 18

Rep: Reputation: Disabled
nexdef streams do not work due to ssl errors

I can't thank you enough for mlbviewer -- I love it and use it on a daily basis.

I'm the maintainer of the Arch linux AUR mlbviewer package, and over there we're having some trouble watching nexdef streams. rtmp streams still work.

I actually did not diagnose the problem personally, so I'll copy the information that another Arch user provided. I did confirm identical behavior. Any help would be appreciated!

---------------

When I ran mlbhls independent of mlbplay, I found that mlbhls was not able to verify the SSL certificate, and there were a lot of these errors:

[MLB] (CURL ERR) SSL certificate problem: self signed certificate in certificate chain (URL: https://mlb-ws.mlb.com/pubajaxws/bam...ostalCode=ec1m)


Attempting to curl that URL resulted in similar errors:

curl: (6) Could not resolve host: URL
curl: (60) SSL certificate problem: self signed certificate in certificate chain


The weird thing is that netcat's CA bundle (/usr/share/ncat/ca-bundle.crt) would successfully verify, but I couldn't find any way of forcing mlbhls to use a different CA bundle.

In the end I patched the mlbhls source like so, to disable SSL verification: http://termbin.com/ih4e

It's not a solution of which I am very fond, but it's the only way I've been able to get nexdef to work.
 
Old 10-07-2014, 01:12 AM   #4597
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I'd rather implement one of two options over making assumptions on 2-pass processing or call letters:

1. Make the home/away toggle work even when there are two national broadcasts.

2. Drill down menu

I can't implement either one until there's a pay wall game in the listings again. The -NAT streams go away when archived and, not surprisingly, Fox doesn't seem to want to share the broadcast to national users tomorrow. Or at least for now, there isn't a pay wall listing to be found.
 
Old 10-09-2014, 10:40 PM   #4598
iamtheaardvark
LQ Newbie
 
Registered: Oct 2014
Posts: 18

Rep: Reputation: Disabled
Hey, just wondering if you saw my previous post about SSL errors with nexdef streams. Not trying to nag, but it took a while for the post to show up, so you might not have seen it. It would be great to get nexdef working for the LCS!
 
Old 10-09-2014, 11:02 PM   #4599
pajamian
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 1
Quote:
Originally Posted by daftcat View Post
I'd rather implement one of two options over making assumptions on 2-pass processing or call letters:

1. Make the home/away toggle work even when there are two national broadcasts.

2. Drill down menu

I can't implement either one until there's a pay wall game in the listings again. The -NAT streams go away when archived and, not surprisingly, Fox doesn't seem to want to share the broadcast to national users tomorrow. Or at least for now, there isn't a pay wall listing to be found.
That's cool. I'm not watching any more because the Angels are out now, but if there's a specific game you'd like me to test from overseas, preferably an evening game, just let me know and if I can I'll check it really quick for you to see if it works.
 
Old 10-10-2014, 01:06 AM   #4600
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by iamtheaardvark View Post
Hey, just wondering if you saw my previous post about SSL errors with nexdef streams. Not trying to nag, but it took a while for the post to show up, so you might not have seen it. It would be great to get nexdef working for the LCS!
I cannot reproduce it. If there are specific games that are showing this problem, please tell me the date and game and the stream (home/away, or in the case of LCS, whatever the call letters are from the media detail screen ('e' key.)

Also, I got a note from the mlbhls developer earlier this season that he's not going to support it anymore. He's got a different program he's writing that looks like overkill for mlbviewer.

Finally, if it's only a live stream issue, I cannot do anything to debug that because I'm blacked out in every possible way they can think of from watching live games: regional for the NLCS, US for both series, and they don't support my cable provider so I can't even use their pay wall workaround.
 
Old 10-10-2014, 09:15 AM   #4601
iamtheaardvark
LQ Newbie
 
Registered: Oct 2014
Posts: 18

Rep: Reputation: Disabled
It's all games, live and archived. This cropped up a few weeks ago, around the end of September. I thought it might be related to Arch's curl package updating, but I downgraded to an earlier version and it didn't help.

Alright, so I guess this is really about mlbhls, not mlbviewer, and it appears to be Arch-specific, so maybe this is not the right place. Perhaps if I ask the mlbhls dev directly, he would be willing to attempt a fix? Is it still the email listed on the Google code project page?
 
Old 10-11-2014, 12:33 AM   #4602
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by iamtheaardvark View Post
It's all games, live and archived. This cropped up a few weeks ago, around the end of September. I thought it might be related to Arch's curl package updating, but I downgraded to an earlier version and it didn't help.

Alright, so I guess this is really about mlbhls, not mlbviewer, and it appears to be Arch-specific, so maybe this is not the right place. Perhaps if I ask the mlbhls dev directly, he would be willing to attempt a fix? Is it still the email listed on the Google code project page?
mlbhls uses libcurl. So if libcurl is not correct, mlbhls won't be correct either. When you downgraded curl, did you also downgrade libcurl?

I am guessing this is an Arch-specific issue since this is the first I am hearing of it. I have personally verified this unreproducible on Debian and Linux Mint (which is an Ubuntu variant.) And last week it was verified on OpenBSD.

While you are trying to figure it out on Arch, you can download the virtual machine version here:
http://sourceforge.net/projects/mlbv...files/mlblive/

Download all the files (except the .bat) and run the .sh file to create the virtual machine and attach the ISO to the cdrom virtual device in VirtualBox.

Once you boot, you can set user= and pass= in config file. You should also do an SVN up in the mlbviewer directory since I am not sure what revision the live version uses. I previously used the VM version all the time when I would watch games at work. It was easier than trying to install it with Cygwin.

You can read the README at the link I posted while you are waiting for the ISO to download.
 
Old 10-11-2014, 01:39 PM   #4603
iamtheaardvark
LQ Newbie
 
Registered: Oct 2014
Posts: 18

Rep: Reputation: Disabled
curl/libcurl are the same package in Arch.

I'm becoming increasingly convinced that this is an issue with Arch's ca-certificates. There were some upgrade issues right around when this problem began, and maybe something is still broken. I'll continue to search for a solution.
 
Old 10-11-2014, 11:25 PM   #4604
pajamian
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 1
Quote:
Originally Posted by iamtheaardvark View Post
curl/libcurl are the same package in Arch.

I'm becoming increasingly convinced that this is an issue with Arch's ca-certificates. There were some upgrade issues right around when this problem began, and maybe something is still broken. I'll continue to search for a solution.
libcurl is probably built against nss. Check to see when nss was updated and try reverting that.
 
Old 10-12-2014, 01:12 PM   #4605
iamtheaardvark
LQ Newbie
 
Registered: Oct 2014
Posts: 18

Rep: Reputation: Disabled
OK, I was able to get it working by downgrading curl, nss, and ca-certs to their versions from around 24 Sept. It appears to be related to this: https://lists.archlinux.org/pipermai...st/037057.html
 
  


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

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

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