当前位置: 技术问答>linux和unix
omap3530上的gstreamer使用alsa无法录音,找不到设备,求解!
来源: 互联网 发布时间:2017-03-08
本文导语: 最近在用omap3530开发板,做了2个SD卡用来启动linux,其中一张卡在用gstreamer做音频采集的时候遇到错误,具体就是无法找到alsasrc的录音设备,搞了半天还是没搞懂,求高人指导。具体情况如下: / # gst-launch -v alsasrc...
最近在用omap3530开发板,做了2个SD卡用来启动linux,其中一张卡在用gstreamer做音频采集的时候遇到错误,具体就是无法找到alsasrc的录音设备,搞了半天还是没搞懂,求高人指导。具体情况如下:
/ # gst-launch -v alsasrc ! alsasink
(gst-launch-0.10:555): GStreamer-WARNING **: Failed to load plugin '/opt/omap3_gstreamer/lib/gstreamer-0.10/libgstmad.so': libz.so.1: cannot open shared objy
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstAlsaSink:alsasink0: Could not open audio device for playback.
Additional debug info:
gstalsasink.c(694): gst_alsasink_open (): /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
Playback open error on device 'default': Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...
/ #
上面是简单做了一个管道,提示找不到device,在命令行中加入device=hw:0或device=hw:1等等都没用,请问如何解决。
/ # gst-launch -v alsasrc ! alsasink
(gst-launch-0.10:555): GStreamer-WARNING **: Failed to load plugin '/opt/omap3_gstreamer/lib/gstreamer-0.10/libgstmad.so': libz.so.1: cannot open shared objy
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstAlsaSink:alsasink0: Could not open audio device for playback.
Additional debug info:
gstalsasink.c(694): gst_alsasink_open (): /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
Playback open error on device 'default': Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...
/ #
上面是简单做了一个管道,提示找不到device,在命令行中加入device=hw:0或device=hw:1等等都没用,请问如何解决。
|
gst-launch -v alsasrc device=hw:0,0 ! alsasink
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。