Qt学习笔记 使用QMediaPlayer报错No decoder available for type...

 

在学习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

相关文章:

  • 2022-01-16
  • 2021-10-18
  • 2021-10-18
  • 2021-11-07
  • 2021-04-25
  • 2021-08-25
猜你喜欢
  • 2021-10-12
  • 2021-09-28
  • 2021-07-24
  • 2021-10-11
  • 2022-12-23
  • 2021-12-31
相关资源
相似解决方案