noobs 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/noobs.node +0 -0
- package/package.json +1 -1
- package/src/obs_interface.cpp +10 -10
package/dist/noobs.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/obs_interface.cpp
CHANGED
|
@@ -205,16 +205,16 @@ obs_output_t* ObsInterface::create_output(const std::string& recordingPath) {
|
|
|
205
205
|
throw std::runtime_error("Failed to create video encoder!");
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
//
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
208
|
+
blog(LOG_INFO, "Set video encoder settings");
|
|
209
|
+
obs_data_t* venc_settings = obs_data_create();
|
|
210
|
+
obs_data_set_string(venc_settings, "preset", "speed"); // Faster preset
|
|
211
|
+
//obs_data_set_int(amf_settings, "bitrate", 2500);
|
|
212
|
+
obs_data_set_string(venc_settings, "rate_control", "CRF");
|
|
213
|
+
obs_data_set_int(venc_settings, "crf", 30);
|
|
214
|
+
obs_data_set_string(venc_settings, "profile", "main");
|
|
215
|
+
obs_data_set_int(venc_settings, "keyint_sec", 1); // Set keyframe interval to 1 second
|
|
216
|
+
obs_encoder_update(video_encoder, venc_settings);
|
|
217
|
+
obs_data_release(venc_settings);
|
|
218
218
|
|
|
219
219
|
blog(LOG_INFO, "Create aenc");
|
|
220
220
|
audio_encoder = obs_audio_encoder_create("ffmpeg_aac", "simple_aac", NULL, 0, NULL);
|