Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having difficulty getting live games (premium account). I get the "stream may not be available yet" message.
When I try to watch archived games mplayer2 screen is very small and freezes after a few seconds.
Any help would be greatly appreciated.
Thank you in advance.
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
LIRC not initialized
DEBUG>> home coverage = ari away coverage = atl
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = ['']
DEBUG>> prefer[video] = ('FSA-HD', u'109', '20601819', '14-317913-2012-04-19')
DEBUG>> prefer[audio] = ('KTAR', u'109', '20601823', '14-317913-2012-04-19')
2012-04-19 23:06:05.131931
DEBUG>> home coverage = ari away coverage = atl
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = ['']
DEBUG>> prefer[video] = ('FSA-HD', u'109', '20601819', '14-317913-2012-04-19')
DEBUG>> prefer[audio] = ('KTAR', u'109', '20601823', '14-317913-2012-04-19')
2012-04-19 23:06:11.725000
session-key from cookie file: TpiRoYV3vlfYWqmY7D7hpTCk4kk%3D
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
LIRC not initialized
DEBUG>> home coverage = ari away coverage = atl
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = ['']
DEBUG>> prefer[video] = ('FSA-HD', u'109', '20601819', '14-317913-2012-04-19')
DEBUG>> prefer[audio] = ('KTAR', u'109', '20601823', '14-317913-2012-04-19')
2012-04-19 23:08:51.464597
session-key from cookie file: TpiRoYV3vlfYWqmY7D7hpTCk4kk%3D
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
LIRC not initialized
DEBUG>> home coverage = ari away coverage = atl
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = ['']
DEBUG>> prefer[video] = ('FSA-HD', u'109', '20601819', '14-317913-2012-04-19')
DEBUG>> prefer[audio] = ('KTAR', u'109', '20601823', '14-317913-2012-04-19')
2012-04-19 23:17:33.143204
DEBUG>> home coverage = ari away coverage = atl
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = ['']
DEBUG>> prefer[video] = ('FSA-HD', u'109', '20601819', '14-317913-2012-04-19')
DEBUG>> prefer[audio] = ('KTAR', u'109', '20601823', '14-317913-2012-04-19')
2012-04-19 23:17:39.567089
DEBUG>> home coverage = mia away coverage = chc
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = ['']
DEBUG>> prefer[video] = ('FSFL-HD', u'146', '20596901', '14-317915-2012-04-19')
DEBUG>> prefer[audio] = ('WAXY', u'146', '20596907', '14-317915-2012-04-19')
2012-04-19 23:17:52.197208
DEBUG>> URL received: aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDEyLzA0LzE5L01MQl9HQU1FX1ZJREVPX0NITk1JQV9IT01F XzIwMTIwNDE5L21hc3Rlcl93aXJlZC5tM3U4fFVzNEZXb2RJK2hvZm50WkpMa3loRFBGSHNmZz18cGxheWJhY2s9SFRUUF9DTE9V RF9XSVJFRCZjb250ZW50SWQ9MjA1OTY5MDEmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMzE3OTE1LTIwMTItMDQtMTkm aXBpZD0yMzgwNzY4OSZzZXNzaW9uS2V5PVRwaVJvWVYzdmxmWVdxbVk3RDdocFRDazRrayUzRA==
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
WARNING:root:Could not connect to LIRC, retrying: [Errno 2] No such file or directory
LIRC not initialized
DEBUG>> home coverage = mil away coverage = la
DEBUG>> checking for audio_follow = ['']
DEBUG>> checking for video_follow = ['']
DEBUG>> prefer[video] = ('FSWI-HD', u'158', '20597555', '14-317919-2012-04-19')
DEBUG>> prefer[audio] = ('WTMJ', u'158', '20597635', '14-317919-2012-04-19')
2012-04-19 23:19:41.628998
DEBUG>> URL received: aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDEyLzA0LzE5L01MQl9HQU1FX1ZJREVPX0xBTk1JTF9IT01F XzIwMTIwNDE5L21hc3Rlcl93aXJlZC5tM3U4fGJURjI4SmFDa0I2VnAwdFpRNTN0MEo1T0JIaz18cGxheWJhY2s9SFRUUF9DTE9V RF9XSVJFRCZjb250ZW50SWQ9MjA1OTc1NTUmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMzE3OTE5LTIwMTItMDQtMTkm aXBpZD0yMzgwNzY4OSZzZXNzaW9uS2V5PVRwaVJvWVYzdmxmWVdxbVk3RDdocFRDazRrayUzRA==
Last edited by rjwood; 04-19-2012 at 10:38 PM.
Reason: add log file
Has anyone had any trouble seeking using mplayer2 on mlbhls files? I can usually seek a couple times at the beginning and then get random length seeks, usually past the end of the stream.
I also am trying vlc, but vlc shows no video or audio.. perhaps my player command is wrong. Any examples or suggestions would be great, I'm on ubuntu 12.04 using a compiled vlc or the repo version.
You can use test/nexdefdl.py to download a sample file (keep it relatively small) and submit a bug report with the mplayer2 team if seeking is important to you.
When I try to watch archived games mplayer2 screen is very small and freezes after a few seconds.
Assuming you are using mlbhls, if you include the options '-lavdopts threads=1' (without the quotes) in your mplayer2 command line, that will probably deal with the issue: that was necessary for me to get automatic speed selection working. Alternatively, disable automatic speed selection by having the same value for minbps and maxbps (say, 1200000).
Assuming you are using mlbhls, if you include the options '-lavdopts threads=1' (without the quotes) in your mplayer2 command line, that will probably deal with the issue: that was necessary for me to get automatic speed selection working. Alternatively, disable automatic speed selection by having the same value for minbps and maxbps (say, 1200000).
Thanks, Chris, that fixed the archived game problem. Now all I need to find out is how to get the live games working.
gryghost, do I need to go through the process of attaining a new string each time I employ mlbviewer for live games?
You can probably re-use the same base64 URL but keep an out on the mlbhls output, it'll let you know if CURL has any problems fetching due authorization (error 40 ot 41 I think?). If so, you'll need mlbviewer to re-auth everything.
You can probably re-use the same base64 URL but keep an out on the mlbhls output, it'll let you know if CURL has any problems fetching due authorization (error 40 ot 41 I think?). If so, you'll need mlbviewer to re-auth everything.
I appreciate all the work you put into this. How do I reuse it? Is it stored somewhere? Sorry!
Hi! Multi year user, and very thankful. I use it to port my games into mythtv.
One problem i have been having is the dump crashing part way through... this would be less of a problem if it would resume, but when i select the game again, it over writes tge file from the beginning. Any thoughts on where to look? Yes, i did download the fresh svn last month.
I'm using mythbuntu 11.10. I have tried both the viewer and the player with the same result. I am not getting HD. Just dumping it to 2400 .mp4
Last edited by kermitfan22; 04-23-2012 at 09:53 AM.
Hi! Multi year user, and very thankful. I use it to port my games into mythtv.
One problem i have been having is the dump crashing part way through... this would be less of a problem if it would resume, but when i select the game again, it over writes tge file from the beginning. Any thoughts on where to look? Yes, i did download the fresh svn last month.
I'm using mythbuntu 11.10. I have tried both the viewer and the player with the same result. I am not getting HD. Just dumping it to 2400 .mp4
Dumping is unsupported. Yep. It's very much possible (kinda), but I just don't wish to support it. It seems that rtmpdump, for whatever reason, chokes after so much of a game is downloaded. BUT it can usually play a game all the way through if you configure your mplayer string to not use -dumpstream. If you really want this fixed, I suggest you buy the librtmp/rtmpdump developer a month of MLB.TV and have him look into it. Either mlbplay or test/mlbgamedl.py can be used for easy debugging without having to go through the curses gui.
By the way, recording the game may fall under a grey area with the Terms Of Service for MLB.TV.
I'm having difficulty getting live games (premium account). I get the "stream may not be available yet" message.
When I try to watch archived games mplayer2 screen is very small and freezes after a few seconds.
Any help would be greatly appreciated.
Thank you in advance.
Please don't post log files here. It's easier to read them on pastebin.com.
I have checked in changes in svn revision 367 that will write ~/.mlb/unsuccessful.xml if the game url cannot be found.
Next time you encounter that error with live games, please post the contents of ~/.mlb/unsuccessful.xml to pastebin.com and post the pastebin url here.
I wonder...what timezone are you in? Are you certain that mlbviewer is calculating the timezone offset correctly? If I'm off by an hour because of daylight saving time, you very well could be requesting a game an hour too early or an hour too late.
No problem, work is heating up for me a little, too. I'll have more time for looking at the test scripts after next week.
Yes, the same credentials work fine on the web interface. I have a standard subscription (video, but not premium).
Okay, I copied the ERRORLOG dump to the point where it fails to find a url in the xml. I put the reply from 2012-04-08 bos-det away nexdef 300k up at http://pastebin.com/ap2ZJBVf . I have been able to grab the 04-13, 04-14, and 04-15 redsox games, but not dates before. Something seems to have changed on the mlb end, but I have no idea what it could be. At least it looks like I (and anyone with my problem) will likely get the rest of the season.
I see <playback_scenario>HTTP_CLOUD_WIRED</playback_scenario> in the response you posted to pastebin.com. That's premium aka NEXDEF. You said you are only a standard subscriber. Make sure you have use_nexdef=0 in your config file and also the speed/nexdef indicator shows a bitrate like [1200K] rather than [NEXDF]. You can toggle nexdef mode on/off in mlbviewer using the 'n' key.
You want to see a playback_scenario of FMS_CLOUD in your responses which is standard video, not premium. I have added the dump of ~/.mlb/unsuccessful.xml when game_url is not found in the reply to the latest SVN revision. If you are certain you are not using nexdef mode, check the unsuccessful.xml the next time you encounter the game url not found error and see whether the response says HTTP_CLOUD_WIRED or FMS_CLOUD. There's always a possibility that this use_nexdef flag is not getting toggled correctly but I don't know why this bug would pop up now since that code has been in use for years now.
SVN revision 367: additional log for game url not found errors
For those of you encountering "Stream URL not found in reply. Stream may not be available yet." errors, I have added code that will dump the response from MLB.TV to ~/.mlb/unsuccessful.xml. When you encounter that error, please post the contents of that file to http://pastebin.com and post the pastebin url here. Please post the entire content of that file and not just parts you think are relevant. Please do NOT post log files here directly. It's easier to read them on pastebin.com.
mlbhls can stream to stdout and mplayer can play from stdin. So the default behavior of mlbviewer is to string those two commands together in a pipeline.
In other words, the selecting a listing for a nexdef game should return a base64 string like:
The mlbviewer code stores that internally as the stream url. Then it prepares the mlbhls command based on your settings max_bps, min_bps, adaptive_stream, whether it's a live or archived stream, and whether you want to watch a live game from the start of the broadcast or the current position. It takes all those settings and produces an mlbhls command string with the output to stdout. Then another piece of code takes your video_player setting and creates the final command which might look something like this:
The only thing you need to do is leave off the '-' (or any filename) at the end of the mplayer string when you put it in the video_player= setting. mlbviewer will handle that for you.
So try the video_player= setting I gave you above and tell me if that fixes it (without having to use a second terminal.) Also make sure debug=0 in your config file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.