FS-8977: Add support for NVENC H264

This commit is contained in:
Anthony Minessale authored and Michael Jerris committed 2016-03-25 11:23:48 -04:00
1 parent ad72c7f56c
commit 77f70e002e
5 files changed
+69 -34

No files matched your search

+5
View File
@@ -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) {