Rau*_*ulp 5 gstreamer python-gstreamer qtgstreamer
我试图在命令提示符下运行某些管道来播放视频,并且经常收到这些错误/消息/警告:
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".
Run Code Online (Sandbox Code Playgroud)
以下是管道:
gst-launch filesrc location=path to the mp4 file ! playbin2 ! queue ! ffmpegcolorspace ! autovideosink
Run Code Online (Sandbox Code Playgroud)
或者
gst-launch -v filesrc location=path to the mp4 file ! qtdemux name=demuxer ! { queue ! decodebin ! sdlvideosink } { demuxer. ! queue ! decodebin ! alsasink }
Run Code Online (Sandbox Code Playgroud)
或者
gst-launch -v playbin uri=path to the mp4 file
Run Code Online (Sandbox Code Playgroud)
或者
gst-launch -v playbin2 uri=path to the mp4 file
Run Code Online (Sandbox Code Playgroud)
当我们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
Run Code Online (Sandbox Code Playgroud)x:y(x 和 y 的含义)是什么?
答案,
看起来您两端的 gstreamer 没有正确安装。playbin2、decodebin2 是基础插件,是基础插件的一部分
1 是的,您可能缺少一些插件
2 使用gst-inspect命令检查是否可用
3 从 C 代码中,您可以管理状态、注册回调、了解更多 是的,仍然需要缺少的插件
4 我想 gstreamer 网站会更好
5 不确定这个,如果你以正确的方式安排结果会有帮助