我在试着编一个视频/音频配音编辑器。尝试在vala/genie中混合多个音频文件。使用加法器或交织器。在
我需要将这个gst启动命令发送到Genie或Vala代码,但是使用:1。-Gst.Element.link2.-Gst.ElementFactory.make3.-请求和其他。。。请不要使用parse_launch()
gst-launch-0.10 interleave name=i ! audioconvert ! wavenc ! filesink location=file.wav filesrc location=file1.wav ! decodebin ! audioconvert ! "audio/x-raw-int,channels=1" ! queue ! i. filesrc location=file2.wav ! decodebin ! audioconvert ! "audio/x-raw-int,channels=1" ! queue ! i.
我有个精灵密码:
^{pr2}$我不知道出了什么问题。在
多亏了Che Bizarro,我用精灵中的这个简单代码解决了这个问题。在
在手动构建管道时,需要考虑很多细节,特别是将元素链接在一起时。我建议您使用可用的解析器包装器,这样更方便。看看下面的片段,它的功能与您的完全相同,但在内部处理细节(在我看来更干净)
祝你好运! 格鲁纳
只要文件格式相同(.wav或.mp3),下面的Vala代码就可以工作。在
您应该使用gstreamer-1.0编译它:
^{pr2}$要使用它:
希望这能帮你开始。在
相关问题 更多 >
编程相关推荐