Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoFxProcessor does not render properly in some cases #2793

Open
4 tasks done
utdemir opened this issue Oct 30, 2023 · 1 comment
Open
4 tasks done

VideoFxProcessor does not render properly in some cases #2793

utdemir opened this issue Oct 30, 2023 · 1 comment
Labels
video-ml Machine learning features on video stream like background blur

Comments

@utdemir
Copy link

utdemir commented Oct 30, 2023

What happened and what did you expect to happen?

We're trying to use VideoFxProcessor for background replacement in our browser app.

However, for some users, they intermittently get this issue where the background renders fine, but their face doesn't. See the image:

Screenshot 2023-10-31 at 9 36 43 AM

They either describe it as rapid flickering, or:

Mine would go black for a few seconds, then back to not black but flickering, then back to black.. constantly the whole time

Once they end up in this state, it doesn't fix itself unless they reload (we only start one VideoFxProcessor when they log in and it is reused across multiple calls).

Relevant parts of the codebase:

    const isSupported = await VideoFxProcessor.isSupported(
      processorLogger,
      true,
    ).catch((err) => {
      logger.error(`VideoFxProcessorError: ${err}`);
      return false;
    });
    if (isSupported) {
      this.videoFxProcessor = await VideoFxProcessor.create(
        processorLogger,
        {
          backgroundBlur: {
            isEnabled: false,
            strength: 'medium' as const,
          },
          backgroundReplacement: {
            isEnabled: true,
            backgroundImageURL: getBackgroundImageUrl(effect),
            defaultColor: undefined,
          },
        }
      );
    }

   ...


    const transform = new DefaultVideoTransformDevice(processorLogger, device, [
      this.videoFxProcessor,
    ]);

Have you reviewed our existing documentation?

Reproduction steps

Unfortunately I do not have a reproducer. I only have reports and screenshots from two other people. Their system is not unusual either - recent Apple Silicon Macbooks with recent versions of Chrome. And that is not consistent for them either - one user reports only seeing it one in three meetings.

Amazon Chime SDK for JavaScript version

3.16.0

What browsers are you seeing the problem on?

Chrome, Electron

Browser version

Chrome 118, Electron 32.2

Meeting and Attendee ID Information.

Browser console logs

@michhyun1 michhyun1 added the video-ml Machine learning features on video stream like background blur label Jan 23, 2024
@kenpp
Copy link

kenpp commented Mar 18, 2024

Here we have the same problem with our product.

In our products, this bug may occur if you turn the background image on and off or switch between background images and background blur multiple times.

However, reproducibility has not been achieved.

Amazon Chime SDK for JavaScript version
3.19.0

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
video-ml Machine learning features on video stream like background blur
Projects
None yet
Development

No branches or pull requests

3 participants