gstreamer problems
Does anybody know why I only get silence when I play a soundfile in
gst-player. The time display on gst-player showes that it is playing the
file. The following command works fine to play music:
'gst-launch filesrc location=/path/to/file.mp3 ! mad ! alsasink'
I only use pure ALSA (OSS emulation drivers are not loaded) together with
linux 2.5.73 and Debian Sid, and alsa is the only gstreamer audiosink
installed. Also, I have set alsasink to be the default audiosink in the gconf
registry. As you can see from the messages from gst-player below, gst-player
does use the alsa audiosink. The last line of the messages from gst-player is
very suspicious.
****************Messages from gst-player:
INFO ( 3952: 0) Initializing GStreamer Core Library version 0.6.2
INFO ( 3952: 0) CPU features: (0c040843) MMX SSE
INFO ( 3952: 0) registry: loaded global_registry in 1.124908 seconds
(/var/lib/gstreamer/0.6/registry.xml)
Opening alsa device "default" for playback...
Preparing channel: (null) 44100Hz, 2 channels
(gst-player:3955): GStreamer-CRITICAL **: file gstprops.c: line 1001
(gst_props_get_entry): assertion `props != NULL' failed
(gst-player:3955): GStreamer-CRITICAL **: file gstprops.c: line 1164
(gst_props_entry_get_safe): assertion `entry != NULL' failed
Opening alsa device "default" for playback...
Preparing channel: (null) 44100Hz, 2 channels
(gst-player:3955): GStreamer-CRITICAL **: file gstprops.c: line 1001
(gst_props_get_entry): assertion `props != NULL' failed
(gst-player:3955): GStreamer-CRITICAL **: file gstprops.c: line 1164
(gst_props_entry_get_safe): assertion `entry != NULL' failed
Opening alsa device "default" for playback...
Preparing channel: (null) 44100Hz, 2 channels
(gst-player:3955): GStreamer-CRITICAL **: file gstprops.c: line 1001
(gst_props_get_entry): assertion `props != NULL' failed
(gst-player:3955): GStreamer-CRITICAL **: file gstprops.c: line 1164
(gst_props_entry_get_safe): assertion `entry != NULL' failed
audio_queue: waiting for the app to restart source pad elements
**************Messages from gst-launch command:
INFO ( 3958: 0) Initializing GStreamer Core Library version 0.6.2
INFO ( 3958: 0) CPU features: (0c040843) MMX SSE
INFO ( 3958: 0) registry: loaded global_registry in 1.121846 seconds
(/var/lib/gstreamer/0.6/registry.xml)
GStreamer-INFO: 0 live buffer(s)
GStreamer-INFO: 0 live bufferpool(s)
GStreamer-INFO: 0 live event(s)
RUNNING pipeline
Opening alsa device "default" for playback...
Preparing channel: (null) 44100Hz, 2 channels
Opening alsa device "default" for playback...
Preparing channel: S16_LE 44100Hz, 2 channels
If you are wondering why I do not use rhythmbox, I get millions of these
messages when I press play:
** (rhythmbox:4016): WARNING **: GstAlsaSink: got an unknown event (Type: 14)
** (rhythmbox:4016): WARNING **: GstAlsaSink: got an unknown event (Type: 14)
** (rhythmbox:4016): WARNING **: GstAlsaSink: got an unknown event (Type: 14)
--
Torquil Macdonald Sørensen, http://folk.uio.no/tmac
Reply to: