zmwangx/rust-ffmpeg

Fix for Windows crash (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

wrightwriter opened this issue · 2 comments

Windows 10, ffmpeg 5.0.1 and ffmpeg 5.1.3.
Followed the instructions exactly, downloaded full shared build from https://www.gyan.dev/ffmpeg/builds/.
Set environment variables, restarted PC.

FIX:

The fix was to copy all dll files from ffmpeg to the root rust directory.

PROPOSAL:

Include a fix for this in the build instructions. I don't know how it's done.

so1ve commented

gosh. . . I'm using it with Tauri and you solved my problem! ! ! Thanks! ! !

I'm new to Rust, and I'm working on a small project to capture my Windows desktop. I've stumbled upon this crate for encoding my bgr8 pixel bitmap I get from Windows. I was running into this same issue so I want to run through the steps I did in-case any noobies like myself run into the issue.

  1. Follow the installation on the wiki
  2. Copy the .dll files in the ffmpeg/bin/ directory to the .cargo/bin/ directory
  3. Rebuild/Run your project and hope it now works :)