gstreamer:交错 2 个音频 - 链接错误
我正在尝试按照交错 GStreamer 文档中给出的方式交错两个音频文件:
gst-launch interleave name=i ! audioconvert ! wavenc ! filesink location=file.wav filesrc location=file1.wav ! \
decodebin ! audioconvert ! "audio/x-raw-int,channels=1" ! queue ! i.sink0 filesrc location=file2.wav ! \
decodebin ! audioconvert ! "audio/x-raw-int,channels=1" ! queue ! i.sink1
但是执行此命令会出现以下错误:
0:00:00.125000000 2264 00332BC0 ERROR GST_PIPELINE Grammar.tab.c:656:gst_parse_perform_link:无法将queue0链接到i
如果我删除第二个 filesrc
相关命令,即“filesrc location=file2.wav 之后的所有命令,该命令运行正常。上述命令有什么问题?
谢谢
I am trying to interleave two audio files as given in the interleave GStreamer documentation:
gst-launch interleave name=i ! audioconvert ! wavenc ! filesink location=file.wav filesrc location=file1.wav ! \
decodebin ! audioconvert ! "audio/x-raw-int,channels=1" ! queue ! i.sink0 filesrc location=file2.wav ! \
decodebin ! audioconvert ! "audio/x-raw-int,channels=1" ! queue ! i.sink1
But executing this command gives the following error:
0:00:00.125000000 2264 00332BC0 ERROR GST_PIPELINE grammar.tab.c:656:gst_parse_perform_link: could not link queue0 to i
If I remove the second filesrc
related commands i.e. all the command after "filesrc location=file2.wav, the command runs fine. What is wrong with the above command?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
交错元素的接收器垫仅是请求,所以我打赌当 gst-launch 尝试链接元素时 i.sink0 垫不存在。留下一个句点 (i.) 告诉 gst-launch 尝试所有 pad,直到找到合适的 pad。
对于除了最基本的示例之外的任何内容,您最好使用简单的高级语言(如 python)手动创建管道。
参见
try
the sink pads for the interleave element are request only, so i'm betting the i.sink0 pad does not exist when gst-launch tries to link the elements. leaving a single period (i.) tells gst-launch to try all pads until a suitable one is found.
for anything but the most basic examples, you're better off to create the pipeline manually in an easy high-level language like python.
see also