OBS custom filename for recordings
I've managed to achieve this using obs-websocket and simple/dirty python script.
The obs-websocket plugin can get/set the pattern used by OBS to save recording files.
Steps:
Install/configure obs-websocket plugin.
Then use obs-cli (https://github.com/leafac/obs-cli) or obswebsocket (https://pypi.org/project/obs-websocket-py/).
cli example (under Windows os, beware of double quotes):
obs-cli-win SetFilenameFormatting=&quot;{ &quot;&quot;filename-formatting&quot;&quot;: &quot;&quot;TESTNAME %CCYY-%MM-%DD %hh-%mm-%ss&quot;&quot; }&quot; &amp;&amp; ^
obs-cli-win StartRecording &amp;&amp; ^
obs-cli-win SetFilenameFormatting=&quot;{ &quot;&quot;filename-formatting&quot;&quot;: &quot;&quot;%CCYY-%MM-%DD %hh-%mm-%ss&quot;&quot; }&quot; &amp;&amp; ^
obs-cli-win GetFilenameFormatting

python example:
client = obswebsocket.obsws(&quot;localhost&quot;, 4444, &quot;&quot;)
client.connect()
print(client.call(obswebsocket.requests.GetFilenameFormatting()))
client.call(obswebsocket.requests.SetFilenameFormatting(&quot;TESTNAME&quot; + &quot; - %CCYY-%MM-%DD %hh-%mm-%ss&quot;))
client.call(obswebsocket.requests.StartRecording())
print(client.call(obswebsocket.requests.GetFilenameFormatting()))
client.call(obswebsocket.requests.SetFilenameFormatting(&quot;%CCYY-%MM-%DD %hh-%mm-%ss&quot;))
print(client.call(obswebsocket.requests.GetFilenameFormatting()))
client.disconnect()