Error: Qt5 Video render error code 80040218 - c++

When running an application in Qt5 made ​​using the QWebView, I accessed a page with a video player in HTML5, but the video does not play and qt/directshow shows the following error:
DirectShowPlayerService::doRender: Unresolved error code 80040218
DirectShowPlayerService::doRender: Unresolved error code 80040218
Details:
Qt5.1.1 MingW4.8 32bit
Windows 7 64bit
I suspect that is why my Windows is 64bit, but the *QT/MingW** runs on 32bit and maybe miss some DLL/LIB.
How can I resolve this?
Thanks.

The error code is rather generic: 0x80040218 VFW_E_CANNOT_RENDER "No combination of filters could be found to render the stream." and the typical cause is that the application cannot decode media feed because it lacks decoding components, such as codec for this video feed is not installed/available.

install K-Lite_Codec_Pack_1540_Basic in your machine, this error not related to pyqt5 and any other

You may check out 'LAV Filters'. It solved my rendering problem: 'DirectShowPlayerService::doRender: Unresolved error code 80040266'.
Download installer: http://forum.doom9.org/showthread.php?t=156191 And the source code: https://github.com/Nevcairiel/LAVFilters

If you are a developer, you can download and use ffmpeg to decode and encode your file to avi(windows) or mov(mac).

Related

How to fix "SDL_Init failed -1" in buildroot Raspberry image?

I'm trying to compile Navit for Raspberry Pi 3 with Buildroot image (WPE Framework included). There is only WPE Framework running on startup (no x server) therefore I would like to display Navit using framebuffer directly. I know there is support for this feature. I have configured Navit as follow:
https://i.stack.imgur.com/cDZ3O.png
but I'm not able to run it anyway. There is following error:
error:graphics_sdl:graphics_sdl_new:SDL_Init failed -1
I've installed SDL from buildroot. How to fix it or make SDL more verbose to find out what is the reason of this -1 error (missing dependencies, incompatible lib version, Navit configration problems, missing system variables pointing to specified dependencies)?
It turned out that Navit is very quiet about SDL error messages. -1 Error is just very general information... I had to recompile Navit sources and add SDL_GetError() function to code to find out what is a real reason.
The problem was missing mouse. I don't need it so I had to set up:
export SDL_NOMOUSE=1

Using node-ffi with Electron not working (cannot find message text for message number 0x%1...)

I'm actually trying to use a dll with electron but I've got an error when it reaches the line:
const ffi = require("ffi");
Error
Translation : The system cannot find message text for message number
0x%1 in the message file for %2
Using Electron 1.8.2
newbie here. After some research it might be because you're trying to laod a 32-bit DLL in a 64-bit environment.
Check this post for more info.

Media playback error : Could not initialize Xv output

I found a simple media player on github : https://github.com/wxWidgets/wxWidgets/blob/master/samples/mediaplayer/mediaplayer.cpp
I copied it in a new project and ran it. It seemed to go well until I tried to open a .mp3 file. I got this error: "Media Playback error. Could not initialize Xv output".
I work on Ubuntu in a virtual machine so I thought that maybe I'm missing something. I opened Rhythmbox and tried to play the same file and I got the same error. I searched on google and found this:
https://askubuntu.com/questions/750418/my-rhythmbox-not-playing-mp3
I installed gstreamer plugins-ugly and plugins-bad, ubuntu-restricted-extra. Also, I installed libxv-dev because I thought it may have something to do with all of this. It didn't work. I reinstalled Rhythmbox and it works just fine now. I thought I had solved the problem I had with the code (mediaplayer) as well but I didn't. I still get the same error.
How can i make it work? And why do I get this error in the first place?
I forgot to mention. I'm also getting these messages :

Playing *.avi files with Qt

I am trying to play *.avi file (~900MB) with this code:
QMediaPlayer* player = new QMediaPlayer(this);
player->setMedia(QUrl::fromLocalFile("mes1.avi"));
player->setVideoOutput(ui->videoWidget);
player->play();
where ui->videoWidget is QVideoWidget and every time I play it I am getting this error code (in Application Output console)
Since google doesn't help, this is my only choice...
DirectShowPlayerService::doRender: Unresolved error code 0x80040266 (IDispatch error #102)
EDIT1:
I have installed K-Lite Codec Pack 12.2.6.
EDIT2:
My application is 32bit, but it shouldn't be a problem since K-Lite include 32bit (source).
Use vlc-qt, and you will find it is so easy to play all sorts of video on all platforms, even XP, which has been abandoned by qt long time ago.

how to get started with PCM?

I wanted to work on Intel PCM. I follwed the below link:
https://software.intel.com/en-us/articles/intel-performance-counter-monitor
I downloaded the code, i started to study example pcm.cpp. But Im not getting any proper understanding. Documentation is not that much clear.
http://intel-pcm-api-documentation.github.io/classPCM.html
I tried to run , pcm.x ,it gave basic information then showed some error like:
"Trying to use Linux perf events...
Linux Perf: Error on programming generic event #0 error: Invalid argument
Access to Intel(r) Performance Counter Monitor has denied (Unknown error)."
Unknown error! I cant figure out why its not accessible. I used with sudo also(root privileges).
Any suggestions how I can start working with it? Where to start?
Found a workaround here by Roman Dementiev that worked for me:
As a workaround you can disable perf usage in the PCM Makefile by removing "-DPCM_USE_PERF".