workaround for rtsp streams that fail.
#1
hi, not very familiar with this but hacking a little simple script that lets one browse the archives of a radio station. unfortunately it seems the server somehow only lets realplayer to receive the stream (on os x have tried vlc, qt and itunes and all of them are denied access to). is there any workaround for this?

not sure if related or not but this is also a problem with the bbc radio player script. the archived streams work fine but the live streams always stop at 1min30sec. any ideas?
Reply
#2
hit that post button too quickly... the bbc problem is also present if one makes .strm links to the live feeds in the media fodlers.

apologies if this has already been covered.
Reply
#3
debug log.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
nothing in the log...

try these two:
A. rtsp://www.borderline-extra.de/realaudio/bo498.rm
B. rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio2/live/r2_dsat_g2.ra

both work fine in realplayer.

A does not start from XBMC neither if run .strm file or withing a script.
B stops after 1min30sec as does all bbc live radio feeds. the archived stuff doesent...
Reply
#5
set a user agent, search the net for realplayer user-agent

add_header( 'User-Agent', 'realplayer user agent here' )
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
thanks Nuka1195 for a good clue.

although not sure how to work with add_header and xbmc.Player().play("url") as i dont need to open anything from within python... surfing around but find it hard to find any helpful examples.
Reply
#7
theres a mplayer conf site somewhere, a quick search i didn't find it, but there may be a user agent setting you could put in that. I'm not sure how or where you would use that for a specific url though.

# User-Agent
#user-agent=NSPlayer
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#8
little in work progress report with my rtsp adventures... any further clues or tips very welcome.

i know this thread is developing a bit off topic but here it comes anyway...

so found the user-agent conf in mplayer.conf on the xbox. doesnt make a difference if i change it to a realplayer agent. (i know this breaks some shoutcast functionality, but nevertheless) well it works even less. bbc doesent start at all (as normally it would play 1.5 min.)

did some tests on my laptop by sniffing the traffic through port 80. and when the bbc stream is played through the real player it does send all kinds of data and even works with cockies. if i enter the dot ram http address through the gmplayer on windows it also sends a user agent and other info but does not start playing.

BUT... if i just start the rtsp:// streamn through the command line mplayer on windows it doesnt send anything through port 80 and plays the live stream just fine. so i thought i just comment out all the user-agent settings in the mplayer.conf file on the xbmc. but that didnt work either. actually works as badly as when the user-agent was configured as realplayer.

i wish i knew an easy way to sniff and log the http communication on the xbos to see what it actually sends.

a couple of questions in my mind at the moment.
* does the xbmc mplayer send some sort of HTTP to the streaming server even iif the user-agent setting is commented out. as it does seem that the bbc server feeds the stream happily if it doesent get any data from the client.
* does nobody else experience problems with the bbc live radio and other real media streams except me?



here is what realplayer sends when the bbc the dot ram is started directly from there:
+++GET 217+++
GET /radio4/realplayer/media/fmg2.ram HTTP/1.1
Accept: */*
User-Agent: RMA/1.0 (compatible; RealMedia)
Icy-MetaData: 1
Bandwidth: 786432
ClientID: WinNT_5.1_6.0.12.1483_RealPlayer_BBC02D_en-US_686
Cookie:
BBC-UID=0406e10a9bb2b5ca24d544839020808109980ce7a03020e33b3a10bb12f7e82b0Mozilla%2f4%2e0%20%28compatible%3b%20MSIE%206%2e0%3b%20Windows%20NT%205%2e1%3b%20SV1%29;
BBCDetectPlugin=real%3A1; BBCNewsAudcWght=-99; BBCNewsAudience=Domestic
GUID: 00000000-0000-0000-0000-000000000000
Language: en-US, en, *
RegionData: 0
SupportsMaximumASMBandwidth: 1
Host: http://www.bbc.co.uk
Accept-Language: en-US, en, *
Accept-Encoding: gzip, deflate
Connection: keep-alive
Reply
#9
sakalli Wrote:little in work progress report with my rtsp adventures... any further clues or tips very welcome.

i know this thread is developing a bit off topic but here it comes anyway...

so found the user-agent conf in mplayer.conf on the xbox. doesnt make a difference if i change it to a realplayer agent. (i know this breaks some shoutcast functionality, but nevertheless) well it works even less. bbc doesent start at all (as normally it would play 1.5 min.)

did some tests on my laptop by sniffing the traffic through port 80. and when the bbc stream is played through the real player it does send all kinds of data and even works with cockies. if i enter the dot ram http address through the gmplayer on windows it also sends a user agent and other info but does not start playing.

BUT... if i just start the rtsp:// streamn through the command line mplayer on windows it doesnt send anything through port 80 and plays the live stream just fine. so i thought i just comment out all the user-agent settings in the mplayer.conf file on the xbmc. but that didnt work either. actually works as badly as when the user-agent was configured as realplayer.

i wish i knew an easy way to sniff and log the http communication on the xbos to see what it actually sends.

a couple of questions in my mind at the moment.
* does the xbmc mplayer send some sort of HTTP to the streaming server even iif the user-agent setting is commented out. as it does seem that the bbc server feeds the stream happily if it doesent get any data from the client.
* does nobody else experience problems with the bbc live radio and other real media streams except me?



here is what realplayer sends when the bbc the dot ram is started directly from there:
+++GET 217+++
GET /radio4/realplayer/media/fmg2.ram HTTP/1.1
Accept: */*
User-Agent: RMA/1.0 (compatible; RealMedia)
Icy-MetaData: 1
Bandwidth: 786432
ClientID: WinNT_5.1_6.0.12.1483_RealPlayer_BBC02D_en-US_686
Cookie:
BBC-UID=0406e10a9bb2b5ca24d544839020808109980ce7a03020e33b3a10bb12f7e82b0Mozilla%2f4%2e0%20%28compatible%3b%20MSIE%206%2e0%3b%20Windows%20NT%205%2e1%3b%20SV1%29;
BBCDetectPlugin=real%3A1; BBCNewsAudcWght=-99; BBCNewsAudience=Domestic
GUID: 00000000-0000-0000-0000-000000000000
Language: en-US, en, *
RegionData: 0
SupportsMaximumASMBandwidth: 1
Host: http://www.bbc.co.uk
Accept-Language: en-US, en, *
Accept-Encoding: gzip, deflate
Connection: keep-alive

Hi,

putting .rm streams in .strm files is also an issue for me. I've tried to play back several RealMedia video streams on XBMC but didn't quite suceed. Sometimes it works flawlessly, sometimes it won't. Haven't figured out a pattern yet, but I will be working on it. Currently parts of the dev team of XBMC-TV are working on tweaking mplayer.conf to "fix" (merely workaround) this problem. So if you are interested in teaming up with us, let me know via PM. We would be very happy to have your input here.

Cheers
akaigotchi
Visit http://www.xbmc-tv.com - your source for broadband (200k+) LIVE video streams on XBMC
Reply
#10
nobody has yet provided a debug log....
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#11
...will collect some and post em here within the next few days...
Visit http://www.xbmc-tv.com - your source for broadband (200k+) LIVE video streams on XBMC
Reply

Logout Mark Read Team Forum Stats Members Help
workaround for rtsp streams that fail.0