LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-05-2012, 09:14 AM   #3661
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
video_follow no longer working?


All of a sudden this week I've been unable to access any away feeds. I've got "video_follow=chc" in my config and when I try access any archived road Cub games I get "Stream URL not found in reply. Stream may not be available yet." Same when I follow any other team that's on the road. If video_follow includes the home team, or if it only contains invalid team letters, then the home stream downloads fine.

Has something changed with the way MLBAM does away feeds? Are they still available? Or have the team codes changed or something?

I've got one device on mlbviewer v367 and another on v367 with the same problem on both... Also seems to persist for both nexdef and standard streams. Is anybody else seeing this behavior?
 
Old 05-05-2012, 09:27 AM   #3662
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
Quote:
Originally Posted by fang2415 View Post
All of a sudden this week I've been unable to access any away feeds. I've got "video_follow=chc" in my config and when I try access any archived road Cub games I get "Stream URL not found in reply. Stream may not be available yet." Same when I follow any other team that's on the road. If video_follow includes the home team, or if it only contains invalid team letters, then the home stream downloads fine.

Has something changed with the way MLBAM does away feeds? Are they still available? Or have the team codes changed or something?

I've got one device on mlbviewer v367 and another on v367 with the same problem on both... Also seems to persist for both nexdef and standard streams. Is anybody else seeing this behavior?
I just noticed that the problem also persists when video_follow is empty and "coverage=away" is set. So the problem isn't limited to the video_follow setting but seems to occur for away video streams in general. Also, "audio_follow=chc" still seems to work as expected...
 
Old 05-06-2012, 04:40 AM   #3663
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by fang2415 View Post
I just noticed that the problem also persists when video_follow is empty and "coverage=away" is set. So the problem isn't limited to the video_follow setting but seems to occur for away video streams in general. Also, "audio_follow=chc" still seems to work as expected...
I've added a couple of debug features to svn v369.

1. Successful media replies are logged to ~/.mlb/successful.xml and unsuccessful replies are logged to ~/.mlb/unsuccessful.xml. Stream not found errors are actually successful from MLBAM's perspective (e.g. the status code is 1 even though there is no url in the reply.)

2. In test directory, there is a new tool called mediaxml.py. Run test/mediaxml.py over successful.xml file to parse the reply in a more human readable format.

Code:
$ test/mediaxml.py ~/.mlb/successful.xml
It's not written yet to handle unsuccessful.xml files well. If you want it to handle unsuccessful.xml files, post them to pastebin.com so I have a larger sample size than the one or two I have encountered.

3. The 'z' key has both the media listings and the prefer listings. This is not a new feature. It's been there for a long time. But it may shed some light here. The first block enclosed in brackets after datetime() is the video listings, away first, then home. It looks like this:

Code:
[('CSC-HD', u'112', '20947185', '14-318135-2012-05-05'), ('PRIM-HD', u'119', '20947195','14-318135-2012-05-05')]
Each listing is enclosed in () and the four elements are call letters, team code, content id, and event id.

Team codes are listed in MLBviewer/mlbtv.py. But you should recognize the call letters anyway.

If you still can't figure it out with these tools, please post the .xml to pastebin.com and tell me what the video_follow setting was.

By the way, video_follow is additive. That means if chc plays cin and you have video_follow lines for both chc and cin, well, I'm not exactly sure which one would be selected. But I've run into that before where I had both bos and kc. They played each other. I wanted the kc broadcast and got the bos broadcast. I had to comment video_follow=bos out for that series.

Last edited by daftcat; 05-06-2012 at 04:42 AM.
 
Old 05-06-2012, 01:56 PM   #3664
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
For the record, I've tried a few games and it seems to be working okay for me. Please tell me specific games (day and teams) and which was configured for video_follow so I can try to reproduce this myself.
 
Old 05-07-2012, 05:38 PM   #3665
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
Hmm, streams from the past few days seem to be working for me now too. But some older games are still broken -- I just retried the Rangers, Mets, and Cubs feeds from 5/2/2012 with those teams' codes set (hitting "o" shows "video_follow = ['nym', 'tex', 'chc']"), and I get the Stream URL not found error for all of those streams.

Maybe MLBAM just did something funny with away streams for a few days and is now back to normal? Sorry that as usual I don't have time to debug this properly...
 
Old 05-13-2012, 09:50 AM   #3666
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
Ah, so now that I'm having the same problem again with the away feeds, I checked the mlb website and realized that away feeds are only supposed to be available to premium subscribers (which I am not). In fact, that seems to be the only difference between premium and regular, except for better device compatibility.

So, I guess no away feeds is expected, and they were only doing them as a freebie in April. Seems a bit cheeky of them since away feeds came as part of basic last year, but hey, it'll force me to hear some other announcers for a change!

Anyway, I think the proper fix for non-premium subscribers is simply to comment out any video_follow lines from the config. Luckily, the Cubs are in Milwaukee this weekend so I get to hear Uecker anyway!
 
Old 05-13-2012, 04:21 PM   #3667
mkomko
Member
 
Registered: Mar 2010
Posts: 67

Rep: Reputation: 0
Hey daftcat...

Last year I posted a patch for the mlbplay.py script (I noticed that the TV station call letters always came from the away team. I was able to fix it.):
http://www.linuxquestions.org/questi...ml#post4453196

Apparently you didn't get around to merging it into your code. Maybe now? Thanks in advance . I'm attaching a "new" patch with the current line numbers.
Attached Files
File Type: txt mlbplay.py.diff.txt (360 Bytes, 2 views)
 
Old 05-14-2012, 09:24 AM   #3668
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by fang2415 View Post
Ah, so now that I'm having the same problem again with the away feeds, I checked the mlb website and realized that away feeds are only supposed to be available to premium subscribers (which I am not). In fact, that seems to be the only difference between premium and regular, except for better device compatibility.

So, I guess no away feeds is expected, and they were only doing them as a freebie in April. Seems a bit cheeky of them since away feeds came as part of basic last year, but hey, it'll force me to hear some other announcers for a change!

Anyway, I think the proper fix for non-premium subscribers is simply to comment out any video_follow lines from the config. Luckily, the Cubs are in Milwaukee this weekend so I get to hear Uecker anyway!
That's odd because the grid.xml lists both home and away streams for fms_cloud (basic.) As long as the grid.xml shows both, I can't do anything in the listings page to indicate whether the stream will be available or not.

Can you reproduce one of those "Stream not available" errors with an away stream? First, remove both the xml files (successful and unsuccessful) from ~/.mlb. (rm ~/.mlb/*.xml) Then select one of these unavailable streams. Finally, whichever file gets created (I suspect it will actually be a successful.xml), post the contents to pastebin.com.

I might not be able to do anything with the listings page, but there may be some additional information in the media response xml that I can put in the error message beside just "Stream not available." It also may not be what you think it is depending on what the response xml has in it.

Thanks in advance!
 
Old 05-14-2012, 09:26 AM   #3669
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by mkomko View Post
Hey daftcat...

Last year I posted a patch for the mlbplay.py script (I noticed that the TV station call letters always came from the away team. I was able to fix it.):
http://www.linuxquestions.org/questi...ml#post4453196

Apparently you didn't get around to merging it into your code. Maybe now? Thanks in advance . I'm attaching a "new" patch with the current line numbers.
Checked in.
 
Old 05-16-2012, 09:27 AM   #3670
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
That's odd because the grid.xml lists both home and away streams for fms_cloud (basic.) As long as the grid.xml shows both, I can't do anything in the listings page to indicate whether the stream will be available or not.

Can you reproduce one of those "Stream not available" errors with an away stream? First, remove both the xml files (successful and unsuccessful) from ~/.mlb. (rm ~/.mlb/*.xml) Then select one of these unavailable streams. Finally, whichever file gets created (I suspect it will actually be a successful.xml), post the contents to pastebin.com.

I might not be able to do anything with the listings page, but there may be some additional information in the media response xml that I can put in the error message beside just "Stream not available." It also may not be what you think it is depending on what the response xml has in it.

Thanks in advance!
Sure thing. I actually got both files -- to be clear, what I did was open mlbviewer.py with video_follow set to the visiting team (chc in this case), navigate to the date, remove both xml files from .mlb/, and hit enter.

That gave me .mlb/successful.xml: http://pastebin.com/imUkS00u
And .mlb/unsuccessful.xml: http://pastebin.com/hyH1S5is

Hope that helps!
 
Old 05-18-2012, 06:17 PM   #3671
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by fang2415 View Post
Sure thing. I actually got both files -- to be clear, what I did was open mlbviewer.py with video_follow set to the visiting team (chc in this case), navigate to the date, remove both xml files from .mlb/, and hit enter.

That gave me .mlb/successful.xml: http://pastebin.com/imUkS00u
And .mlb/unsuccessful.xml: http://pastebin.com/hyH1S5is

Hope that helps!
Have you been doing any hacking? The requests are for playback-scenario = HTTP_CLOUD_MOBILE and subject = MLBMOBILE_GAMEDAY_AUDIO (and to make it worse, the content-id is for a video content type.) These are values I never request. I don't see how I would have made the request in successful.xml.

It's okay if you are hacking. I just need to know that because I can't figure out how I would arrive at these values with my untouched code.

EDIT:
Wow! Okay, I take that back. I was overwriting successful.xml because I make two requests so I've never seen the values in the first request if the second request is successful. I am indeed not requesting those values so the server is just picking them for me.

I have uploaded a patch for this in revision 371. Not sure if that's what was going on and if that will fix your specific issue but it might help to be making correct requests from the start.

Last edited by daftcat; 05-18-2012 at 07:00 PM.
 
Old 05-18-2012, 07:24 PM   #3672
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Revision 371: Split of first and second request logs and corrections to first request

I'm not sure how much use this will be to most of you but it will be of great use to me when I have to debug media request errors (Stream URL not found.) Since there are two requests per media location, I have split the log files into (un)successful-1.xml and (un)successful-2.xml.

I have also made modifications to the playbackScenario and subject fields in the first request. I'm not really sure if those are going to fix anything but it would be helpful if people of any and all subscription levels update to this revision and reassure me that I haven't broken anything with these edits.

Thanks!
 
Old 05-19-2012, 10:36 AM   #3673
fang2415
Member
 
Registered: Jan 2007
Posts: 159

Rep: Reputation: 15
Lol, yeah, I don't think I've made any changes to the versions I have running, so I'm glad you could figure out where the odd xml content was coming from. I do still get the same behavior when trying to load away streams -- if you're interested I've pastebinned the new xml files:

successful-1.xml: http://pastebin.com/wWuzzUDW
unsuccessful-2.xml: http://pastebin.com/6uAwaKAG

These are from trying to load the away stream on the Phillies-Cubs game from May 17.

Oh, and nothing else broken that I can see so far!

HTH!
 
Old 05-22-2012, 01:34 AM   #3674
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,748

Rep: Reputation: 76
Quote:
Originally Posted by fang2415 View Post
Lol, yeah, I don't think I've made any changes to the versions I have running, so I'm glad you could figure out where the odd xml content was coming from. I do still get the same behavior when trying to load away streams -- if you're interested I've pastebinned the new xml files:

successful-1.xml: http://pastebin.com/wWuzzUDW
unsuccessful-2.xml: http://pastebin.com/6uAwaKAG

These are from trying to load the away stream on the Phillies-Cubs game from May 17.

Oh, and nothing else broken that I can see so far!

HTH!
It helps. I think. Both have scenario = HTTP_CLOUD_WIRED which is a Nexdef stream. You said you are a regular, not premium subscriber. Make sure use_nexdef=0 in your ~/.mlb/config. Please retry that request without nexdef enabled.
 
Old 05-22-2012, 05:24 AM   #3675
Kady
LQ Newbie
 
Registered: May 2011
Posts: 8

Rep: Reputation: Disabled
I have been having hesitations and pauses in the stream. I am a premium subscriber with nexdef enabled. This has been going going on for some time. I have thought that it is either mplayer2 or possibly a problem with my connection to my provider, but do not know how to narrow it down. I have tried several versions of mplayer2. I am using Gentoo on three different machines and it occurs on all of them. Sometimes the stream pauses so frequently or stops altogetther that mlbviewer must be stopped and restarted. This usually seems to improve its behavior for a while. I have tried the latest mplayer2 pulled from the git at mplayer2's website and currently I am using Gentoo's mplayer2 version 2.0_p20120309. I will provide whatever information would be helpful.

Tom C
 
  


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


All times are GMT -5. The time now is 04:37 AM.

Main Menu
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