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

Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #105 on: September 12, 2017, 06:47:19 pm »
Quote
from the contextual popmenu select
"Show media file property"

i mean the error then your Dialog was a Messagebox or?
that has nothing to do with the MediaInfo.dll

Quote
KVideo_EnableXySubFilter(FALSE);
is working fine, thanks :)
that is good.

greets

Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #106 on: September 13, 2017, 05:20:24 pm »
Emil

I think that displaying overlay while using subtitles is not a good idea.

why?
i think that Show good.

my problem only i can not scroll the Bitmap

greets
« Last Edit: September 13, 2017, 05:22:30 pm by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 452
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #107 on: September 13, 2017, 05:27:02 pm »
I am not speaking of that, but when you display the OverLayTime while XySubFilter is running then they overlap, that looks like a bug, at least in the c++ demo version.

Priority must be given to subtitles.
« Last Edit: September 13, 2017, 05:28:57 pm by Patrice Terrier »

Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #108 on: September 13, 2017, 05:30:09 pm »
I am not speaking of that, but when you display the OverLayTime while XySubFilter is running then they overlap, that looks like a bug, at least in the c++ demo version.

Priority must be given to subtitles.

Ok you are right.. then i let it. :)
What i can do return the Handle of the Window so you can Skinned it. (what your think?)

greets
« Last Edit: September 13, 2017, 05:35:07 pm by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 452
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #109 on: September 13, 2017, 05:38:32 pm »
Quote
What i can do return the Handle of the Window so you can Skinned it. (what your think?)
Sorry, i do not understand, which window are you speaking about?


Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #110 on: September 13, 2017, 05:41:36 pm »
Quote
What i can do return the Handle of the Window so you can Skinned it. (what your think?)
Sorry, i do not understand, which window are you speaking about?

from MediaInfo Window.
that not Show good with a skinned Application.

greets
« Last Edit: September 13, 2017, 05:43:35 pm by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 452
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #111 on: September 14, 2017, 09:22:20 am »
I did check with the VS_C++ version attached to the previous, and the menu "Show media file property" still shows the Korean error message.
(MediaInfo.dll is in the \X64 EXE subfolder)

The KVideoPlayer_x61.dll Embedded within the rar file of the project is from
date 09-12-2017
time 17:30
size 748 Kb (765952 bytes)

MediaBox does not use MediaProperty, thus fixing the struct TMediaProperty makes no difference, it does not work anymore.
I had to restore the same DLL that was from
date 08-28-2017
size 749 Kb (770048 bytes)

On the screen shot, see also how the time ellapsed overlay conflicts with the subtitle of XySubFilter.

...
« Last Edit: September 14, 2017, 09:25:05 am by Patrice Terrier »

Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #112 on: September 14, 2017, 09:23:00 am »
please i have add the new DLL for 10 second..

Mediabox.. with DLL Version 1.1.11.0
Works by me
Please compare the old API with the new one.

load yesterday from the first post  http://www.objreader.com/index.php?topic=113.msg1521#new

Quote
MediaBox does not use MediaProperty
no? How then Duration and PlayBackLength works ?

Code: [Select]
            KVideo_OpenFile(szURL);
            if (KVideo_GetPlayerState() != psNotReady) {
                ReadSRT(szURL);
                if (KVideo_Play()) {
                    wcscopy(gP.bin.lastmedia, szURL);
                    ClearMetadata();

                    TMediaProperty aMediaProperty;
                    KVideo_GetMediaProperty(&aMediaProperty);
                    MFTIME MaxPos = aMediaProperty.PlaybackLength / 10000;
                    gP.videoW = aMediaProperty.Video_Width;
                    gP.videoH = aMediaProperty.Video_Height;
                    gP.duration = aMediaProperty.PlaybackLength;
                    KVideo_SetVolume(VolumeFromSlider());


greets
« Last Edit: September 14, 2017, 09:58:09 am by Emil Weiss »

Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #113 on: September 14, 2017, 11:30:01 am »
i have upload KVideoPlayer_x64_ver.1.1.12.0.rar

only for Information.
all Korean MessageBox text Translated.

http://www.objreader.com/index.php?topic=110.msg1523#msg1523

greets

Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #114 on: September 14, 2017, 02:14:44 pm »
MediaInfo.dll does not work on Creators.

The solution would be to disable this feature from the menu when using the current OS, or say "Works only on Seven"  ::)

See the attached dialog

Ok ;) ;) it's open Source... LOL  ALL movie or only one.
https://sourceforge.net/projects/mediainfo/files/source/mediainfo/0.7.99/

https://sourceforge.net/settings/mirror_choices?projectname=mediainfo&filename=binary/mediainfo-gui/0.7.99/MediaInfo_GUI_0.7.99_Windows.exe
if you want you can test this if a Problem with my lib or MediaInfo self.
the question no idea if the file for X64.

greets
« Last Edit: September 14, 2017, 02:45:49 pm by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 452
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #115 on: September 15, 2017, 01:42:37 pm »
Emil

Finally, i have understood why you could not run some of my GDImage demos.

The reason is, because most of the time you are installing the projects using a rather long path.
GDImage stores the "private font path" into the same property used for a regular font, and this property is only
WCHAR usefont[64];
Historitically 64 was large enough to store most of the tandard font name like "ARIAL" or "TAHOMA"
but it becomes too short to store a long path to a private font like this one
"D: \\VS3017\MadVR_demo\\MediaBox\\MediaBox\\X64\\Debug\\Resource\\caption.ttf"
that is causing a buffer overflow  :(

I never noticed that myself because i avoid to embed multiple path together.

Now GDImage handles the extra size, while keeping the buffer size to 64 to avoid breaking existing code,
and keeping the ZOBJECT structure unchanged.

« Last Edit: September 15, 2017, 05:26:05 pm by Patrice Terrier »

Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #116 on: September 15, 2017, 02:15:38 pm »
This is great that you can locate the Problem..
I hope it works well in the next time with long paths properly

I have finished my menu and can now work properly again ;)

greets
« Last Edit: September 15, 2017, 02:18:12 pm by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 452
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #117 on: September 18, 2017, 05:21:51 pm »
I have been fighting with memory problem to allocate dynamically SRT support into the VS C++ skinned version.
 
I did try with vector, but as soon as i add this instruction
vector<TSRT> g_srt;
then KVideo_Play() plays only audio without video !!!!


Thus i switched to new and delete [] to allocate dynamically the SRT array,
then no more problem with KVideo_Play(), except when switching from one video with SRT to another without SRT, and going back to the prvious one, then BOUM memory crash.

Finally i have used my good old ListBox trick to allocate memory dynamically, and this one seems to be the only workable solution  :-X

When using a dependency utility, KVIDEOPLAYER_X64.DLL seems to cause havoc.  :-\
« Last Edit: September 18, 2017, 05:46:46 pm by Patrice Terrier »

Emil Weiss

  • Full Member
  • ***
  • Posts: 214
Re: KVideoPlayer API (madVR interface)
« Reply #118 on: September 18, 2017, 06:37:21 pm »
Quote
When using a dependency utility, KVIDEOPLAYER_X64.DLL seems to cause havoc
No.. you has no permission see in to the File with Dependency Walker or other similar tool, that is all.

greets

« Last Edit: September 18, 2017, 07:05:56 pm by Emil Weiss »

Patrice Terrier

  • Administrator
  • *****
  • Posts: 452
    • zapsolution
Re: KVideoPlayer API (madVR interface)
« Reply #119 on: September 18, 2017, 08:03:58 pm »
Here is the latest build of the VS C++ skinned version.

Much changes inside of the code, including direct SRT support and transparent overlay to display subtitles using two font size (the largest for full screen mode).

This version is using LISTBOX to manipulate dynamic memory allocation without the drawback of other methods.  ::)

You can compare the SRTsubtitle.h with the one used in MediaBox to see the differences.

...
« Last Edit: September 18, 2017, 08:14:37 pm by Patrice Terrier »