slint/examples/ffmpeg
Tasuku Suzuki 3571396159
ffmpeg example: Change background color to black (#3204)
In general, black background better matches the aesthetics of video
playback apps, making the viewing experience more immersive.
2023-08-02 07:36:38 +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.2.0 2023-07-25 10:44:53 +00:00
main.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
pause.svg Add an example that shows how to combine ffmpeg with Slint 2023-06-01 17:36:52 +02:00
play.svg Add an example that shows how to combine ffmpeg with Slint 2023-06-01 17:36:52 +02:00
player.rs Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
README.md Add an example that shows how to combine ffmpeg with Slint 2023-06-01 17:36:52 +02:00
scene.slint ffmpeg example: Change background color to black (#3204) 2023-08-02 07:36:38 +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