[gst-devel] problem with alsasink

Mathieu tenfingers at ifrance.com
Thu Aug 28 04:44:01 CEST 2003


Hi,

i'm trying to use gstreamer with alsasink, but i got these errors when i try
to pipe through alsasink :

:: gst-launch filesrc location="file.mp3" ! mad ! "alsasink"
INFO (  642: 0) Initializing GStreamer Core Library version 0.6.3 
INFO (  642: 0) CPU features: (00000000) MMX SSE 
INFO (  642: 0) registry: loaded user_registry in 0.000139 seconds
          (/home/tfing/.gstreamer/registry.xml)
INFO (  642: 0) registry: loaded global_registry in 0.196523 seconds
          (/var/opt/gnome2/cache/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
ALSA lib pcm_hw.c:370:(snd_pcm_hw_sw_params) SNDRV_PCM_IOCTL_SW_PARAMS failed: Invalid argument

** (process:642): WARNING **: could not set sw_params: Invalid argument
pipeline doesn't want to play
GStreamer-INFO: 1 live buffer(s)
GStreamer-INFO: 0 live bufferpool(s)
GStreamer-INFO: 0 live event(s)


:: gst-launch filesrc location="file.mp3" ! mad ! "alsasink device=hw:0,0"
INFO (  643: 0) Initializing GStreamer Core Library version 0.6.3 
INFO (  643: 0) CPU features: (00000000) MMX SSE 
INFO (  643: 0) registry: loaded user_registry in 0.000154 seconds
          (/home/tfing/.gstreamer/registry.xml)
INFO (  643: 0) registry: loaded global_registry in 0.195857 seconds
          (/var/opt/gnome2/cache/gstreamer-0.6/registry.xml)
unknown: \
error: syntax error, unexpected $undefined
ERROR: pipeline could not be constructed: Invalid syntax

i am using gstreamer 0.6.3 with alsa drivers 0.9.6

is there a new syntax to specify the device to use ?
is alsasink supposed to work ?


thanks in advance,

   /mathieu




More information about the gstreamer-devel mailing list