Qt5媒体播放器示例出现错误。

3
需要您的帮助,我正在使用qt5,并且它有一个内置的媒体播放器示例。当我播放一个编解码器为H.264的示例视频时,会出现以下错误:
警告:“无法解码类型为'video/x-h264,stream-format=(string)avc,alignment=(string)au,level=(string)3.1,profile=(string)main,codec_data=(buffer)014d401fffe10023674d401f967200800936028100000e100002bf203460016e40016e45ef7c1e1108a24001000468de3c80,width=(int)1024,height=(int)576,framerate=(fraction)25/1,pixel-aspect-ratio=(fraction)1/1'的流。”
我的Ubuntu 14.04中可用g-streamer 那么有什么建议吗?
2个回答

2

在Ubuntu中正确解码视频需要一个额外的仓库。尝试这个,它对我有效:

sudo add-apt-repository ppa:mc3man/trusty
sudo apt-get update
sudo apt-get install gstreamer1.0-libav
sudo apt-get install gstreamer0.10-ffmpeg

该 PPA 不再存在。 - Stefan Monov

2
我的解决方案很简单:
sudo apt install ubuntu-restricted-extras

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接