autoaudiosrc : Failed to find a usable audio source

hustxyj hustxyj at sina.com
Tue Jun 24 02:56:02 PDT 2014


Hi all:

 

I installed both gstreamer-0.10 and gstreamer-1.3.2 on win xp.

I tried this command:

gst-launch-1.0 -v -m autoaudiosrc ! audioconvert ! audioresample !
autoaudiosink

whose output as below:

 

Setting pipeline to PAUSED ...

Pipeline is PREROLLING ...

Got message #16 from element "autoaudiosink0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL,
new-state=(GstState)GST_STATE_READY,
pending-state=(GstState)GST_STATE_VOID_PENDING;

Got message #17 from element "audioresample0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL,
new-state=(GstState)GST_STATE_READY,
pending-state=(GstState)GST_STATE_VOID_PENDING;

Got message #18 from element "audioconvert0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL,
new-state=(GstState)GST_STATE_READY,
pending-state=(GstState)GST_STATE_VOID_PENDING;

Got message #21 from element "autoaudiosrc0" (warning): GstMessageWarning,
gerror=(GError)NULL, debug=(string)"gstautodetect.c\(334\):\
gst_auto_detect_find_best\ \(\):\
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0:\012Failed\ to\ find\
a\ usable\ audio\ src";

WARNING: from element /GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0:
Resource not found.

Additional debug info:

gstautodetect.c(334): gst_auto_detect_find_best ():
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0:

Failed to find a usable audio src

Got message #26 from element "autoaudiosrc0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL,
new-state=(GstState)GST_STATE_READY,
pending-state=(GstState)GST_STATE_VOID_PENDING;

Got message #27 from element "pipeline0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_NULL,
new-state=(GstState)GST_STATE_READY,
pending-state=(GstState)GST_STATE_PAUSED;

Got message #31 from element "audioresample0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_READY,
new-state=(GstState)GST_STATE_PAUSED,
pending-state=(GstState)GST_STATE_VOID_PENDING;

Got message #32 from element "audioconvert0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_READY,
new-state=(GstState)GST_STATE_PAUSED,
pending-state=(GstState)GST_STATE_VOID_PENDING;

Got message #35 from pad "fake-audio-src:src" (stream-status):
GstMessageStreamStatus,
type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_CREATE,
owner=(GstElement)"\(GstFakeSrc\)\ fake-audio-src",
object=(GstTask)"\(GstTask\)\ fake-audio-src:src";

Got message #36 from element "fake-audio-src" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_READY,
new-state=(GstState)GST_STATE_PAUSED,
pending-state=(GstState)GST_STATE_VOID_PENDING;

Got message #37 from element "autoaudiosrc0" (state-changed):
GstMessageStateChanged, old-state=(GstState)GST_STATE_READY,
new-state=(GstState)GST_STATE_PAUSED,
pending-state=(GstState)GST_STATE_VOID_PENDING;

Got message #38 from pad "fake-audio-src:src" (stream-status):
GstMessageStreamStatus,
type=(GstStreamStatusType)GST_STREAM_STATUS_TYPE_ENTER,
owner=(GstElement)"\(GstFakeSrc\)\ fake-audio-src",
object=(GstTask)"\(GstTask\)\ fake-audio-src:src";

Got message #39 from element "pipeline0" (stream-start):
GstMessageStreamStart, group-id=(uint)0;

Got message #45 from element "audioconvert0" (warning): GstMessageWarning,
gerror=(GError)NULL, debug=(string)"gstbasetransform.c\(2139\):\
gst_base_transform_handle_buffer\ \(\):\
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0:\012not\ negotiated";

WARNING: from element /GstPipeline:pipeline0/GstAudioConvert:audioconvert0:
not negotiated

Additional debug info:

gstbasetransform.c(2139): gst_base_transform_handle_buffer ():
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0:

not negotiated

Got message #47 from element "fake-audio-src" (error): GstMessageError,
gerror=(GError)NULL, debug=(string)"gstbasesrc.c\(2933\):\
gst_base_src_loop\ \(\):\
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstFakeSrc:fake-audio-s
rc:\012streaming\ task\ paused\,\ reason\ not-negotiated\ \(-4\)";

ERROR: from element
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstFakeSrc:fake-audio-s
rc: Internal data flow error.

Additional debug info:

gstbasesrc.c(2933): gst_base_src_loop ():
/GstPipeline:pipeline0/GstAutoAudioSrc:autoaudiosrc0/GstFakeSrc:fake-audio-s
rc:

streaming task paused, reason not-negotiated (-4)

ERROR: pipeline doesn't want to preroll.

Setting pipeline to NULL ...

Freeing pipeline ...

 

When using the 0.10 version, everything worked fine.

Anyone can help?

Thanks!

 

--

Yongjian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140624/e9959d0c/attachment-0001.html>


More information about the gstreamer-devel mailing list