首页 > 解决方案 > GStreamer appsrc 不会向 autoaudiosink 播放音频

问题描述

我在使用 Pion 的 GStreamer 时遇到问题,我希望这个小组可以为我指明正确的方向,我不确定下一步该往哪里看

这有效

appsrc is-live=true do-timestamp=true name=src ! queue ! opusparse ! opusdec ! audioconvert ! wavenc ! filesink location=./test2.wav

这有效

audiotestsrc ! audioconvert ! pulsesink device-name=IQaudIOCODEC

但这并不

appsrc is-live=true do-timestamp=true name=src ! queue ! opusparse ! opusdec ! audioconvert ! audioresample! queue ! pulsesink volume=1 device-name=IQaudIOCODEC

当我查看 DOT 文件时,所有内容都已链接起来,看起来应该可以正常工作,但是没有音频!

我得到的唯一警告是: WARN audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps

编辑:我在 Mac 上使用 autoaudiosink 进行了测试,它工作正常。我在 Linux (raspberry pi 4) 上做了同样的管道,但它没有。没有新的警告。

标签: gogstreamerpulseaudio

解决方案


推荐阅读