
Introduction
Today when I using PyQt5 framework to build a video player service, I got an error message at QMediaPlayer:
DirectShowPlayerService::doRender: Unresolved error code 0x8040266 (IDisspatch error #102)
After searching some website, I found an useful discussion: qt - DirectShowPlayerService::doRender: Unresolved error code 0x80040266 () - Stack Overflow
They proposed a possibility: the backend of QMediaPlayer only supports avi format, not mp4 format.
In order to solve the problrm, we must download the supported decoder and install it. We can choose K-lite codecs or LAV Filters, I will demonstrate the installation of K-lite in here.
Install K-lite
First we go to the website of K-lite codecs.

Choose Normal installer.
Choose Download Basic.

Download Mirror 1.
After downloading, double click to execute the program. As long as you keep selecting Next, the installation process will be completed.
Then we run the program that failed.

在使用PyQt5框架构建视频播放服务时遇到QMediaPlayer错误0x8040266,这可能是由于缺少mp4格式的支持。解决方案是下载并安装解码器,如K-lite Codec或LAV Filters。本文以K-lite Codec为例,详细介绍了下载和安装过程,最终成功解决了播放问题。
1177

被折叠的 条评论
为什么被折叠?



