LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-19-2012, 11:30 PM   #3631
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16

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 11:38 PM. Reason: add log file
 
Old 04-20-2012, 05:04 AM   #3632
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by mchapter View Post
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.
 
Old 04-20-2012, 01:50 PM   #3633
chrisVV
Member
 
Registered: Aug 2010
Posts: 110

Rep: Reputation: 1
Quote:
Originally Posted by rjwood View Post
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).
 
Old 04-20-2012, 07:23 PM   #3634
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by chrisVV View Post
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.
 
Old 04-21-2012, 10:27 PM   #3635
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
gryghost, do I need to go through the process of attaining a new string each time I employ mlbviewer for live games?
 
Old 04-22-2012, 03:54 PM   #3636
thegryghost
LQ Newbie
 
Registered: Mar 2009
Distribution: Gentoo
Posts: 28

Rep: Reputation: 1
Quote:
Originally Posted by rjwood View Post
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.
 
Old 04-22-2012, 11:02 PM   #3637
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by thegryghost View Post
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!
 
Old 04-23-2012, 09:28 AM   #3638
kermitfan22
LQ Newbie
 
Registered: Apr 2012
Distribution: Ubuntu or mythbuntu
Posts: 7

Rep: Reputation: Disabled
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 10:53 AM.
 
Old 04-26-2012, 12:48 AM   #3639
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by kermitfan22 View Post
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.
 
Old 04-26-2012, 12:57 AM   #3640
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by rjwood View Post
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.
 
Old 04-26-2012, 01:18 AM   #3641
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by duhctaep View Post
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.
 
Old 04-26-2012, 01:21 AM   #3642
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
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.

Last edited by daftcat; 04-26-2012 at 01:22 AM.
 
Old 04-26-2012, 02:21 PM   #3643
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
I'm thinking I might be doing something incorrectly. So to be sure, here's what I'm doing:
I open up a terminal and type
Code:
python mlbviewer.py
which brings up the listings.

Then I open up another terminal and type
Code:
cd mlbhls
mplayer -demuxer lavf -vo vdpau -vc ffh264vdpau output.ts
Is all that correct?

Last edited by rjwood; 04-26-2012 at 02:22 PM.
 
Old 04-27-2012, 12:56 AM   #3644
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by rjwood View Post
I'm thinking I might be doing something incorrectly. So to be sure, here's what I'm doing:
I open up a terminal and type
Code:
python mlbviewer.py
which brings up the listings.

Then I open up another terminal and type
Code:
cd mlbhls
mplayer -demuxer lavf -vo vdpau -vc ffh264vdpau output.ts
Is all that correct?
Depends. What's your video_player= setting in ~/.mlb/config?

If you set your video_player= string as:

Code:
video_player=mplayer -demuxer lavf -vo vpdau -vc ffh264vdpau
Then you shouldn't need the second terminal.

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:

Quote:
aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDEyLzA0LzI2L01MQl9HQU1FX1ZJREVPX0tDQUNMRV9IT01F XzIwMTIwNDI2L21hc3Rlcl93aXJlZC5tM3U4fDVLUEhMbWxwa2UzeXc2MGlNUlVRdWc2cm4rOD18cGxheWJhY2s9SFRUUF9DTE9V RF9XSVJFRCZjb250ZW50SWQ9MjA3NzUwMDUmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMzE4MDEzLTIwMTItMDQtMjYm aXBpZD0xMjI2MzUxNyZzZXNzaW9uS2V5PVd0TmlDMmlidk5PU2dhSUhmdXRQQjdMQ0FFOCUzRA==
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:

Code:
mlbhls -B aHR0cDovL21sYmxpdmUtYWtjLm1sYi5jb20vbHMwNC9tbGJhbS8yMDEyLzA0LzI2L01MQl9HQU1FX1ZJREVPX0tDQUNMRV9IT01FXzIwMTIwNDI2L21hc3Rlcl93aXJlZC5tM3U4fDVLUEhMbWxwa2UzeXc2MGlNUlVRdWc2cm4rOD18cGxheWJhY2s9SFRUUF9DTE9VRF9XSVJFRCZjb250ZW50SWQ9MjA3NzUwMDUmYXBwQWNjb3VudE5hbWU9bWxiJmV2ZW50SWQ9MTQtMzE4MDEzLTIwMTItMDQtMjYmaXBpZD0xMjI2MzUxNyZzZXNzaW9uS2V5PVd0TmlDMmlidk5PU2dhSUhmdXRQQjdMQ0FFOCUzRA== -b 1200000 -s 1200000 -m 1200000 -L -F 12:00:02 -o - | mplayer -demuxer lavf -vo vpdau -vc ffh264vdpau -
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.
 
Old 04-27-2012, 02:52 AM   #3645
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Here's what my config file looks like
Quote:
show_player_command=0

live_from_start=True

favorite_color=cyan

speed=1800

adaptive_stream=True

postseason=0

video_follow=

video_player=video_player=mplayer -cache 2048 -really-quiet

use_librtmp=0

show_inning_frames=1

min_bps=1800000

x_display=

audio_player=mplayer -cache 64 -really-quiet

flash_browser=firefox %s

max_bps=1800000

bg_color=xterm

coverage=home

audio_follow=

top_plays_player=

favorite=

use_color=0

use_nexdef=True

debug=0

time_offset=

blackout=

Last edited by rjwood; 04-27-2012 at 02:54 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 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


All times are GMT -5. The time now is 10:26 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