[Solved][PyQt5] DirectShowPlayerService::doRender: Unresolved error code 0x8040266 (IDisspatch error

 

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.

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值