View Full Version : Support for password protected SHOUTcast
it would be great if you guys could add support for
shoutcast streams that are password protected.
example
[playlist]
numberofentries=2
file1=http://username:password@xxx.xx.xxx.xx:8070
title1=trance
length1=-1
file2=http://username:password@xxx.xx.xxx.xx:80
title2=trance
length2=-1
version=2
hi.
i've got a problem with playing di.fm streams. they require login to their servers and url of the stream is
http://user:pass@server_ip
the error i'm getting is "401 unauthorized"
how do i overcome it?
i assume you got an account ofcourse?
of course i have an account, it works fine in winamp
i have the same problem. *http://www.digitallyimported.com
their low quality free account .pls files work fine on xbox. *when you try to use a .pls that includes your premium username/password for 128/160 files you get the 401 unauthorized error message like above.
what's the deal?
here's another program that has the same problem. (i dont use it, but found it via google) is what they talk about some how related to how xbox reads-plays .pls files?
http://streamripper.sourceforge.net/openbb/read.php?tid=539&page=1
i posted this problem on www.di.fm *forums
the di.fm admin said that programs need to support "basic authentication" *
will you come out with a patch like the other vendors have?
here's the whole reply from the di forum:
di forums board > other forums > di premium service > http:401 unauthorized
post1110184
"hi.
your media player needs to support basic authentication in order to work with premium. we had a few customers with various products who contacted the vendors - and they in turn released an upgrade for software/firmware to support it. we recommend to try and contact them and ask them to support basic authentication so that you can stream premium content from sites.
we'll be happy to assist them. they can contact support(at)di.fm if they need to test things to make it work.
___
~james~"
here was my original question to di.fm:
"can you play your saved .pls (premium) files to use with other players besides winamp? i'm trying to listen to my premium di channels on my xbox media center but it gives me http:401 unauthorized. the free .pls files play fine but the ones i pay for do not? what can i do to make this work? i want to get the most out of my account i paid for."
Gamester17
2004-09-10, 13:17
i's not working because no support for it has been implemented, it's as simple as that.
moving to feature suggestions and merging into existing thread.
Chopp3rDave
2005-01-26, 00:52
okay so it's not implemented as of yet? any word on how hard it would be to add it, and if so when it could be added? i need my daily dose of opie & anthony.
cheers!
when i try to connect to a icecast server with one account its not able to login, but when i use a different account it does login
i have verified both are able to login with winamp and both do work
account #1 (not working)
24-11-2005 02:49:17 error dns lookup for chevy failed: 11001
24-11-2005 02:49:17 warning error: problem accessing the dns. defaulting to using hard-coded ip address for known hosts.
24-11-2005 02:49:17 error unable to connect to chevy: 11001
24-11-2005 02:49:17 notice url http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv not found
24-11-2005 02:49:19 error cmplayer::openfile() http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv failed
account #2 (working)
24-11-2005 02:49:22 error dns lookup for chevy0 failed: 11001
24-11-2005 02:49:22 warning error: problem accessing the dns. defaulting to using hard-coded ip address for known hosts.
24-11-2005 02:49:22 error unable to connect to chevy0: 11001
24-11-2005 02:49:22 notice url http://chevy0:fakepass@192.168.0.88:8020/streamtv01.nsv not found
24-11-2005 02:49:36 notice start led control
24-11-2005 02:49:36 notice dim lcd on playback
24-11-2005 02:49:51 notice start led control
24-11-2005 02:49:51 notice dim lcd on playback
here is another log of the one not working
24-11-2005 03:02:49 info loading web playlist http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv
24-11-2005 03:02:49 info get header url: http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv
24-11-2005 03:02:49 error dns lookup for chevy failed: 11001
24-11-2005 03:02:49 warning error: problem accessing the dns. defaulting to using hard-coded ip address for known hosts.
24-11-2005 03:02:49 error unable to connect to chevy: 11001
24-11-2005 03:02:49 notice url http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv not found
24-11-2005 03:02:49 info mplayer play:http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv cachesize:2048
24-11-2005 03:02:49 debug initializing fs_seg..
24-11-2005 03:02:49 debug fs segment @ 0x85d380
24-11-2005 03:02:50 info flipping bi-directional subtitles disabled
24-11-2005 03:02:50 debug msg:enable mplayer osd
24-11-2005 03:02:50 debug msg:mplayer dev-cvs-050410-13:35 © 2000-2004 mplayer team
24-11-2005 03:02:50 debug msg:cpu: intel celeron 2/pentium iii coppermine,geyserville
24-11-2005 03:02:50 debug msg:(family: 6, stepping: 10)
24-11-2005 03:02:50 debug msg:detected cache-line size is 32 bytes
24-11-2005 03:02:50 debug msg:cpuflags: mmx: 1 mmx2: 1 3dnow: 0 3dnow2: 0 sse: 0 sse2: 0
24-11-2005 03:02:50 debug msg:compiled for x86 cpu with extensions:
24-11-2005 03:02:50 debug msg: mmx
24-11-2005 03:02:50 debug msg: mmx2
24-11-2005 03:02:50 debug msg: sse
24-11-2005 03:02:50 debug msg:
24-11-2005 03:02:50 debug msg:
24-11-2005 03:02:50 debug msg:79 audio & 187 video codecs
24-11-2005 03:02:50 debug msg:mplayer_open_file(http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv)
24-11-2005 03:02:50 info stating file http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv.conf
24-11-2005 03:02:50 info stating file q:\system\players\mplayer\streamtv01.nsv.conf
24-11-2005 03:02:50 debug msg:playing http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv.
24-11-2005 03:02:50 debug msg:auto open z:\subtitle
24-11-2005 03:02:50 debug msg:protocol:http
24-11-2005 03:02:50 debug msg:open stream protocol:http
24-11-2005 03:02:50 debug msg:connecting to server 192.168.0.88[192.168.0.88]:8020 ...
24-11-2005 03:02:51 debug msg:authentication required for "icecast2 server"
24-11-2005 03:02:51 error cmplayer::openfile() http://chevy:fakepass@192.168.0.88:8020/streamtv01.nsv failed
here is another log of the one working
24-11-2005 03:02:52 info loading web playlist http://chevy0:fakepass@192.168.0.88:8020/streamtv01.nsv
24-11-2005 03:02:52 info get header url: http://chevy0:fakepass@192.168.0.88:8020/streamtv01.nsv
24-11-2005 03:02:52 error dns lookup for chevy0 failed: 11001
24-11-2005 03:02:52 warning error: problem accessing the dns. defaulting to using hard-coded ip address for known hosts.
24-11-2005 03:02:52 error unable to connect to chevy0: 11001
24-11-2005 03:02:52 notice url http://chevy0:fakepass@192.168.0.88:8020/streamtv01.nsv not found
24-11-2005 03:02:52 debug msg:
24-11-2005 03:02:52 debug freeing fs segment @ 0x85d380
24-11-2005 03:02:52 info mplayer play:http://chevy0:fakepass@192.168.0.88:8020/streamtv01.nsv cachesize:2048
24-11-2005 03:02:52 debug initializing fs_seg..
24-11-2005 03:02:52 debug fs segment @ 0x87f010
24-11-2005 03:02:53 info flipping bi-directional subtitles disabled
24-11-2005 03:02:53 debug msg:enable mplayer osd
24-11-2005 03:02:53 debug msg:mplayer dev-cvs-050410-13:35 © 2000-2004 mplayer team
24-11-2005 03:02:53 debug msg:cpu: intel celeron 2/pentium iii coppermine,geyserville
24-11-2005 03:02:53 debug msg:(family: 6, stepping: 10)
24-11-2005 03:02:53 debug msg:detected cache-line size is 32 bytes
24-11-2005 03:02:53 debug msg:cpuflags: mmx: 1 mmx2: 1 3dnow: 0 3dnow2: 0 sse: 0 sse2: 0
24-11-2005 03:02:53 debug msg:compiled for x86 cpu with extensions:
24-11-2005 03:02:53 debug msg: mmx
24-11-2005 03:02:53 debug msg: mmx2
24-11-2005 03:02:53 debug msg: sse
24-11-2005 03:02:53 debug msg:
24-11-2005 03:02:53 debug msg:
24-11-2005 03:02:53 debug msg:79 audio & 187 video codecs
24-11-2005 03:02:53 debug msg:mplayer_open_file(http://chevy0:fakepass@192.168.0.88:8020/streamtv01.nsv)
24-11-2005 03:02:53 info stating file http://chevy0:fakepass@192.168.0.88:8020/streamtv01.nsv.conf
24-11-2005 03:02:53 info stating file q:\system\players\mplayer\streamtv01.nsv.conf
24-11-2005 03:02:53 debug msg:playing http://chevy0:fakepass@192.168.0.88:8020/streamtv01.nsv.
24-11-2005 03:02:53 debug msg:auto open z:\subtitle
24-11-2005 03:02:53 debug msg:protocol:http
24-11-2005 03:02:53 debug msg:open stream protocol:http
24-11-2005 03:02:53 debug msg:connecting to server 192.168.0.88[192.168.0.88]:8020 ...
24-11-2005 03:02:54 debug msg:cache size set to 2048 kbytes
24-11-2005 03:02:54 debug msg:connected to server: 192.168.0.88
24-11-2005 03:02:54 debug msg:
cache fill: 0.00% (0 bytes)
24-11-2005 03:02:54 debug msg:
here is debug mode of icecast
[2005-05-01 13:42:46] dbug connection/_handle_get_request start with /streamtv04.nsv
[2005-05-01 13:42:46] dbug auth/_add_client max on /streamtv04.nsv is 10
[2005-05-01 13:42:46] dbug auth/_add_client pending 2, current 1
[2005-05-01 13:42:46] warn auth/auth_check_client base64 decode of authorization header "y2hlrgy6ynjpyw4xotc4=" failed
[2005-05-01 13:42:46] info auth/_add_client listener failed to authenticate
[2005-05-01 13:42:46] dbug slave/_slave_thread rescanning relay lists
the base64 code is y2hlrgy6ynjpyw4xotc4 and its sending y2hlrgy6ynjpyw4xotc4=
i changed my pass and now its sending y2hldnk6ymjiyg= when it should be y2hldnk6ymjiyg==
this doesnt appear to be an xbmc problem but an mplayer problem. it seems like mplayer is not computing the correct hash value. contact them.
this doesnt appear to be an xbmc problem but an mplayer problem. it seems like mplayer is not computing the correct hash value. contact them.
ya it was mplayer
something with their base64 code
a friend of mine fixed it, it can be found at
http://streamtvnow.com/board/showthread.php?t=2034
well actually seem to be a an xbmc problem too.. tries to lookup the username in dns.. doesn't make sence at all.
btw, that url you posted needs login, can you post a quote instead?
HarshReality
2005-05-03, 17:02
chevy
01-05-2005, 20:25
thanks to cid@efnet , he has fixed the mplayer base64 issue and it now works on xbmc!
replace this mplayer.dll file with the old one on xbmc
backup your old one just incase * *
xbmc mplayer (http://www.harshreality.org/host/mplayer.zip)
**i took the liberty of hosting the file myself for now so that it might be gotten to by the general public who may share a similar issue.
if we are going to integrate the fix, we are going to need the source code for the changes as well.
ts
HarshReality
2005-05-03, 17:36
this doesnt appear to be an xbmc problem but an mplayer problem. it seems like mplayer is not computing the correct hash value. contact them.
in bad taste perhaps but i couldn't resist. all i did was repeat a message on both accounts ;)
here is the source code
http://dl2.rapidshare.de/files/1560985/2491363/xbmc-mplayer-mod.rar
its for mplayer pre6
these files are modified from xbmc -- mplayer cvs on may 01, 2005; 9:50pm est
what has been changed/added:
only files in libmpdemux/
added:
base64.c: this source code i found on google, no license in file, should be ok to merge? :)
base64.h: read above
changed:
makefile: added base64.c
http.c : commented out old base64 function
http.h : commented out old base64 prototype
just replace/add these files from the archive, and you are good to go.
-cid
Gamester17
2005-05-04, 13:15
don't forget => http://bugzilla.mplayerhq.hu ;)
lol.. ok then i suppose i should redo the base64 stuff i added to xbmc as that was based on mplayer's version :)
but are you sure it's really faulty?? i tested basic authentication with the code used in mplayer and it worked like a charm...
lol.. ok then i suppose i should redo the base64 stuff i added to xbmc as that was based on mplayer's version :)
but are you sure it's really faulty?? i tested basic authentication with the code used in mplayer and it worked like a charm...
some reason it did not work on certain usernames
like chevy:bbbb
oh.. please report that to mplayerhq then. (try using windows mplayer first thou)
mine still gets to 18% and then just closes. ive done the above, ive checked everythin i can check. is it an issue with the 1.1 release and i should update to a later version?
bit disappointing to see that the fix above wasn't carried over into the new mplayer.dll 20th may.
now i have to rollback to mplayer.dll 1st may just to get password protected nsv streams to work.
:tear:
bit disappointing to see that the fix above wasn't carried over into the new mplayer.dll 20th may.
now i have to rollback to mplayer.dll 1st may just to get password protected nsv streams to work.
:tear:
ya that is weird
the source code is there also
and to make matters worse, the "hacked" mplayer.dll 050105 doesn't seem to work on the latest xbmc build (0523 & 0527). it works, but p/w protected nsv streams don't load.
chevys - any chance you can get your buddy to mod mplayer.dll 052005 as well???
hello, i can watch any streams that i want on my xbox without any problems, as long as they are not password protected. does anyone know if it is at all possible to watch authenticated shoutcast streams??
if not, why is not supported? it would seem to me this isn't a difficult feature to implement.. i used to have it working on an older build with a recompiled mplayer.dll... can anyone help me out??
thanks,
d.