-
想用gstreamer 改变音频格式播放到alsa声卡总是失败
我的目标,想把一个rawdata音频文件,将浮点型32位转化为S16_LE格式,但是总是出错,deepseek来来回回就那么试,人已经麻了,求各位大佬帮助这是我的命令gst-launch-1.0filesrclocation=/data/7_1.pcm!capsfiltercaps=audio/x-raw,format=F32LE,rate=48000,channels=8,layout=interleaved,channel-mask=0x0000007f,endianness=1!audioconvert!capsfiltercaps=audio/x-raw,format=S16LE,rate=48000,channels=8,layout=interleaved,channel-mask=0x0000007f,endianness=1!alsasinkdevice=hw:0,1下面是日志输出:SettingpipelinetoPAUSED...PipelineisPREROLLING...ERROR:fromelement/GstPipeline:pipeline0/GstCapsFilter:capsfilter0:FiltercapsdonotcompletelyspecifytheoutputformatAdditionaldebuginfo:../plugins/elements/gstcapsfilter.c(453):gst_capsfilter_prepare_buf():/GstPipeline:pipeline0/GstCapsFilter:capsfilter0:Outputcapsareunfixed:EMPTYERROR:pipelinedoesn'twanttopreroll.SettingpipelinetoNULL...Freeingpipeline...
2025-02-24 0