aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-27 20:42:44 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-27 20:42:44 +0200
commit25af1c81d08d0512cf53746efaccd2e5f690aa94 (patch)
treee6c3ef2c104c7000cd85bd0ba5dd29f4539b34b2 /src
parentec22eb6da4507178d68ad703272c072dd63035bc (diff)
manjaro *****
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f1d3bcf..2c73cb5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1577,7 +1577,12 @@ int main(int argc, char **argv) {
}
if(!video_codec_f) {
- fprintf(stderr, "Error: your gpu does not support '%s' video codec\n", video_codec == VideoCodec::H264 ? "h264" : "h265");
+ const char *video_codec_name = video_codec == VideoCodec::H264 ? "h264" : "h265";
+ fprintf(stderr, "Error: your gpu does not support '%s' video codec. If you are sure that your gpu does support '%s' video encoding and you are using an AMD/Intel GPU,\n"
+ " then it's possible that your distro has disabled hardware accelerated video encoding for '%s' video codec.\n"
+ " This may be the case on corporate distros such as Manjaro.\n"
+ " You can test this by running 'vainfo | grep VAEntrypointEncSlice' to see if it matches any H264/HEVC profile. vainfo is part of libva-utils.\n"
+ " On such distros, you need to manually install mesa from source to enable H264/HEVC hardware acceleration, or use a more user friendly distro.\n", video_codec_name, video_codec_name, video_codec_name);
exit(2);
}