gstreamer - 从网站播放音频..缓冲问题

发布于 2024-08-20 15:37:14 字数 301 浏览 6 评论 0原文

我正在尝试使用以下方式播放声音文件:

gst-launch playbin uri="some URL" 其中,URL 是该文件的整个 url。

它可以播放该文件,但存在缓冲问题,我无法收听大部分音频。

是否有一个简单的命令行参数可以解决这个缓冲问题。

示例:使用 appsrc 存储临时缓冲区然后播放它...代码片段将不胜感激!

注意:我在 Windows 上,GStreamer 安装只有一些标准插件。但它确实有 appsrc 和 appsink 插件。

谢谢

I am trying to play a sound file using :

gst-launch playbin uri="some URL" where, URL is the whole url of that file.

It plays this file, but there is buffering problem and I can't listen to most of the audio.

Is there a simple command line argument that will solve this buffering issue.

Example: use of appsrc to store a temporary buffer and then play it ... a code snippet would be appreciated!

note: I am on windows and the GStreamer installation only has some standard plugins. But it does have appsrc and appsink plugins.

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随梦而飞# 2024-08-27 15:37:14

使用 gst-launch playbin2 uri="some URL" buffer-size=size 检查 gst-inspect playbin2 以获取 playbin2 元素的更多属性。

Use gst-launch playbin2 uri="some URL" buffer-size=size check gst-inspect playbin2 for more properties of the playbin2 element.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文