Author Topic: KVideoPlayer API (madVR interface)  (Read 658 times)

Emil Weiss

  • Full Member
  • ***
  • Posts: 139
Re: KVideoPlayer API (madVR interface)
« Reply #15 on: August 07, 2017, 09:07:09 am »
Quote
What is the purpose of using SlowMotion, that is not clear to me ?

Slow Motion..

i have create a Combo like this..
Code: [Select]
    // Combo PlaybackRate
    dwStyle = WS_CHILD | WS_VISIBLE | CBS_AUTOHSCROLL | CBS_DROPDOWNLIST | WS_VSCROLL | WS_DISABLED;
    hcbPlaybackRate = CreateWindowEx(0, L"COMBOBOX", TEXT(""), dwStyle, 535, H + 32, 70, 22, hOwner, (HMENU)ID_CBPLAYBACKRATE, hInst, NULL);
    TCHAR PlaybackRateItems[21][22] = {
        TEXT("0.1"), TEXT("0.2"), TEXT("0.3"), TEXT("0.4"), TEXT("0.5"), TEXT("0.6"), TEXT("0.7"), TEXT("0.8"), TEXT("0.9"), TEXT("1"),
        TEXT("2"), TEXT("3"), TEXT("4"), TEXT("5"), TEXT("6"), TEXT("7"), TEXT("8"), TEXT("9"), TEXT("10"), TEXT("12"), TEXT("16")
    };
    TCHAR B[22];
    IntI = 0;
    memset(&B, 0, sizeof(B));
    for (IntI = 0; IntI < 21; IntI++)
    {
        wcscpy_s(B, sizeof(B) / sizeof(TCHAR), (TCHAR*)PlaybackRateItems[IntI]);

        SendMessage(hcbPlaybackRate, (UINT)CB_ADDSTRING, (WPARAM)0, (LPARAM)B);
    }
    // Value 1 wird verwendet
    SendMessage(hcbPlaybackRate, CB_SETCURSEL, (WPARAM)9, (LPARAM)0);

    if (Font != 0)
    {
        SendMessage(hcbVRenderer, WM_SETFONT, (WPARAM)(Font), int(true));
        SendMessage(hcbPlaybackRate, WM_SETFONT, (WPARAM)(Font), int(true));
    }

you can see also the TEXT goes from 0.1 > 16 floating Point

also SlowMotion is you can Play the Video < 1/10 from 1 also 0.1 or from 1 (normal) to 16x field. (or 32x if your want LOL )
i hope you understand my bad english.

Quote
When using the new DLL, i have this message at startup when used on Creators
Library (d3dx9d_45.dll or older versions) for transparent overlay image is not present.

if that a Problem i can remove(deactivate) the message to..
that is the overlay Picture..

greets
« Last Edit: August 07, 2017, 09:44:00 am by Emil Weiss »

Emil Weiss

  • Full Member
  • ***
  • Posts: 139
Re: KVideoPlayer API (madVR interface)
« Reply #16 on: August 07, 2017, 09:40:33 am »
Quote
This popup warning dialog is also causing havoc with my GUI because it shows up at the time i am displaying the controls.

popup Dialog is deactivate..

that is what your needed if your want have Overlay Bitmap Support test with W10 and works.
https://www.microsoft.com/en-us/download/details.aspx?id=35

greets
« Last Edit: August 07, 2017, 10:01:17 am by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 376
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #17 on: August 07, 2017, 12:26:58 pm »
Emil

Playing the same movie.

The LAV version use almost 15% of the CPU, and 392 Mb of ram.
While, the MF version use only 1.5% of the CPU, and 182 Mb of ram.

You should try to convert the DLL to C++ rather than Delphi to see if it makes any difference.  :-\

Emil Weiss

  • Full Member
  • ***
  • Posts: 139
Re: KVideoPlayer API (madVR interface)
« Reply #18 on: August 07, 2017, 12:32:06 pm »
Emil

Playing the same movie.

The LAV version use almost 15% of the CPU, and 392 Mb of ram.
While, the MF version use only 1.5% of the CPU, and 182 Mb of ram.

You should try to convert the DLL to C++ rather than Delphi to see if it makes any difference.  :-\

no idea what your do.
i have a simple core quad q9650 3GHZ a smal GForce GTX 780 TI

if Play 4K movies directly from Internet with no more then 13% of CPU. (2160p(4K hd)
on the other side i am use DTS and many other stuff which MF not used what your think is the difference?
MF Version do nothing, only Play the Video in poor Quality. ;)

No Problem my Application can eat 1GB Ram if needed, As long as the memory is released correctly afterwards.


greets
« Last Edit: August 07, 2017, 01:22:27 pm by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 376
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #19 on: August 07, 2017, 01:34:38 pm »
Quote
no idea what your do
.

The CPU resource should stay below 10%

If i don't play a movie, my player uses only 0% of the CPU while playng animation.

I shall post the project with full C++ source code, then you will be to test it yourself.

The CPU resource seems to increase much when using the seek pointer to a new movie location.
Note: i am trying with a full HD movie 1920x1080 (Avatar)
with 720P the CPU is much lower.
« Last Edit: August 07, 2017, 01:40:40 pm by Patrice Terrier »

Emil Weiss

  • Full Member
  • ***
  • Posts: 139
Re: KVideoPlayer API (madVR interface)
« Reply #20 on: August 07, 2017, 01:46:50 pm »
i am Play a  movie (2K)2560x1440 17% CPU and 380MB Ram that is not a Problem for me.
after stop it the ram goes to 21MB

greets
« Last Edit: August 07, 2017, 01:48:59 pm by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 376
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #21 on: August 07, 2017, 01:54:56 pm »
Emil

I am just giving you the feedback of what i see, by me there is no visual quality difference between a movie played with "Movie & TV" (MF) and madVR, however the CPU resource being used are very different.

What would be nice is that we could use the same movie for testing purpose, do you have a video url i could use?

or perhaps we could just use the link to my demo for that purpose, as it is a full HD one.
http://www.objreader.com/download/video/MBox64.mp4

Emil Weiss

  • Full Member
  • ***
  • Posts: 139
Re: KVideoPlayer API (madVR interface)
« Reply #22 on: August 07, 2017, 02:00:35 pm »
Quote
I am just giving you the feedback of what i see, by me there is no visual quality difference between a movie played with "Movie & TV" (MF) and madVR, however the CPU resource being used are very different.
i understand and is not a Problem for me ;)

Quote
or perhaps we could just use the link to my demo for that purpose, as it is a full HD one.
ok i am load it.

greets