After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 518705 - Can't play streams from Rai.it
Can't play streams from Rai.it
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal normal
: 0.10.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-02-25 21:32 UTC by Luca Ferretti
Modified: 2008-06-13 18:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Luca Ferretti 2008-02-25 21:32:11 UTC
Totem can't play streams from Italian public broadcast, Rai[1].

 1. Go to http://www.radio.rai.it/radio1/index.htm
 2. Clic on "Ascolta live" label (top left, under the logo)
 3. Will open a popup, with "click here to download pluging" message :-(

It seems that the embed item grabs the file http://www.radio.rai.it/player/radio1.rpm that's a text file with the stream address inside it - rtsp://live.media.rai.it/broadcast/radiouno.rm

OT: however gstreamer has some problem playing this strem directly... Another bug?


[1] http://en.wikipedia.org/wiki/RAI
Comment 1 Bastien Nocera 2008-02-25 21:40:19 UTC
Works fine here, but GStreamer couldn't play the stream for me.

added URI 'rtsp://live.media.rai.it/broadcast/radiouno.rm'
TotemEmbedded-Message: totem_embedded_open_internal 'rtsp://live.media.rai.it/broadcast/radiouno.rm' is-browser-stream 0 start-play 0
TotemEmbedded-Message: BEFORE _open
TotemEmbedded-Message: AFTER _open (ret: 1)
TotemEmbedded-Message: Viewer state: PLAYING
** Message: Error: The stream is in the wrong format.
gstrtspsrc.c(3785): gst_rtspsrc_setup_streams (): /play/source:
No supported stream was found.

TotemEmbedded-Message: Viewer state: STOPPED
TotemEmbedded-Message: totem_embedded_set_error: 'The stream is in the wrong format.'

Check whether the plugins are installed properly in "about:plugins".
Comment 2 Luca Ferretti 2008-02-26 13:46:22 UTC
(In reply to comment #1)
> 
> Check whether the plugins are installed properly in "about:plugins".
> 

Doh! I skipped to build mozilla in my jhbuild sandbox, so I was using mozilla installed under /usr by distro.

Now the "missing plugin" message is disappeared, but totem-plugin-viewer can't be loaded due to error loading libnss:
##########################
** Message: Launching: /opt/gnome2/libexec/totem-plugin-viewer --plugin-type complex --user-agent Mozilla/5.0 (X11; U; Linux i686; en; rv:1.8.1) Gecko/20080226 Epiphany/2.20 BonEcho/2.0 --mimetype audio/vnd.rn-realaudio 
** Message: Viewer spawned, PID 32300
** Message: GetValue variable 14 (e)
** Message: Initial window set, XID 4c00ae3 size 375x100
** Message: No viewer proxy yet, deferring SetWindow
** Message: NewStream mimetype 'audio/x-pn-realaudio-plugin' URL 'http://www.radio.rai.it/player/radio1.rpm'
** Message: Viewer not ready, aborting stream
/opt/gnome2/libexec/totem-plugin-viewer: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
##########################

Same for standalone totem. Maybe I've to run some `make distclean`
Comment 3 Bastien Nocera 2008-02-26 15:23:48 UTC
That's your compilation being borked, re-run autogen
Comment 4 Luca Ferretti 2008-02-28 21:39:33 UTC
Compilation fixed. My jhbuild sandbox is able to "play" (well, it seems something from outer space), maybe through gst-ffmpeg ?

mplayer works fine:
REAL file format detected.
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
demux_real: invalid chunksize! (0)
Clip info:
 name: Radio Uno
 author: Radio Uno
 copyright: RadioRai
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 32.0 kbit/2.27% (ratio: 4005->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
Comment 5 Sebastian Dröge (slomo) 2008-02-29 05:32:07 UTC
rtsp://live.media.rai.it/broadcast/radiouno.rm  plays for me with latest CVS of everything... but unfortunately I get crackling output and:

gst-launch-0.10 playbin uri=rtsp://live.media.rai.it/broadcast/radiouno.rm
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
WARNING: from element /playbin0/abin/audiosink/audiosink-actual-sink-alsa: Compensating for audio synchronisation problems
Additional debug info:
gstbaseaudiosink.c(1190): gst_base_audio_sink_render (): /playbin0/abin/audiosink/audiosink-actual-sink-alsa:
Unexpected discontinuity in audio timestamps of more than half a second (0:00:01.407301587), resyncing
WARNING: from element /playbin0/abin/audiosink/audiosink-actual-sink-alsa: Compensating for audio synchronisation problems
Additional debug info:
gstbaseaudiosink.c(1190): gst_base_audio_sink_render (): /playbin0/abin/audiosink/audiosink-actual-sink-alsa:
[....]


For this to play you need rmdemux (gst-plugins-ugly) and ffdec_cook (gst-ffmpeg) and rdtdepay (gst-plugins-ugly). Might work better with the real plugin from gst-plugins-bad, that uses the real binary for decoding.
Comment 6 Wim Taymans 2008-03-03 10:59:24 UTC
The realaudio decoder seems to produce garbage with some realaudio versions. Can't quite remember what the problem was (maybe only on 64bits or with the dll wrapper).
Comment 7 Wim Taymans 2008-06-13 18:30:56 UTC
seem to work fine with latest CVS, let's credit latest ffmpeg. closing.