使用 GStreamer 播放保存在数组中的原始 PCM
我正在使用 ogg/vorbis 使用 C++ 进行工作,
我有一个数组,其中包含从 vorbis 文件 (.ogg) 解码的原始 PCM 数据。 .ogg 文件已使用 vorbis_synthesis_pcmout 使用 libvorbis 进行解码。这将使用每个通道的原始 PCM 填充多维数组。
我确信 Gstreamer 能够读取纯 PCM,我已经搜索过该插件但没有成功。我确信我只是忽略了一些简单的事情。
I am working in C++ with ogg/vorbis
I have an array with raw PCM data decoded from a vorbis file (.ogg). The .ogg file has been decoded using libvorbis using vorbis_synthesis_pcmout. This fills a multidimentional array with the raw PCM for each channel.
I'm sure Gstreamer is capable of reading pure PCM, I have searched for the pluginto but to no avail. I'm sure I am just overlooking something simple here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能正在寻找
appsrc
。You might be looking for
appsrc
.PCM 文件通常以 .wav 格式存储。所以你可以使用 wavparse 插件来播放原始 PCM。
A PCM file is generally stored in .wav format. SO you can use wavparse plugin to play raw PCM.