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 CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noobs",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "A native Node.js addon with libobs bindings for Warcraft Recorder.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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
- // blog(LOG_INFO, "Set video encoder settings");
209
- // obs_data_t* amf_settings = obs_data_create();
210
- // obs_data_set_string(amf_settings, "preset", "speed"); // Faster preset
211
- // //obs_data_set_int(amf_settings, "bitrate", 2500);
212
- // obs_data_set_string(amf_settings, "rate_control", "CQP");
213
- // obs_data_set_int(amf_settings, "cqp", 30);
214
- // obs_data_set_string(amf_settings, "profile", "main");
215
- // obs_data_set_int(amf_settings, "keyint_sec", 1); // Set keyframe interval to 1 second
216
- // obs_encoder_update(video_encoder, amf_settings);
217
- // obs_data_release(amf_settings);
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);