mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-04-02 17:51:42 +09:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7a95f830a | ||
|
|
1e0e24c818 | ||
|
|
22c76fb8c3 |
2
TODO
2
TODO
@@ -250,3 +250,5 @@ Support high quality scaling with -s by using lanczos.
|
||||
Support spanning multiple monitors with region capture. This would also allow the user to record multiple monitors at the same time, the same way screen-direct works on nvidia x11.
|
||||
|
||||
When webcam support is added also support v4l2loopback? this is done by using avdevice_register_all(); and -c v4l2 -o /dev/video0; but it needs to output raw data as well instead of h264 and possibly yuv420p. Maybe add a -k yuv420p option to do that.
|
||||
|
||||
Do proper exit, to call gsr_capture_destroy which will properly stop gsr-kms-server. Otherwise there can be zombie gsr-kms-server on error.
|
||||
@@ -1,4 +1,4 @@
|
||||
project('gpu-screen-recorder', ['c', 'cpp'], version : '5.3.2', default_options : ['warning_level=2'])
|
||||
project('gpu-screen-recorder', ['c', 'cpp'], version : '5.3.3', default_options : ['warning_level=2'])
|
||||
|
||||
add_project_arguments('-Wshadow', language : ['c', 'cpp'])
|
||||
if get_option('buildtype') == 'debug'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "gpu-screen-recorder"
|
||||
type = "executable"
|
||||
version = "5.3.2"
|
||||
version = "5.3.3"
|
||||
platforms = ["posix"]
|
||||
|
||||
[config]
|
||||
|
||||
@@ -777,7 +777,7 @@ static void dict_set_profile(AVCodecContext *codec_context, gsr_gpu_vendor vendo
|
||||
//if(color_depth == GSR_COLOR_DEPTH_10_BITS)
|
||||
// av_dict_set_int(options, "profile", AV_PROFILE_H264_HIGH_10, 0);
|
||||
//else
|
||||
av_dict_set_int(options, "profile", AV_PROFILE_H264_HIGH, 0);
|
||||
av_dict_set_int(options, "profile", vendor == GSR_GPU_VENDOR_NVIDIA ? 2 : AV_PROFILE_H264_HIGH, 0);
|
||||
} else if(codec_context->codec_id == AV_CODEC_ID_AV1) {
|
||||
if(vendor == GSR_GPU_VENDOR_NVIDIA) {
|
||||
if(color_depth == GSR_COLOR_DEPTH_10_BITS)
|
||||
@@ -787,9 +787,9 @@ static void dict_set_profile(AVCodecContext *codec_context, gsr_gpu_vendor vendo
|
||||
}
|
||||
} else if(codec_context->codec_id == AV_CODEC_ID_HEVC) {
|
||||
if(color_depth == GSR_COLOR_DEPTH_10_BITS)
|
||||
av_dict_set_int(options, "profile", AV_PROFILE_HEVC_MAIN_10, 0);
|
||||
av_dict_set_int(options, "profile", vendor == GSR_GPU_VENDOR_NVIDIA ? 1 : AV_PROFILE_HEVC_MAIN_10, 0);
|
||||
else
|
||||
av_dict_set_int(options, "profile", AV_PROFILE_HEVC_MAIN, 0);
|
||||
av_dict_set_int(options, "profile", vendor == GSR_GPU_VENDOR_NVIDIA ? 0 : AV_PROFILE_HEVC_MAIN, 0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user