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.

ffmpeg.wasm is not "technically" production ready!

See original GitHub issue

I believe it makes sense to add an option to disable the WASM threads and use a single core (be it that it makes it slower). ffmpeg.js is massive and extremely slow and does not support most of the options we need, so it is not an option for us. At the same time, any attempt to use CORP and COEP disables Stripe, Intercom, and many other necessary integrations on our production website, which in effect makes ffmpeg.wasm not production-ready.

What happened to SharedArrayBuffer after the Spectre is fairly new and it’s going to take some time for all the other companies out there to jump on the cross-origin isolation bandwagon.

Currently, there is only one way to use ffmpeg.wasm in production, which is by signing up for an origin trial to be able to use SharedArrayBuffers without cross-origin isolation, but this only works on Chrome, and only until Chrome 103, after which we are back to square one. There is some hope according to this article that options like Cross-Origin-Opener-Policy: same-origin-allow-popups might work in the future, but no one knows yet how many of those integrations would break again, back to my initial statement, without this option ffmpeg.wasm is not going to be actually production-ready.


_Originally posted in https://github.com/ffmpegwasm/ffmpeg.wasm/issues/137#issuecomment-975383348_

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:13

github_iconTop GitHub Comments

1reaction
CrypticSignalcommented, Dec 18, 2021

@NayamAmarshe Unusable in what way? My website (GitHub repo: https://github.com/CrypticSignal/av-converter) is using FFmpeg WASM and it seems to be working okay, although it would be nice if the transcoding speed was as fast as running FFmpeg directly in the terminal.

1reaction
hoomanaskaricommented, Dec 10, 2021

@julienbeisel I consulted with Stripe about the issue, unfortunately, this is something that has to be fixed by them, and they are not willing to solve it anytime soon. Same with Intercome. Because they both use iframes and CORP/COEP will block all unsafe iframes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FFmpeg for browser and Node, powered by WebAssembly
Say you want to transcode video right in the browser after capturing it with MediaRecorder and producing say, HLS chunks. Getting output is...
Read more >
FFmpeg.wasm, a pure WebAssembly / Javascript ... - ITNEXT
In this post, I would like to share how to install and use ffmpeg.wasm and also technical details behind to support your usage....
Read more >
Running FFMPEG with WASM in a Web Worker
I love FFMPEG.js, it's a neat tool that is compiled with asm.js`and it let's me build JS web apps that can quickly edit...
Read more >
how to validate the video file with FFmpeg.wasm
so I can know if it is a valid mp4 or any audio type in general or not. I'm trying to do something...
Read more >
Tweets with replies by Jacob Beckerman (@JacobBeckerman ...
I know for Mastershot, I went for ffmpeg.wasm which worked really well for more comppex edits. ... How to build a production ready...
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