I have edited the source code so that when SIGUSR1 and SIGUSR2 is fired it produces a log output.
I've not got any knowledge of C++, so im porting some understanding from Python/JS
On line 22 I've modified default_signal_handler to handle the case for when the both signals are fired.
The issue I'm having now is I don't know how to change the saturation parameter.
I'm assuming it must be something to do with "VideoOptions const *options = app.GetOptions();" in the event loop?
I've not got any knowledge of C++, so im porting some understanding from Python/JS
On line 22 I've modified default_signal_handler to handle the case for when the both signals are fired.
Code:
static void default_signal_handler(int signal_number){ signal_received = signal_number; LOG(1, "Received signal " << signal_number); if (signal_number == 10) LOG(1, "Changing saturation level to 0.0"); else if (signal_number == 12) LOG(1, "Changing saturation level to 1.0");}
Code:
Output #0, flv, to '/dev/null': Stream #0:0: Video: h264, yuv420p(tv, bt709), 1920x1080, q=2-31, 6000 kb/s, 30 fps, 30 tbr, 1000k tbnReceived signal 10Changing saturation level to 0.0Received signal 12Changing saturation level to 1.0
I'm assuming it must be something to do with "VideoOptions const *options = app.GetOptions();" in the event loop?
Statistics: Posted by jwainwright87 — Mon Jul 15, 2024 4:37 pm