Python中文
首页
教程
问答
标签
搜索
登录
注册
如何在python中将async=false添加到Gstreamer splitmuxsink元素Audio/video/H264组合
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>Gstreamer 1.8.2安装在使用C920的嵌入式设备上。Debian linux。我有一个很好的Gstreamer管道,它使用了新的splitmuxsink,几乎可以正常工作。 我有splitmuxsink很好地处理了一个“基本管道”。在</p> <p>第一个管道工作并写入一个长文件mp4、音频和视频,同时将一个预览jpeg流传递给一个单独处理的appsink。希望这对任何人都有用。在</p> <pre><code> self.pipeline=Gst.parse_launch('uvch264src auto-start=true iframe-period=1000 name=src1 src1.vfsrc ! queue ! appsink drop=true name=asink max-buffers=2 emit-signals=true sync=false src1.vidsrc ! video/x-h264,width=1280,height=720,framerate=30/1,stream-format=byte-stream ! queue ! h264parse ! muxout.video_0 alsasrc do-timestamp=true device="plughw:CARD=C920,DEV=0" ! audio/x-raw,format=S16LE,rate=32000,depth=16,channels=1 ! queue ! voaacenc ! queue ! aacparse ! muxout.audio_0 mp4mux name=muxout ! filesink sync=false location=%s' % location1) </code></pre> <p>但是当我将filesink转换为“splitmuxsink”时,它只创建预览,而不启动流的文件录制端。我不知道如何(在Python中以编程方式)设置splitmuxsink的属性来复制我在filesink插件上所做的sync=false。我是要附加到splitmuxsink上的pad,还是设置sink=xxx标签,然后让静态pad或element调整“child”元素的属性?我相信这个问题是导致管道文件分割部分失败的原因。我要找的东西是: <a href="https://stackoverflow.com/questions/27547500/how-to-resume-playing-after-paused-using-gstreamer">How to resume playing after paused using gstreamer?</a> 根据这个答案:<a href="https://stackoverflow.com/questions/19504257/gstreamer-pipeline-with-vader-element-stalls-on-pause-when-used-with-a-tee">gstreamer pipeline with VADER element stalls on PAUSE when used with a tee</a></p> <p>Pipeline v2(运行appsink端,但SplitMuxLink保持暂停状态)</p> ^{pr2}$ <p>如您所见,pipeline v2没有显式引用sync=false,因为splitmuxsink没有该属性。所以这一边在暂停后就不会启动了。在</p> <p>我确信这只是一个小小的调整,以创建正确的标签并在</p> <pre><code> self.muxp = self.pipeline.get_by_name('muxout') </code></pre> <p>将子元素设置为async false,但我看不到它-muxout元素(我的splitmuxsink的标签)没有async属性。在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>在与开发团队通信后,我被告知split muxsink中有一个bug,开发人员在1.8.3中对其进行了更正。对1.8.3的更新解决了这个问题。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何添加虚拟方法
5 回答
如何添加表示整数的擦边字符串?
9 回答
如何添加要在Bokeh中使用的新font.ttf文件?
1 回答
如何添加要显示的矩阵XY轴编号和XY轴
1 回答
如何添加计数?
2 回答
如何添加计数器函数?
3 回答
如何添加计数器列来计算数据帧中另一列中的特定值?
9 回答
如何添加计数器来跟踪while循环中的月份和年份?
5 回答
如何添加计数并删除countplot的顶部和右侧脊椎?
8 回答
如何添加计时器wx.应用程序更新窗口对象的主循环?
6 回答
如何添加评论到帖子?PostDetailVew,Django 2.1.5
10 回答
如何添加评论拉梅尔亚姆
7 回答
如何添加诸如矩阵Python/Pandas之类的数据帧?
9 回答
如何添加谷歌地点自动完成到Flask?
4 回答
如何添加超时、python discord bot
5 回答
如何添加超过1dp的检查
8 回答
如何添加距离方法
4 回答
如何添加跟随游戏的敌人精灵
5 回答
如何添加路径以便python可以找到程序?
6 回答
如何添加身份验证/安全性以使用happybase访问HBase?
3 回答