zmwangx / rust-ffmpeg

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

Instant panic on init #144

Open n1ght-hunter opened 1 year ago

n1ght-hunter commented 1 year ago

When calling ffmpeg-next::init a panic is called if the dll aren't available. This seems counter intuitive since a result is returned but ignored. This is a simple example.

fn main() {
    if let Err(e) = ffmpeg_next::init() {
        panic!("Error initializing ffmpeg: {}", e);
    }
}

this would panic with error: process didn't exit successfully: 'target\debug\ffmpeg-testing.exe' (exit code: 0xc0000139, STATUS_ENTRYPOINT_NOT_FOUND)

Ffmpeg version: Version: 6.0-full_build

ffmpeg-next: "6.0.0"

brandonros commented 1 year ago
C:\Users\Brandon\Desktop\vcpkg\installed\x64-windows-release\bin
image

these if you installed with vcpkg on windows

dupe of https://github.com/zmwangx/rust-ffmpeg/issues/119