IMPORTANT: vlc.video.takeSnapshot bug

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
DutchProgrammer
New Cone
New Cone
Posts: 4
Joined: 03 Sep 2020 17:32

IMPORTANT: vlc.video.takeSnapshot bug

Postby DutchProgrammer » 03 Sep 2020 17:59

Dear VLC Support,

First of all i want to say that i like VLC a lot. it is a very good videoplayer.
But:

I know about the 'vlc.video.takeSnapshot' method.

It is supposted to return a IPictureDisp but it is not, it only returns null/nothing - But what it does is it writes a BMP file to disk, and then you can load it.
But this is very slow if you want to get frame by frame from a IP camera.
Ive tried everything from Bitblt to PrintWindow (PrintWindow does work with Windows 10 with flags = 2, but not for Windows 7 or below) API but it only returns a black bitmap (even if i use the hwnd of the ''VLC video output 095DEAC8'' class directly)
Ive also tried to use GDI Output for video. but it all doesnt make a difference, it keeps returning a black bitmap.
If you Google for this problem there is endless of people that having this issue.
But also that nobody has a solution for it, there is a lot of talk, but thats all, nobody has a clue how to solve it.

What we need is something like a:

vlc.video.useRememberCurrentFrameBitmap() (false = disabled, true = enabled, so that it does not slow down VLC, or breaks compatibility anywhere)
vlc.video.getCurrentFrameBitmap() (returns the current frame bitmap as a IPicture or SetDIBits API that we can use)


With this it would make it much easier to use VLC in our applications and make small videos with it or apply custom filters without any lag or disk activity.
The 'video' property has not much properties, it should only take a few days for you guys to include it.
I really not in the mood to use 'libvlc.dll' directly because that will lead to other side effects (like user must have .Net installed in my case).
I just want to use the Active X plugin.

AND PLEASE, DONT POST COMMANDS IVE ALREADY READ AT GOOGLE THAT ALL USING THE HARDDISK!

Im using the latest version of VLC ActiveX.

DutchProgrammer
New Cone
New Cone
Posts: 4
Joined: 03 Sep 2020 17:32

Re: IMPORTANT: vlc.video.takeSnapshot bug

Postby DutchProgrammer » 04 Sep 2020 10:10

Nevermind people, i like VLC a lot, and i use it to play all my movies with subtitles.

But i figured out that FFPlay.exe (FFMEG) can open a IP camera stream also, and thanks god that supports Bitblt for Windows 7 + 10 (for XP does not work if window is offscreen), that was all i needed.

If you VideoLan guys ever get it working so we can capture a snapshot without using harddisk let me know.
Its still important to me because FFPlay has its issues like a window will be shown at taskbar which has to be dealt with.

The VLC ActiveX makes it all so easy, if only it could get the frame from memory instead of using the harddisk it would be great.

DutchProgrammer
New Cone
New Cone
Posts: 4
Joined: 03 Sep 2020 17:32

Re: IMPORTANT: vlc.video.takeSnapshot bug

Postby DutchProgrammer » 04 Sep 2020 17:58

Anyone reading this? - Or you all pooping at Google with bullshit information?


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 7 guests