我尝试在命令提示符下运行某些管道来播放视频,但经常收到这些错误/消息/警告:
WARNING: erroneous pipeline: no element "qtdemux"
WARNING: erroneous pipeline: no element "playbin2"
WARNING: erroneous pipeline: no element "decodebin2"
ERROR: pipeline could not be constructed: no element "playbin".
以下是管道:
gst-launch filesrc location=path to the mp4 file ! playbin2 ! queue ! ffmpegcolorspace ! autovideosink
或
gst-launch -v filesrc location=path to the mp4 file ! qtdemux name=demuxer ! { queue ! decodebin ! sdlvideosink } { demuxer. ! queue ! decodebin ! alsasink }
或
gst-launch -v playbin uri=path to the mp4 file
或
gst-launch -v playbin2 uri=path to the mp4 file
问题
- 我想知道,我是否缺少执行此操作的插件。
- 我如何知道哪个插件负责哪个插件或在哪里找到?
- 通过 C 代码实现管道有什么好处?还需要缺少的插件吗?
- 从 Synaptic 管理器或 Gstreamer site(base,good,bad,ugly) 安装缺少的插件是否合适?
当我们执行
gst-inspect
时,我们得到如下输出:postproc: postproc_hdeblock: LibPostProc hdeblock filter libvisual: libvisual_oinksie: libvisual oinksie plugin plugin v.0.1 flump3dec: flump3dec: Fluendo MP3 Decoder (liboil build) vorbis: vorbistag: VorbisTag vorbis: vorbisparse: VorbisParse vorbis: vorbisdec: Vorbis audio decoder vorbis: vorbisenc: Vorbis audio encoder coreindexers: fileindex: A index that stores entries in file coreindexers: memindex: A index that stores entries in memory amrnb: amrnbenc: AMR-NB audio encoder amrnb: amrnbdec: AMR-NB audio decoder audioresample: audioresample: Audio resampler flv: flvmux: FLV muxer flv: flvdemux: FLV Demuxer
x : y(x 和 y 的含义)是什么?
最佳答案
答案,
看来您两端的 gstreamer 没有正确安装。 playbin2、decodebin2 是基础插件,是基础插件的一部分
1 是的,您可能缺少一些插件
2 使用gst-inspect命令检查是否可用
3 通过 C 代码,您可以管理状态、注册回调、了解更多信息 是的,仍然需要缺少的插件
4 我想 gstreamer 网站会更好
5 不确定这个,如果您以正确的方式安排结果会有帮助
关于Gstreamer 缺少插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10428814/