Dump the stream to a file. (Note - you won't see any output while it is doing this, so you'll need to check the size of the output file to make sure it's working. It will exit when it has finished though.)
mplayer -v -cache 128 -rtsp-stream-over-tcp -dumpstream -dumpfile dump.ra rtsp://rmv8.bbc.net.uk/radio4/comedy/wed1830.ra
Convert it to WAV/PCM format.
mplayer -vc dummy -vo null -ao pcm -ao pcm:file=dump.pcm dump.ra
And finally, encode it to OGG and delete the pcm file..
oggenc --managed -m 96 -M 225 -q 3.0 dump.pcm && rm dump.ra
For some reasons the ogg is twice the size of the dump of the stream. But frankly, I can't be bothered to work out why. Bandwidth and diskspace are cheap.
Thanks
Joe