问答

汇集网友智慧,解决技术难题

21ic问答首页 - TAG - 音频格式
  • 想用gstreamer 改变音频格式播放到alsa声卡总是失败 sos

    [b]我的目标,想把一个raw data音频文件,将浮点型32位转化为S16_LE格式,但是总是出错,deepseek来来回回就那么试,人已经麻了,求各位大佬帮助[/b] [b]这是我的命令[/b] [b]gst-launch-1.0 filesrc location=/data/7_1.pcm ! capsfilter caps=audio/x-raw,[/b] [b]format=F32LE,rate=48000,channels=8,layout=interleaved,channel-mask=0x0000007f,en[/b] [b]dianness=1 ! audioconvert ! capsfilter caps=audio/x-raw,format=S16LE,rate=48000,[/b] [b]channels=8,layout=interleaved,channel-mask=0x0000007f,endianness=1 ! alsasink de[/b] [b]vice=hw:0,1[/b] 下面是日志输出: Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /GstPipeline:pipeline0/GstCapsFilter:capsfilter0: Filter caps do not completely specify the output format Additional debug info: ../plugins/elements/gstcapsfilter.c(453): gst_capsfilter_prepare_buf (): /GstPipeline:pipeline0/GstCapsFilter:capsfilter0: Output caps are unfixed: EMPTY ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... Freeing pipeline ...

    单片机 嵌入式 DSP MUC 声卡 音频格式

    1440浏览量 0回复量 关注量