ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.4k stars 846 forks source link

Unable to process RAW .MOV file created from iPhoneX. pthread error thrown #359

Open syedadeel2 opened 2 years ago

syedadeel2 commented 2 years ago

Describe the bug Using this to convert videos, its working so far good except any raw format. I created short 8 seconds vid via iPhoneX which is .mov, yun420p and it went to 22 frames and thrown pthread error. Not sure how to fix it.

To Reproduce Steps to reproduce the behavior:

  1. Record any video from iPhoneX with 4K at 30 FPS
  2. Open the demo app for test https://ffmpegwasm.netlify.app/#demo (I have created my own using react but demo have same issue)
  3. Open the DevTool and you will see the error.

Expected behavior As I tried to convert that format with same command on my windows via cmd its working good, but on web its not.

Screenshots image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

syedadeel2 commented 2 years ago

Adding someone also did a test and that person wrote his/her experience on website here:

Same issue as mine https://cocktailmake.github.io/posts/ffmpeg-wasm/

coder-xiaotian commented 1 year ago

Is it solved?

coder-xiaotian commented 1 year ago

Hey bro! I find a way! Adding the "-preset ultrafast" argument can solve this problem.

iketiunn commented 6 months ago

wow, oom error is gone as long as you set the -preset above and including superfast