Gstreamer缺少插件

时间:2012-05-03 09:40:46

标签: 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".

以下是管道:

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

问题

  1. 我想知道,如果我错过了插件来执行此操作。
  2. 我如何知道哪个插件负责哪个或找到了哪个?
  3. 通过c代码实现管道的好处是什么。仍然需要缺少的插件。
  4. 从Synaptic管理器安装缺少的插件或构成Gstreamer site(base,good,bad,ugly)
  5. 是否合适?
  6. 当我们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
    
  7. x:y(x和y是什么意思)是什么?

2 个答案:

答案 0 :(得分:1)

答案,

看起来你端的gstreamer安装不正确。 playbin2,decodebin2是基本的,也是基础插件的一部分

1是的,你可能会遗漏一些插件

2使用gst-inspect命令检查它是否可用

3从C代码中,您可以管理状态,注册回调,了解更多信息   是的,仍然需要缺少插件

4我猜gstreamer网站会更好

5不确定这个,如果你以正确的方式安排结果会有所帮助

答案 1 :(得分:0)

很可能是GST_PLUGIN_PATH不正确。请设置gstremer的安装位置的正确路径。