在学习Qt自带示例的时候,发现Media Player Example 不能正常播放视频,提示错误:
Warning: “No decoder available for type ‘video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3.1, profile=(string)main, codec_data=(buffer)014d401fffe1001a674d401f965201405ff2c941818190000003001000000303284001000468eb7352, width=(int)640, height=(int)360, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1’.”
解决办法:
https://blog.csdn.net/luopeng1021/article/details/82426147
运行报错:
Warning: “No decoder available for type ‘video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0164002affe1001a6764002aac2c6a81e0089f966e0202028000000300800000194201000468ee3cb0, level=(string)4.2, profile=(string)high’.”
安装:sudo apt-get install gstreamer1.0-libav 即可解决
————————————————
版权声明:本文为CSDN博主「光速时光」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/luopeng1021/article/details/82426147