Python 和 Gstreamer
我正在创建一个流应用程序,使用 GStreamer 和 TCP 管道,并实现了启动、暂停和停止。
但问题是,我无法寻找,我尝试从服务器端更改播放值,然后我在客户端尝试,最后尝试同时更改两者的值,但在所有情况下它不起作用。我什至尝试暂停播放然后继续但没有任何反应。
我在搜索和音量方面遇到了这个问题。请帮忙,我到处搜索但找不到任何有用的东西。
这是我用于寻找
self.pipeline.seek_simple(gst.FORMAT_TIME, gst.SEEK_FLAG_FLUSH, time) 的代码
I'm creating a streaming application, using GStreamer with TCP pipeline, and i implemented start, pause, and stop.
but the problem is, that i can't seek, i tried to change the playback value from the server side, then i tried on the client side, and Finally tried to change the value on both at the same time, but in all cases it doesn't work. and I even tried to pause the playback then continue but nothing happens.
I'm having this problem with the seek and the volume. Any help please, I searched everywhere but i couldn't find anything that worked.
this is the code that i use for seeking
self.pipeline.seek_simple(gst.FORMAT_TIME, gst.SEEK_FLAG_FLUSH, time)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您还没有找到它,也许这可以解决问题:
下面是一个示例:使用 GStreamer 进行查找
Perhaps this could do the trick if you didn't find it yet:
Here is an example: Seeking with GStreamer
也许您忘记让总线监听搜索事件。尝试在设置管道后将其放入:
如果这不起作用,请发布更多代码。
Maybe you forgot to have the bus listening for seek events. Try putting this in after setting up your pipeline:
If this doesn't work then please post more code.