PDA

View Full Version : Problem Streaming File


tokyoturnip
2004-09-08, 01:54
i am having trouble with the following .strm file.
the strm file contents are only the url to the file.
mms://www.tbs.co.jp/news_mainprogram/asf/1_18.asf

playing in windows media 9, i can see the video codec is version 8 and the audio codec is version 9.

here is a snipit from the debug log
07-09-2004 18:45:26 info mplayer play:mms://www.tbs.co.jp/news_mainprogram/asf/1_18.asf cachesize:2048
07-09-2004 18:45:26 debug initializing fs_seg..
07-09-2004 18:45:26 debug fs segment @ 0x7de030
07-09-2004 18:45:26 info flipping bi-directional subtitles disabled
07-09-2004 18:45:27 info stating file mms://www.tbs.co.jp/news_mainprogram/asf/1_18.asf.conf
07-09-2004 18:45:27 info stating file q:\mplayer\1_18.asf.conf
07-09-2004 18:45:30 error cmplayer::openfile() mms://www.tbs.co.jp/news_mainprogram/asf/1_18.asf failed

to me the error does not seem to be too informational.
think i am missing a codec? according to the xbmc specs i should be able to play. or maybe there is a codec that i need to copy into the codec directory i did not know about?
are they any lines or switchs that i can add to the strm file to make it play, or better logging.

tokyoturnip

pike
2004-09-08, 02:12
.asf is their type of playlist. xbmc cannot play a playlist. you need to find the true link to the video...

good luck!

tokyoturnip
2004-09-08, 02:26
really .asf is a play list? i always thought it was a video file, because i have serveral .asf files and they are couple mbs each and play offline, which to me indicates it is a video file and not just a play list.
i do know that .asx if a playlist link file, which is where i extracted the .asf location from.

ezar2003
2004-09-08, 02:32
do you test to open this file in other player?

senergy
2004-09-08, 07:59
i can open this file using ms media player with no problems, but when trying it using my stream capture program it doenst work. so i fired up a packet sniffer and it seems the site requires a user-agent that it recognises before it streams the feed. the "cant open" error your getting in xbmc is the equivalent to "access denied" i belive.
i havent set this stream up on my xbox to test my theory but i belive it will be the case. the user agent that is being sent through by media player is (my version anyway)
"user-agent: nsplayer /8.0.0.4487"



and here is some info i found on nsplayer

"the nsplayer is one of the user agent used in the server program to handle
cache proxy requests. for more information about user agent, please read
the information in wms sdk. download wms sdk from this link.
http://www.microsoft.com/windows/windowsmedia/download/default.asp

user agents:
when a windows media services 9 series cache proxy server connects upstream
to another version 9 or later server, it specifies wmcacheproxy as a user
agent. it also passes the user agent of the original requesting client. the
upstream server can discover the cache proxy user agent by examining the
wms_user_agent attribute in the user context, and it can discover the user
agent of the original requesting client by examining the
wms_user_proxy_client_agent attribute. the origin server can use the user
agent to identify whether the client is a player or a distribution server
and impose limits accordingly. a server can specify limits by using the
iwmsserverlimits interface or the iwmspublishingpointlimits interface.

note when a windows media services 9 series cache proxy server connects
upstream to a version 4.1 server, it sends either nsplayer or nsserver as a
user agent depending on whether it is requesting, respectively, a client
connection or a distribution connection."

pike
2004-09-08, 08:19
yeah.. i'm wrong. asx is the playlist format :blush: