media-kit / media-kit

A cross-platform video player & audio player for Flutter & Dart.
https://github.com/media-kit/media-kit
MIT License
937 stars 140 forks source link

fix: HW acceleration on Linux with Intel GPU #820

Closed oliver-hrkltz closed 1 month ago

oliver-hrkltz commented 1 month ago

Add --hwdec=VAAPI parameter to mpv setup to fix the HW acceleration on Linux with Intel GPU.

abdelaziz-mahdy commented 1 month ago

check this too https://github.com/media-kit/media-kit/issues/819#issuecomment-2107955762 , if it works then no need to apply it in video_output file

alexmercerind commented 1 month ago

It's not a good idea to enforce VAAPI for every single machine out there. The selection of hwdec also depends upon the version of mpv that you're using etc., which can again greatly vary on GNU/Linux, since we use system installation of libmpv.