打印

想用gstreamer 改变音频格式播放到alsa声卡总是失败

[复制链接]
67|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
岳佳佳|  楼主 | 2025-2-24 15:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我的目标,想把一个raw data音频文件,将浮点型32位转化为S16_LE格式,但是总是出错,deepseek来来回回就那么试,人已经麻了,求各位大佬帮助

这是我的命令
gst-launch-1.0 filesrc location=/data/7_1.pcm ! capsfilter caps=audio/x-raw,
format=F32LE,rate=48000,channels=8,layout=interleaved,channel-mask=0x0000007f,en
dianness=1 ! audioconvert ! capsfilter caps=audio/x-raw,format=S16LE,rate=48000,
channels=8,layout=interleaved,channel-mask=0x0000007f,endianness=1 ! alsasink de
vice=hw:0,1

下面是日志输出:
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 ...

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

粉丝