Gstreamer - 警告 没有可用于类型 'application/x-id3' 的解码器



命令:$ gst-play-1.0 /home/username/test/baby.mp3

结果:

Press 'k' to see a list of keyboard shortcuts.
Now playing /home/whiteknight/NXP_test/baby.mp3
WARNING No decoder available for type 'application/x-id3'.
WARNING debug information: gsturidecodebin.c(931): unknown_type_cb (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0
ERROR Your GStreamer installation is missing a plug-in. for file:///home/whiteknight/NXP_test/baby.mp3
ERROR debug information: gsturidecodebin.c(998): no_more_pads_full (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0:
no suitable plugins found:
gstdecodebin2.c(4600): gst_decode_bin_expose (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: ID3 tag (application/x-id3)
Reached end of play list.

怎么解决?

sudo apt install gstreamer1.0-plugins-good

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-id3demux.html

所以它必须是gst插件的一部分。

https://packages.ubuntu.com/xenial/amd64/gstreamer1.0-plugins-good/filelist

...
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstgoom2k1.so
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgsticydemux.so
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstid3demux.so
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstimagefreeze.so
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstinterleave.so
...

我在Chromebook上安装的Ubuntu/Xenial中运行的gmusicbrowser遇到了这个问题。

我通过从apt安装gstreamer1.0-plugins-ugly,gstreamer1.0-plugins-bad,gstreamer1.0-plugins-good和gstreamer1.0-pulseaudio解决了这个问题。

我还为 FLAC 解码器安装了 Ubuntu-restricted-extras apt 包。

然后,GmusicBrowser可以播放MP3和FLAC。

最新更新