Loading second videofile generates click in sound in running first video

Started by PatrickVossen, June 08, 2022, 03:00:50 PM

Previous topic - Next topic

PatrickVossen

Hi Severino,
I am currently facing an issue where a tick occurs in the sound of a playing videoclip (in deck 1).
This occurs when a second videoclip is loaded in deck 2.

This occurs when using AdjMmsEng.dll version 13.6.0.0 and 13.6.0.16
When using AdjMmsEng.dll version 13.1.0.2, there is no click.

It does not make any difference when using 'DisplayVideoPlayer.LoadSync' or 'DisplayVideoPlayer.Sync'

The used videofiles are MP4 (AVC/AAC - full HD)
The installed codec is K-Lite version 15.4.8 or newer

Find attached the code I used

Please advise...

Best regards
Patrick Vossen

-------
There was a typo in the text file with code:
"Private Const PlayerB As Short = 2" should be "Private Const PlayerB As Short = 1"

Administrator

Hi,

could you be so kind to send the complete project from which the code is extracted? In this way I could try to reproduce the issue which doesn't seem to happen at all on our systems.

By the way, but probably unrelated to your problem, in your code you are defining PlayerB as "2" but in your Form_Load you are invoking the InitSoundSystem method with the first parameter set to 2: in your case it would be better to define PlayerB as "1" or to set the first parameter of the InitSoundSystem method to 3.

Kind Regards

Severino Delaurenti
MultiMedia Soft

PatrickVossen

Hi Severino,

I have attached 2 zip files.
https://sdc1storage.bcmserver.com/bcmmusic:bcmshared/test/VB.Net%20test%20application.zip
https://sdc1storage.bcmserver.com/bcmmusic:bcmshared/test/WPF%20test%20application.zip

One zip contains the VB.Net application and the other contains the WPF application.
Both are very basic applications with 2 video "panels" on the same form/window.

Some of the files I used for testing are:
https://sdc1storage.bcmserver.com/bcmmusic:bcmshared/test/Alan%20Walker%20-%20Faded.mp4
https://sdc1storage.bcmserver.com/bcmmusic:bcmshared/test/Classified%20ft%20David%20Myles%20-%20Inner%20Ninja.mp4


When loading Alan Walker in deck 0 and start playing, then after 10 seconds or so load the second file in deck 1, the tick very loud present in the playing track.

Best regards
Patrick Vossen

Administrator

Hi,

thanks for having sent the projects; unfortunately the issue is not reproduced in our Win10 systems so there could be an issue with your sound card driver causing a "pop" due to a CPU peak when the new video is loaded: which version of Windows are you currently using?

Kind Regards

Severino Delaurenti
MultiMedia Soft

PatrickVossen

I am using MS Windows 10 Pro build 10.0.19043 (64bit)
Soundcard is a Realtek High Definition Audio (onboard) driver dates from Jan 28th 2022.

This issue occurs on many of the +2000 system that we have placed at our customers.
These customers are "running" on an older (13.1.0.2) engine because of this tick. (OS is IOT 2015 or 2019)

But now we have an issue with AdjMmsEng.dll version 13.1.0.2 on some hardware where there is a crash our application, raised by an error the igdumdim32.dll (Intel display driver).
When I update to the latest version of AdjMmsEng.dll, the crash seems gone but I got a tick in the sound when loading a new video file.

Maybe you have a hint how to solve the tick in the sound issue?
I prefer to update all our systems to the latest version of AdjMmsEng.dll

Administrator

The crash on the mentioned driver is a known issue (a divide by zero error) and has caused a lot of headaches to our customers as well; the problem has been reported to Intel and, by looking at their support forum, the issue should be fixed inside their latest drivers or, at least, inside some of them:

"https://community.intel.com/t5/Graphics/HD-Graphics-4400-igdumdim32-dll-Exception-0xc0000094-divide-by/td-p/1038214"

This post has been around for 6 years now and we know that many people still run a bugged version of the driver on their machines, also after applying the latest update; its weird that a huge company like Intel cannot get rid of divide by zero error.

With regards to what has been changed in our component in latest builds, that could probably impact on your side, was the due to another issue on Windows 10 systems: we were forced to disable the usage of the VMR7 video renderer (the one that displays the video flow on the screen) in order to avoid an issue (the video screen being totally black or totally white during playback) due to an issue with a certain number of video drivers from different manufacturers: the VMR7 video renderer was more performant respect to the the one currently in use (the original one from DirectShow) so the glitch you are seeing could be due to a small CPU peak caused by the video renderer being less efficient.
Tomorrow I will provide you a test build using the previous VMR7 renderer so you could see if this is the case of your issue.

Kind Regards

Severino Delaurenti
MultiMedia Soft



PatrickVossen

Hi Severino,

Thanks for your explanation.

I am aware of the divide by zero bug in Intel drivers.
For that reason we use Iobit driver booster to get the latest drivers for our hardware, even if Intel does not provide updated drivers.
But on some (old) hardware there are no newer drivers :-(

As we do not see the igdumdim crash with the latest engine, is the divide by zero only appearing when using the VMR7 video engine?

Best regards
Patrick Vossen

Administrator

Hi,

it seems quite evident that the divide by zero error affects specifically the VMR7 video renderer and not the other, for this reason, if your test with the test build below will demonstrate that the audio glitch disappears with VMR7, we will add a method to the VideoPlayer object allowing to disable its usage programmatically: you could put this option inside your application's settings with a troubleshooter explaining how to avoid the divide by zero error or, eventually, a white or blank screen when the video is playing and only audio seems to work.

You can download the test build of the engine, with VMR7 enabled, from the links below:
- x86 version
www.multimediasoft.com/bins/AdjMmsEng13_test.zip
You may copy this build:
* If your machine has a x86 version of Windows
    - C:\Windows\System32
* If your machine has a x64 version of Windows
    - C:\Windows\SysWOW64


- x64 version
www.multimediasoft.com/bins/AdjMmsEng13_64_test.zip
You may copy this build:
* If your machine has a x64 version of Windows
    - C:\Windows\System32

Your feedback will be greatly appreciated

Kind Regards

Severino Delaurenti
MultiMedia Soft


PatrickVossen

Hi Severino,

Thanks for this.
I am going to test it.

Best regards
Patrick Vossen