gpt4 book ai didi

c - 当仅向视频管道提供音频时,Gstreamer 管道卡在预滚动状态

转载 作者:太空狗 更新时间:2023-10-29 14:55:24 28 4
gpt4 key购买 nike

如果我有这样的管道:

gst-launch filesrc location="/home/dk/Music/Vangelis - Alpha.mp3" !
decodebin2 name=dec !
queue ! ffmpegcolorspace ! autovideosink dec. !
queue ! audioconvert ! audioresample ! autoaudiosink

如何在输入源中没有视频时播放,有视频时播放?我得到的是:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

最佳答案

您可以将 autovideosink 的 async-handling 属性设置为 true:

... ! autovideosink async-handling=true

这将允许 audiosink 在 vi​​deosink 等待时播放声音。

关于c - 当仅向视频管道提供音频时,Gstreamer 管道卡在预滚动状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8527734/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com