它是一种decodebin2的bug
看到我已经测试了一些管道并了解以下内容
管道1:
gst-launch filesrc location="filename" !
decodebin2 name=dec !
queue ! ffmpegcolorspace ! autovideosink dec. !
queue ! audioconvert ! audioresample ! autoaudiosink
此管道1 适用于所有容器格式,如 .mkv、.mp4、ogg
但是当您提供编解码器扩展文件时,它会产生您所说的问题
我已经用 .h264 文件对其进行了测试
管道2:
gst-launch filesrc location="smal.h264" ! decodebin2 name=dec ! queue !
autovideosink dec. ! queue ! autoaudiosink
管道3:
gst-launch filesrc location="smal.aac" ! decodebin2 name=dec ! queue !
autovideosink dec. ! queue ! autoaudiosink
都有同样的问题,无法提前预加载,也无法显示无效焊盘连接错误
如果您只尝试单个有效的焊盘连接,那么它们可以正常工作
管道4:
gst-launch filesrc location="smal.h264" ! decodebin2 ! autovideosink
管道5:
gst-launch filesrc location="smal.aac" ! decodebin2 ! autoaudiosink
管道 4 和 5 工作正常
甚至
gst-launch filesrc location="/home/dk/Music/Vangelis - Alpha.mp3" !
decodebin2 ! audioconvert ! audioresample ! autoaudiosink
这也可以正常工作....
现在要更多地了解这个错误并修复它,我们需要研究和更改 decodebin2 源代码......>!!!!