Error playing audio stream

Asked by Andy Ruddock on 2008-07-11

Trying to listen to BBC Radio 1 stream, I use the command :
# totem

I get this error :
** Message: Error: Could not write to resource.
gstrtspsrc.c(3157): gst_rtspsrc_try_send (): /play/source:
Could not send message. (System error: Connection refused)

This works on my home machine so I know it's possible. I have realplayer 11 for Linux installed and that plays the stream fine.

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Solved by:
Andy Ruddock
Last query:
Last reply:
Bhavani Shankar (bhavi) said : #1


the totem gstreamer plugin can play bbc radio, you dont need realplayer AFAIK...
there is a bug in the current hardy version that gives garbled sound and its already fixed (Please download the packages below and install them)

you can download it from: (for 64 bit)


Bhavani Shankar.

Andy Ruddock (andy-ruddock) said : #2

Downloaded and installed the plugins, but I'm still getting the same error.

Andy Ruddock (andy-ruddock) said : #3

I just synced the packages from the machine on which this works to the machine on which it doesn't.
It isn't down to a missing package, but still doesn't work :(

At a terminal, type in:
sudo apt-get install ubuntu-restricted-extras

If this doesn't work, add the medibuntu:
And install the package w32codecs

Andy Ruddock (andy-ruddock) said : #5

I'm looking at the strace for this and I see

write(21, "OPTIONS rtsp://"..., 551) = -1 ECONNREFUSED (Connection refused)

so I think this could be a firewall problem.
If I do netstat then I see :

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 myhost:59664 ESTABLISHED
tcp 0 0 myhost:37210 ESTABLISHED

which indicates that the realplayer is using http for transport.
In fact, if I disable the use of http for rtsp then realplayer fails also.
As this machine is a laptop I'll take it home to confirm this.

So, is it possible to configure the gstreamer plugins to use http for rtsp transport?

Andy Ruddock (andy-ruddock) said : #6

Confirmed that this is indeed the problem. just need to get rtsp over http. Thanks for your help.