rust-ffmpeg icon indicating copy to clipboard operation
rust-ffmpeg copied to clipboard

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

Open wrightwriter opened this issue 3 years ago • 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.

wrightwriter avatar Nov 06 '22 17:11 wrightwriter

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

so1ve avatar Feb 03 '23 13:02 so1ve

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

samuelkuz avatar Feb 05 '23 04:02 samuelkuz