本文介绍了如何修复Qt5中的gstreamer错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个小的mp3播放器作为玩具项目,因此从Qt开始创建GUI.当我尝试播放mp3文件时,出现此错误.
I want to create a small mp3 player as a toy project so started with Qt for the GUI. When I try to play an mp3 file i get this error.
Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1,
mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2,
parsed=(boolean)true'."
Error: "Your GStreamer installation is missing a plug-in."
我在谷歌搜索后安装了gstreamer及其插件
I installed gstreamer and it's plugins after googling around
sudo apt-get install gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav
但我仍然会收到错误消息.我该如何解决?
But I still get the error. How do I fix it?
推荐答案
我遇到了同样的问题.使用下面的代码后,它已修复.
I had the same problem.After using below code it fixed.
sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-plugins-ugly
Qt Creator 3.4.2 Ubuntu 14.04
Qt Creator 3.4.2 Ubuntu 14.04
这篇关于如何修复Qt5中的gstreamer错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!