[Bug 680904] wavparse src can not link to audioconvert when using USB sound card

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Aug 8 23:47:57 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=680904
  GStreamer | gstreamer (core) | 0.10.36

--- Comment #35 from soho123.2012 at gmail.com 2012-08-09 06:47:52 UTC ---
Hi Tim,


I find the format is not support by
static GstCaps *
gst_alsa_detect_formats (GstObject * obj, snd_pcm_hw_params_t * hw_params,
    GstCaps * in_caps)

the static array:
pcmformats[] does not support SND_PCM_FORMAT_S16_LE ,SND_PCM_FORMAT_U16_LE
I modify function gst_alsa_detect_formats to support that, 
then the pipeline 
gst-launch-0.10 filesrc location=/bin/audio_src_48k_le.wav ! wavparse !
audioconvert ! alsasink device="hw:0,0"
can work normally.
================================================================================
But the pipeline(for MP3) still get error:

gst-launch-0.10 -v filesrc location=/var/tmp/usb/sda1/audio_src/1503-9.mp3 ! m
ad ! audioconvert ! audioresample ! alsasink device="hw:0,0"

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstMad:mad0.GstPad:src: caps = audio/x-raw-int,
endianness=(int)4321, signed=(boole
an)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)2
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data
flow error.
Additional debug info:
gstbasesrc.c(2625): gst_base_src_loop ():
/GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPipeline:pipeline0/GstMad:mad0.GstPad:src: caps = NULL
Freeing pipeline ...
#
===========================================================================
Also, 

When I try to play .wav file via Rygel, 

it still get not-linked error,


(rygel:881): Playbin-DEBUG: rygel-playbin-player.vala:75: Changing playback
state to PLAYING.
(rygel:881): Rygel-DEBUG: rygel-changelog.vala:74: 'TransportState = PLAYING'
logged
(rygel:881): Rygel-DEBUG: rygel-changelog.vala:55: LastChange sent
(rygel:881): Playbin-WARNING **: rygel-playbin-player.vala:218: Error from
GStreamer element playbin20: gstbasesrc.c(2625): gst_base_src_loop ():
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
streaming task paused, reason not-linked (-1)
(rygel:881): Playbin-WARNING **: rygel-playbin-player.vala:221: Going to
STOPPED state

==========================================================================

Do you have any suggestion about play MP3 file and play via Rygel?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list