How to active the FLV-Output output plugin?

mcleary

New Member
I usually learn by experimentation so I'm trying to use the FLV-Output plugin to understand more about how obs-plugins work.

The FLV-Output plugin is one example of how to write an output plugin however I can't get it to be activated. I have breakpoints in all the entry points of the plugin but I can't seem to find a combinations of options that make use of this plugin. Every option I see in obs uses the ffmpeg output plugin.

Is it possible to activate this plugin?
 

mcleary

New Member
I finally managed to activate the FLV-Output in OBS Studio by manually creating it in AdvancedOutput::AdvancedOutput(OBSBasic *main_) =). If anyone is by any chance interested in this, the patch is attached

Git:
diff --git a/UI/window-basic-main-outputs.cpp b/UI/window-basic-main-outputs.cpp
index 69f247c14f3870609cf0eb65230956fcba0dd7aa..59ff9b33cbbbddcb9a7bfdb7ccf4c05d430312fe 100644
--- a/UI/window-basic-main-outputs.cpp
+++ b/UI/window-basic-main-outputs.cpp
@@ -1212,8 +1212,10 @@ AdvancedOutput::AdvancedOutput(OBSBasic *main_) : BasicOutputHandler(main_)
               astrcmpi(rate_control, "ABR") == 0;
 
     if (ffmpegOutput) {
-        fileOutput = obs_output_create(
-            "ffmpeg_output", "adv_ffmpeg_output", nullptr, nullptr);
+        /*fileOutput = obs_output_create(
+            "ffmpeg_output", "adv_ffmpeg_output", nullptr, nullptr);*/
+        fileOutput = obs_output_create("flv_output", "adv_flv_output",
+                           nullptr, nullptr);
         if (!fileOutput)
             throw "Failed to create recording FFmpeg output "
                   "(advanced output)";
@@ -1249,8 +1251,10 @@ AdvancedOutput::AdvancedOutput(OBSBasic *main_) : BasicOutputHandler(main_)
                           OBSReplayBufferSaved, this);
         }
 
-        fileOutput = obs_output_create(
-            "ffmpeg_muxer", "adv_file_output", nullptr, nullptr);
+        /*fileOutput = obs_output_create(
+            "ffmpeg_muxer", "adv_file_output", nullptr, nullptr);*/
+        fileOutput = obs_output_create("flv_output", "adv_flv_output",
+                           nullptr, nullptr);
         if (!fileOutput)
             throw "Failed to create recording output "
                   "(advanced output)";
 
Top