ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Multithreading is not working on any Chromium-based browser, but it's working perfectly on Firefox.

Đang mở
#597 15 bình luận 15 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
17.8k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
I was recently working on a practice project where my goal was to convert a webm video to mp4 format on the client side. Initially, I was able to achieve this using a single-threaded worker version. However, I later attempted to implement a multithreaded worker version, which unfortunately did not succeed. I spent some time troubleshooting to identify where I went wrong, but I couldn't pinpoint the issue.

To further investigate, I tested the conversion process in a playground environment, and I discovered that even the playground couldn't perform video conversion in multithreaded mode. Subsequently, I tried using different web browsers based on the Chromium engine, but they all failed in this aspect. Surprisingly, Firefox was the only browser that successfully executed the multithreaded video conversion.

**To Reproduce**
Anyone can reproduce this scenario from [FFMpeg PlayGround](https://ffmpegwasm.netlify.app/playground/). Just need to enable the Use Multithreading flag. Transcoding process will be stuck at 0%.

**Expected behavior**
The expected behavior involves the successful execution of multithreaded video conversion across various web browsers, including Chromium-based ones.

**Some Screenshots about this issue**
![Screenshot 2023-10-05 161717](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/38936021/e651f097-ff30-4802-8ee3-5e3df49db88c)
![Screenshot 2023-10-05 162000](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/38936021/88930a70-2e07-4958-af2d-e62aaa5ee86e)
![Screenshot 2023-10-05 162202](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/38936021/8d648274-9970-4a8b-935d-5545f4db1860)

**Desktop**
- OS: Windows 11
- Browser: Chrome v117.0.5938.150, Microsoft Edge v117.0.2045.47, Vivaldi v6.2.3105.54, Firefox v117.0.1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.