zmwangx / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
1.3k stars 203 forks source link

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

Open wrightwriter opened 1 year ago

wrightwriter commented 1 year ago

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 1 year ago

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

samuelkuz commented 1 year ago

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 :)