![]() Rev = "4a600e9 " // Although it is possible to link to the master branch of vcpkg, it may be better to fix a specific revision in order to avoid unwanted breaking changes. To begin, install the cargo-vcpkg tool: cargo install cargo-vcpkgĪdd vcpkg dependencies: This is especially handy for users who download your project as they can build all necessary dependencies by running a single command.Ĭare that by using this method building ffmpeg may take a lot of time, although after the first time the generated library files may be cached. Using vcpkg to manage ffmpeg dependencies may be easier as all the configuration is included in your Cargo.toml. You can build specific FFmpeg version explicitly: # macOS & FFmpeg 5.0 zsh utils/mac_ffmpeg.rs release/5.0 Compiling FFmpeg through cargo-vcpkg These scripts build latest stable FFmpeg by default. To build a FFmpeg with some common parameters: (don't forget to install the build dependencies) # macOS zsh utils/mac_ffmpeg.rs # Linux bash utils/linux_ffmpeg.rs # Windows # You need a Linux machine for cross compiling, then copy the artifact to your # Windows machine. If you find the compilation complicated, there are some helpful compiling scripts for you (under the utils folder). To use your first rsmpeg demo, you need to compile your FFmpeg: Minimum Supported Rust Version is 1.70.0(Stable channel). Taking advantage of Rust's language design, you can build robust multi-media projects even quicker than using FFmpeg's C API. Rsmpeg is a thin&safe layer above the FFmpeg's Rust bindings, it's main goal is safely exposing FFmpeg inner APIs in Rust as much as possible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |