mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 15:14:35 +00:00
![]() Tidy up the main examples/README.md. All the main examples now live in a table with a thumbnail and description. Then each project has it's own README.md with more details. |
||
---|---|---|
.. | ||
player | ||
build.rs | ||
Cargo.toml | ||
main.rs | ||
pause.svg | ||
play.svg | ||
player.rs | ||
README.md | ||
scene.slint |
FFmpeg Example
This example application demonstrates the use of ffmpeg with Rust to play back video.
Building
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:
- install vcpkg
vcpkg install ffmpeg --triplet x64-windows
- Make sure
VCPKG_ROOT
is set to wherevcpkg
is installed - Make sure
%VCPKG_ROOT%\installed\x64-windows\bin
is in your path