slint/examples/ffmpeg
Nigel Breslaw 048c0eaf08
Update example readmes
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.
2024-08-13 11:35:39 +02:00
..
player Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
build.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Cargo.toml Bump version number to 1.7.2 2024-08-09 09:52:17 +00:00
main.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
pause.svg Fix reuse compliance check 2024-01-18 15:11:43 +01:00
play.svg Fix reuse compliance check 2024-01-18 15:11:43 +01:00
player.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
README.md Update example readmes 2024-08-13 11:35:39 +02:00
scene.slint Remove stray imports of StyleMetrics 2024-07-12 09:13:35 +02:00

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 where vcpkg is installed
  • Make sure %VCPKG_ROOT%\installed\x64-windows\bin is in your path

Screenshot of the FFmpeg Example on macOS