examples/ffmpeg/README.md
This example application demonstrates the use of ffmpeg with Rust to play back video.
On Linux, you need to install ffmpeg and alsa. For example on Debian based systems:
sudo apt-get install clang libavcodec-dev libavformat-dev libavutil-dev libavfilter-dev libavdevice-dev libasound2-dev pkg-config
On macOS, you can use brew:
brew install pkg-config ffmpeg
On Windows:
vcpkg install ffmpeg --triplet x64-windowsVCPKG_ROOT to where vcpkg is installed%VCPKG_ROOT%\installed\x64-windows\bin to your pathvcpkg install llvm[clang,target-x86]:x64-windowsLIBCLANG_PATH to where clang is installed: %VCPKG_ROOT%\installed\x64-windows\binFor Android:
CARGO_NDK_SYSROOT_PATH=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/darwin-x86_64/sysroot (replace darwin-x86_64 with the tuple suitable for your host OS)apk with cargo apk build --target aarch64-linux-android --lib