diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-03 17:37:02 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-03 17:37:02 +0200 |
commit | 9560c47cfd941522fe1ecbc6597c2ff4c730e62e (patch) | |
tree | 31cfcfeea5aa42e694718249f90b3f1b0dee4bf7 | |
parent | 55d92505339bb0519308c6786a9fade9b2598415 (diff) |
Output h264_software in --info output if available
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 62e417a..7877b00 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1094,7 +1094,7 @@ static void usage_full() { fprintf(stderr, "\n"); fprintf(stderr, " --info\n"); fprintf(stderr, " List info about the system (for use by GPU Screen Recorder UI). Lists the following information (prints them to stdout and exits):\n"); - fprintf(stderr, " Supported video codecs (h264, hevc, hevc_hdr, av1, av1_hdr, vp8, vp9, (if supported)).\n"); + fprintf(stderr, " Supported video codecs (h264, h264_software, hevc, hevc_hdr, av1, av1_hdr, vp8, vp9, (if supported)).\n"); fprintf(stderr, " Supported capture options (window, focused, screen, monitors and portal, if supported by the system).\n"); fprintf(stderr, " If opengl initialization fails then the program exits with 22, if no usable drm device is found then it exits with 23. On success it exits with 0.\n"); fprintf(stderr, "\n"); @@ -1669,6 +1669,8 @@ static void list_gpu_info(gsr_egl *egl) { static void list_supported_video_codecs(gsr_egl *egl, bool wayland) { if(find_h264_encoder(egl->gpu_info.vendor, egl->card_path)) puts("h264"); + if(find_h264_software_encoder()) + puts("h264_software"); if(find_hevc_encoder(egl->gpu_info.vendor, egl->card_path)) { puts("hevc"); if(wayland) |