slint/examples/ffmpeg/README.md
Olivier Goffart 029857291b
Update instructions for ffmpeg on Windows
Untested, but according to #4621

Closes #4621
2025-03-24 20:15:52 +01:00

1 KiB

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
  • SetVCPKG_ROOT to where vcpkg is installed
  • Add %VCPKG_ROOT%\installed\x64-windows\bin to your path
  • Run vcpkg install llvm[clang,target-x86]:x64-windows
  • Set LIBCLANG_PATH to where clang is installed: %VCPKG_ROOT%\installed\x64-windows\bin

Screenshot of the FFmpeg Example on macOS