question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webm videos with alpha transparency flickering

See original GitHub issue

When playing back .webm files with alpha transparency, the video flickers, rapidly appearing and disappearing constantly. You can reproduce with the code below in the Video Context code playground and the following webm files from Google Chrome’:

These files appear to play back normally with alpha transparency in a video element.

webm files with no alpha transparency, such as this one, appear to play back normally.

var canvas = document.getElementById("canvas");
window.vc = new VideoContext(canvas);

var videoNode1 = vc.video("https://simpl.info/videoalpha/video/soccer1.webm", 0);

videoNode1.connect(vc.destination);

videoNode1.start(0);
videoNode1.stop(50);

vc.play();

Browsers: Can reproduce in Chrome(only tested v66.0.3359.139) Cannot reproduce in Firefox(only tested v59.0.2) - The video plays back normally. VideoContext does not seem to work at all in Safari Have not tested Edge

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Sacharifiedcommented, Mar 14, 2019

@PTaylour I’m no longer seeing this issue on Chrome 72 or 73. There were some Chromium changes which caused issues with WebGL on MBPs with specific GPU versions recently, so it may be that case that we saw different results due to differences in the GPUs between our machines and the bug only affected a limited set of OpenGL GPU renderers.

I’m marking this as closed.

0reactions
PTaylourcommented, Sep 13, 2018

I’m still unable to reproduce. Just tried version 69.0.3497.81

👇chrome performance profiler with network and CPU throttling.

webm-profile-soccer.json.zip

We’re both testing on Mac, using the playground and same code snippet 🤔

Have you reproduced on multiple machines / with a clean chrome profile?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No BG Transparency for WebM or Mov Outputs even ... - Reddit
When exported as a .gif, the background appears transparent, but when exporting as a video file that supports alpha channels (such as .mov...
Read more >
Transparent WebM (with alpha channel) - Discord Support
I think the reason for it not working natively is because discord sets a black background behind the image by default.
Read more >
Alpha transparency in Chrome video
More videos on YouTube​​ Chrome 31 now supports video alpha transparency in WebM. In other words, Chrome takes the alpha channel into account ......
Read more >
690968 - Consider supporting Alpha channel recording
MediaRecorder does not support alpha channel in the incoming ... I then edited the mimeType to 'video/webm;codecs=vp9' and voilà: the bottom ...
Read more >
Free Transparent Footage Stock Video Footage - Videezy
3063 Best Transparent Footage Free Video Clip Downloads from the Videezy community. Free Transparent Footage Stock Video Footage licensed under creative ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found