mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 14:44:17 +00:00
FS-8977: Add support for NVENC H264
This commit is contained in:
1 parent
ad72c7f56c
commit
77f70e002e
5 files changed
+69
-34
No files matched your search
@@ -88,6 +88,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
|
||||
fh->mm.ab = 128;
|
||||
fh->mm.vencspd = SWITCH_VIDEO_ENCODE_SPEED_DEFAULT;
|
||||
fh->mm.vprofile = SWITCH_VIDEO_PROFILE_BASELINE;
|
||||
fh->mm.try_hardware_encoder = 1;
|
||||
|
||||
if (*file_path == '{') {
|
||||
char *timeout;
|
||||
@@ -168,6 +169,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
|
||||
}
|
||||
}
|
||||
|
||||
if ((val = switch_event_get_header(fh->params, "try_hardware_encoder"))) {
|
||||
fh->mm.try_hardware_encoder = switch_true(val);
|
||||
}
|
||||
|
||||
if ((val = switch_event_get_header(fh->params, "fps"))) {
|
||||
float ftmp = atof(val);
|
||||
if (ftmp > 0.0f) {
|
||||
|
||||
Reference in new issue
Block a user