Fedora This forum is for the discussion of the Fedora Project.
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
04-28-2009, 02:21 PM
#1486
mlbviewer Maintainer
Registered: Apr 2008
Posts: 1,246
Rep:
Quote:
Originally Posted by
jeremybub
As a non-nexdef user, do live games work? (with rtmpdump I assume) and if they do, are there any problems with them. You seemed to say that they were not working well, but that would imply that they are at least working. If they are working, how do you get them up, just the normal way with mlbviewer.py?
Consider live games not working for rtmpdump.
Rtmpdump can download the stream but mplayer can't play it smoothly. That is, it plays about 1 frame every 5 seconds.
Archived games work well, though.
I would recommend upgrading to premium or using the flash player for live games. I would recommend upgrading to premium anyway because it's beautiful on Linux with mlbviewer. Most of the development work will be towards supporting premium/nexdef users unless a better solution for rtmp comes along.
04-28-2009, 04:15 PM
#1487
LQ Newbie
Registered: Apr 2009
Posts: 17
Rep:
So I SVN'ed up to the latest revision to display today's listings correctly, and now mlbdvr can't find any streams for this poor non-premium soul.
Here's what I think are the relevant parts of my log file with debug enabled.
Code:
(user-verified-media-item){
media-item =
(media-item){
type = "video"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_lg"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MLB_FLASH_400K_STREAM"
has-synched-data = "false"
preview-url = "http://mediadownloads.mlb.com/mlbam/preview/slnatl_400_preview.mp4"
innings-index[] =
"http://mlb.mlb.com/mlb/mmls2009/244480.xml",
cdn = "AKAMAI_FLASH_STREAM_ONDEMAND"
sequence = 1
duration = None
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
(user-verified-media-item){
media-item =
(media-item){
type = "video"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_lg"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MLB_FLASH_600K_STREAM"
has-synched-data = "false"
preview-url = "http://mediadownloads.mlb.com/mlbam/preview/slnatl_600_preview.mp4"
innings-index[] =
"http://mlb.mlb.com/mlb/mmls2009/244480.xml",
cdn = "AKAMAI_FLASH_STREAM_ONDEMAND"
sequence = 1
duration = None
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
(user-verified-media-item){
media-item =
(media-item){
type = "video"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_lg"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MLB_FLASH_164K_STREAM"
has-synched-data = "false"
preview-url = "http://mediadownloads.mlb.com/mlbam/preview/slnatl_164_preview.mp4"
innings-index[] =
"http://mlb.mlb.com/mlb/mmls2009/244480.xml",
cdn = "AKAMAI_FLASH_STREAM_ONDEMAND"
sequence = 1
duration = None
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
domain-specific-attributes =
(domain-specific-attributes){
domain-attribute[] =
property:domain-attribute = "144",
property:domain-attribute = "out-of-market",
property:domain-attribute = "PTV-HD",
property:domain-attribute = "144",
property:domain-attribute = "mlb_mp4_epg",
property:domain-attribute = "MLBTV_MP_4",
property:domain-attribute = "LIVE_EVENT_COVERAGE",
property:domain-attribute = "MLBTV",
property:domain-attribute = "144",
property:domain-attribute = "138",
property:domain-attribute = "2009/04/27/slnmlb-atlmlb-1",
property:domain-attribute = "2009-04-27",
property:domain-attribute = "14-244480-2009-04-27",
property:domain-attribute = "244480",
property:domain-attribute = "138",
}
},
(user-verified-content){
content-id = 4313831
type = "audio"
user-verified-media-item[] =
(user-verified-media-item){
media-item =
(media-item){
type = "audio"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_ga"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MLB_FMS_AUDIO_32K_STREAM"
has-synched-data = "false"
preview-url = None
innings-index[] = <empty>
cdn = "AKAMAI_FLASH_STREAM_ONDEMAND"
sequence = None
duration = "03:47:54"
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
(user-verified-media-item){
media-item =
(media-item){
type = "audio"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_ga"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MOBILE_AMR_AUDIO_3GPP_STREAM"
has-synched-data = "false"
preview-url = None
innings-index[] = <empty>
cdn = None
sequence = None
duration = "03:47:54"
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
(user-verified-media-item){
media-item =
(media-item){
type = "audio"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_ga"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MOBILE_IPHONE_AUDIO_STREAM"
has-synched-data = "false"
preview-url = None
innings-index[] = <empty>
cdn = None
sequence = None
duration = "03:47:54"
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
(user-verified-media-item){
media-item =
(media-item){
type = "audio"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_ga"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MOBILE_WMA_AUDIO_16K_STREAM"
has-synched-data = "false"
preview-url = None
innings-index[] = <empty>
cdn = "AKAMAI_WINDOWSMEDIA_STREAM"
sequence = None
duration = "03:47:54"
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
domain-specific-attributes =
(domain-specific-attributes){
domain-attribute[] =
property:domain-attribute = "138",
property:domain-attribute = "out-of-market",
property:domain-attribute = "KTRS",
property:domain-attribute = "144",
property:domain-attribute = "MLBMOBILE_GAMEDAY_AUDIO",
property:domain-attribute = "MLBCOM_GAMEDAY_AUDIO",
property:domain-attribute = "mlb_mp4_epg",
property:domain-attribute = "MLBTV_MP_4",
property:domain-attribute = "LIVE_EVENT_COVERAGE",
property:domain-attribute = "144",
property:domain-attribute = "138",
property:domain-attribute = "2009/04/27/slnmlb-atlmlb-1",
property:domain-attribute = "2009-04-27",
property:domain-attribute = "14-244480-2009-04-27",
property:domain-attribute = "244480",
property:domain-attribute = "138",
}
},
(user-verified-content){
content-id = 4313829
type = "audio"
user-verified-media-item[] =
(user-verified-media-item){
media-item =
(media-item){
type = "audio"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_ga"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MLB_FMS_AUDIO_32K_STREAM"
has-synched-data = "false"
preview-url = None
innings-index[] = <empty>
cdn = "AKAMAI_FLASH_STREAM_ONDEMAND"
sequence = None
duration = "04:16:12"
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
(user-verified-media-item){
media-item =
(media-item){
type = "audio"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_ga"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MOBILE_AMR_AUDIO_3GPP_STREAM"
has-synched-data = "false"
preview-url = None
innings-index[] = <empty>
cdn = None
sequence = None
duration = "04:16:12"
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
(user-verified-media-item){
media-item =
(media-item){
type = "audio"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_ga"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MOBILE_IPHONE_AUDIO_STREAM"
has-synched-data = "false"
preview-url = None
innings-index[] = <empty>
cdn = None
sequence = None
duration = "04:16:12"
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
(user-verified-media-item){
media-item =
(media-item){
type = "audio"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_ga"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MOBILE_WMA_AUDIO_16K_STREAM"
has-synched-data = "false"
preview-url = None
innings-index[] = <empty>
cdn = "AKAMAI_WINDOWSMEDIA_STREAM"
sequence = None
duration = "04:16:12"
}
url = ""
auth-status =
(auth-status){
loginRequiredStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
domain-specific-attributes =
(domain-specific-attributes){
domain-attribute[] =
property:domain-attribute = "144",
property:domain-attribute = "out-of-market",
property:domain-attribute = "144",
property:domain-attribute = "MLBMOBILE_GAMEDAY_AUDIO",
property:domain-attribute = "MLBCOM_GAMEDAY_AUDIO",
property:domain-attribute = "mlb_mp4_epg",
property:domain-attribute = "MLBTV_MP_4",
property:domain-attribute = "LIVE_EVENT_COVERAGE",
property:domain-attribute = "144",
property:domain-attribute = "138",
property:domain-attribute = "2009/04/27/slnmlb-atlmlb-1",
property:domain-attribute = "2009-04-27",
property:domain-attribute = "14-244480-2009-04-27",
property:domain-attribute = "244480",
property:domain-attribute = "138",
property:domain-attribute = "WGST",
}
},
domain-specific-attributes = ""
},
entitlements[] =
"",
status-code = "1"
}
DEBUG>> soap event-id:14-244480-2009-04-27
DEBUG>> soap content-id:4313825
DEBUG>> writing soap response
(reply){
user-verified-event[] =
(UserVerifiedEvent){
event-id = "14-244480-2009-04-27"
user-verified-content[] =
(user-verified-content){
content-id = 4313825
type = "video"
user-verified-media-item[] =
(user-verified-media-item){
media-item =
(media-item){
type = "video"
state = "MEDIA_ARCHIVE"
cat-code = "mlb_media_mlb_lg"
login-required = "true"
auth-required = "true"
blackout-keywords = ""
playback-scenario = "MLB_FLASH_800K_STREAM"
has-synched-data = "false"
preview-url = "http://mediadownloads.mlb.com/mlbam/preview/slnatl_800_preview.mp4"
innings-index[] =
"http://mlb.mlb.com/mlb/mmls2009/244480.xml",
cdn = "AKAMAI_FLASH_STREAM_ONDEMAND"
sequence = 1
duration = None
}
url = "rtmp://cp65670.edgefcs.net/ondemand/mp4:secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4?aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb"
auth-status =
(auth-status){
successStatus = ""
}
blackout-status =
(blackout-status){
successStatus = ""
}
},
domain-specific-attributes =
(domain-specific-attributes){
domain-attribute[] =
property:domain-attribute = "144",
property:domain-attribute = "out-of-market",
property:domain-attribute = "PTV-HD",
property:domain-attribute = "144",
property:domain-attribute = "mlb_mp4_epg",
property:domain-attribute = "MLBTV_MP_4",
property:domain-attribute = "LIVE_EVENT_COVERAGE",
property:domain-attribute = "MLBTV",
property:domain-attribute = "144",
property:domain-attribute = "138",
property:domain-attribute = "2009/04/27/slnmlb-atlmlb-1",
property:domain-attribute = "2009-04-27",
property:domain-attribute = "14-244480-2009-04-27",
property:domain-attribute = "244480",
property:domain-attribute = "138",
}
},
domain-specific-attributes = ""
},
entitlements[] =
(Entitlements){
entitlement[] =
"MLBVIDEO",
},
session-key = "IQ/+pL/+jb0+uaJ9sBOCrHYW2xM="
status-code = "1"
}DEBUG>> sub_path = None
DEBUG>> play_path = mp4:secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4?aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb
DEBUG>> app = ondemand?_fcs_vhost=cp65670.edgefcs.net&akmfv=1.6aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb
DEBUG>> soap url =
rtmp://cp65670.edgefcs.net/ondemand/mp4:secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4?aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb
DEBUG>> soap url =
rtmp://cp65670.edgefcs.net/ondemand/mp4:secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4?aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb
DEBUG>> rec_cmd_str
rtmpdump -f "LNX 10,0,22,87" -o /home/kalif/mlbdvr_games/14-244480-2009-04-27.mp4 -r "rtmp://cp65670.edgefcs.net/ondemand/mp4:secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4?aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb" -y "mp4:secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4?aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb" -a "ondemand?_fcs_vhost=cp65670.edgefcs.net&akmfv=1.6aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb" -s http://mlb.mlb.com/flash/mediaplayer/v4/RC91/MediaPlayer4.swf?v=4 -t "http://198.63.194.116:1935/ondemand?_fcs_vhost=cp65670.edgefcs.net&akmfv=1.6aifp=v0004&auth=da.a2dKafaUcEajdMcbc_d4dpbPcFcwdycd-bj916U-O-zxqozjHsBnuGIp-l9m8mck7l8l9m9l9jamdj7jilajcmil6l6mgmbk4le&slist=secure/mlbam/2009/04/27/mlbtv_slnatl_home_800k.mp4&ct5=28-Apr-09&ct6=75.50.51.8&ct7=4313825:MLB_FLASH_800K_STREAM&ct8=1&ct1=mlb&ct3=21220112&ct4=mlb" --resume
Any clues?
04-28-2009, 05:35 PM
#1488
Member
Registered: Jan 2003
Posts: 283
Rep:
Something broke in r172.
For live and archived games, mlbviewer.py gives this error on selection:
Code:
An error occurred in locating the game stream:
Requested stream is not available.
Requested coverage association: 145
Available content list =
[]
I enabled debug and it died with this:
Code:
Traceback (most recent call last):
File "./mlbviewer.py", line 1173, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "./mlbviewer.py", line 960, in mainloop
u = g.soapurl()
File "/home/theophile/mlbviewer/MLBviewer/mlbtv.py", line 1140, in soapurl
raise Exception,self.error_str
Exception: Requested stream is not available.
Requested coverage association: 136
Available content list =
[]
Hope that makes sense to you.
04-28-2009, 06:01 PM
#1489
Member
Registered: Mar 2009
Posts: 39
Rep:
Quote:
Originally Posted by
Theophile
Something broke in r172.
For live and archived games, mlbviewer.py gives this error on selection:
[code]An error occurred in locating the game stream:
Requested stream is not available.
Requested coverage association: 145
Available content list =
[]
I've got the same error message.
However next-def is down too, so it might be an error on MLB.tv end.
04-28-2009, 06:16 PM
#1490
mlbviewer Maintainer
Registered: Apr 2008
Posts: 1,246
Rep:
Sorry guys. I had the same code working just fine last night and this morning.
Can't really do anything about it right now. If it can wait a few hours, I'll look at later tonight after work. If you need your fix, try one of the debug tools in the test directory.
04-28-2009, 07:37 PM
#1491
Member
Registered: Jan 2003
Posts: 283
Rep:
Now live games are giving an uncaught error. Trying to use nexdef.py gives this:
Code:
http://local.swarmcast.net:8001/protected/content/adaptive-live/describe/base64:aHR0cDovL3d3dy5tbGIuY29tL3B1YmFqYXh3cy9iYW1yZXN0L01lZGlhU2VydmljZTJfMC9vcC1nZW5lcmF0ZUtleS92LTEuMT9jb250ZW50SWQ9NDMxNTQ5NyZpcGlkPTg4MjAyOTYmcGxheWJhY2s9TUxCX0ZMQVNIX1NXQVJNQ0xPVUQmc2Vzc2lvbktleT1wYnJSbWJpbnFuT2dmcmNEM3pvdHhLcWtGTmclM0Q=?mlbfpk=VMI8xjeIil2VKnHSbgxEfTIfpns%3D&refetch=true
<?xml version="1.0" encoding="UTF-8"?>
<adaptiveStream id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428"><streamTail timeStamp="19:35:55" /><encodings><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_2200K_STREAM" width="800" height="450" bps="2200000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_1800K_STREAM" width="800" height="450" bps="1800000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_800K_STREAM" width="800" height="450" bps="800000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_400K_STREAM" width="400" height="225" bps="400000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_164K_STREAM" width="256" height="144" bps="164000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_1200K_STREAM" width="800" height="450" bps="1200000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_600K_STREAM" width="400" height="225" bps="600000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_3000K_STREAM" width="1280" height="720" bps="3000000" codec="H.264" container="FLV" /></encodings></adaptiveStream>
Traceback (most recent call last):
File "./nexdef.py", line 402, in <module>
( hrs, min, sec ) = timestamp.split(':')
NameError: name 'timestamp' is not defined
04-28-2009, 07:46 PM
#1492
mlbviewer Maintainer
Registered: Apr 2008
Posts: 1,246
Rep:
Quote:
Originally Posted by
Theophile
Now live games are giving an uncaught error. Trying to use nexdef.py gives this:
Code:
http://local.swarmcast.net:8001/protected/content/adaptive-live/describe/base64:aHR0cDovL3d3dy5tbGIuY29tL3B1YmFqYXh3cy9iYW1yZXN0L01lZGlhU2VydmljZTJfMC9vcC1nZW5lcmF0ZUtleS92LTEuMT9jb250ZW50SWQ9NDMxNTQ5NyZpcGlkPTg4MjAyOTYmcGxheWJhY2s9TUxCX0ZMQVNIX1NXQVJNQ0xPVUQmc2Vzc2lvbktleT1wYnJSbWJpbnFuT2dmcmNEM3pvdHhLcWtGTmclM0Q=?mlbfpk=VMI8xjeIil2VKnHSbgxEfTIfpns%3D&refetch=true
<?xml version="1.0" encoding="UTF-8"?>
<adaptiveStream id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428"><streamTail timeStamp="19:35:55" /><encodings><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_2200K_STREAM" width="800" height="450" bps="2200000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_1800K_STREAM" width="800" height="450" bps="1800000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_800K_STREAM" width="800" height="450" bps="800000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_400K_STREAM" width="400" height="225" bps="400000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_164K_STREAM" width="256" height="144" bps="164000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_1200K_STREAM" width="800" height="450" bps="1200000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_600K_STREAM" width="400" height="225" bps="600000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_VISIT_20090428_MLB_FLASH_3000K_STREAM" width="1280" height="720" bps="3000000" codec="H.264" container="FLV" /></encodings></adaptiveStream>
Traceback (most recent call last):
File "./nexdef.py", line 402, in <module>
( hrs, min, sec ) = timestamp.split(':')
NameError: name 'timestamp' is not defined
I have this one fixed and checked in.
It appears the live games aren't including a streamHead element in the XML. That's only really necessary for archived games and live_from_start=True.
Still don't know what's up with the empty content lists, though.
I also suspect MLB's going to have a problem with Seattle-Chicago game because at the slice server level, there is no indicator of which game they are asking for. It appears only as:
Code:
http://abrlivec2.mlb.com/sliceserver/MLB_GAME_VIDEO_SEACHA_HOME_20090428
I suppose it's possible that the key generated matches one game or another since the request contains the content_id.
04-28-2009, 08:06 PM
#1493
mlbviewer Maintainer
Registered: Apr 2008
Posts: 1,246
Rep:
Okay, I think I have a fix for the empty content list but I don't totally understand it.
It seems the nexdef media-state is now MEDIA_OFF which I was previously excluding back when we were having JiBX marshalling errors. Since I wasn't looking for anything but MEDIA_DONE, MEDIA_ARCHIVE, or MEDIA_ON, I was returning an empty content list (e.g. no content in a playable state.)
I don't understand why these are marked as MEDIA_OFF unless they really were having Swarmcast network issues and wanted to tell the Flash player not to use the Swarmcast network. Which could still very well be the case.
I'm still at work so all I can do is verify that mplayer latched onto a stream and that Nexdef control tells me which stream it latched onto.
I can't tell you anything about the quality of that stream except that I'm not getting anything above 1200 at the moment.
Still, the fix is checked in and you all can test it with the caveat that, "there may be a reason MLB.com set these to OFF."
Last edited by daftcat; 04-28-2009 at 08:08 PM .
04-28-2009, 08:10 PM
#1494
Member
Registered: Apr 2009
Posts: 120
Rep:
Quote:
Originally Posted by
daftcat
Okay, I think I have a fix for the empty content list but I don't totally understand it.
It seems the nexdef media-state is now MEDIA_OFF which I was previously excluding back when we were having JiBX marshalling errors. Since I wasn't looking for anything but MEDIA_DONE, MEDIA_ARCHIVE, or MEDIA_ON, I was returning an empty content list (e.g. no content in a playable state.)
I don't understand why these are marked as MEDIA_OFF unless they really were having Swarmcast network issues and wanted to tell the Flash player not to use the Swarmcast network. Which could still very well be the case.
I'm still at work so all I can do is verify that mplayer latched onto a stream and that Nexdef control tells me which stream it latched onto.
I can't tell you anything about the quality of that stream except that I'm not getting anything above 1200 at the moment.
Still, the fix is checked in and you all can test it with the caveat that, "there may be a reason MLB.com set these to OFF."
Even in the flash player, there are several games that say "media error, this is temporarily unavailable, please try again in a few minutes" or something, so it is an MLB problem, and not just nexdef either, these games are unavailable for some reason.
04-28-2009, 08:16 PM
#1495
Member
Registered: Jan 2003
Posts: 283
Rep:
Quote:
Originally Posted by
daftcat
I have this one fixed and checked in.
Thanks! Up and running again.
04-28-2009, 08:23 PM
#1496
Member
Registered: Jan 2003
Posts: 283
Rep:
Oh, by the way, congrats everyone on 100 pages.
04-28-2009, 08:28 PM
#1497
mlbviewer Maintainer
Registered: Apr 2008
Posts: 1,246
Rep:
Quote:
Originally Posted by
poorboywilly
Even in the flash player, there are several games that say "media error, this is temporarily unavailable, please try again in a few minutes" or something, so it is an MLB problem, and not just nexdef either, these games are unavailable for some reason.
The strange thing is that these games were available yesterday. I can't check any games from work but I know I've been testing the Bos-Cle game yesterday and this morning and it's one that's been marked with media_off now.
My testing, at least remotely, seems to indicate that these streams really are available but mlb.com has marked them as unavailable.
The media error or temporarily unavailable errors you are seeing in the flash player may very well be the player reacting to the media_off state in the SOAP content replies. As I said, they may be doing some maintenance or something on those servers and so they are purposely diverting traffic off of them.
Wouldn't it be great if they are doing a Swarmcast upgrade to improve the performance of the dropped and downshifted streams?
If that's the case, I kind of feel guilty letting you guys pound on 'em when they might have a valid reason for turning us away.
Of course, they should really do this crap in the middle of the night so I have less sympathy.
Maybe I'll add a config file option, ignore_media_off so those of you who are truly evil and addicted to baseball can pound away and the majority of the sourceforge users who probably won't show up in this thread once my code is released will play by "the rules."
04-28-2009, 08:29 PM
#1498
mlbviewer Maintainer
Registered: Apr 2008
Posts: 1,246
Rep:
Quote:
Originally Posted by
Theophile
Oh, by the way, congrats everyone on 100 pages.
Couldn't have done it without you.
04-28-2009, 08:31 PM
#1499
mlbviewer Maintainer
Registered: Apr 2008
Posts: 1,246
Rep:
I wonder whatever happened to Fugazi? (the thread starter, not the punk band.)
04-28-2009, 08:32 PM
#1500
LQ Newbie
Registered: Apr 2009
Posts: 26
Rep:
Are the streams that rtmpdump is dumping unplayable in mplayer, or is it just too much cpu load, or lag, or whatever?
like, if you save an rtmpdump stream could you play it back with mplayer later, or would you need to transcode it.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 10:13 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News