OBS custom filename for recordings OBS allows you to change the pattern for the recordings filenames but there is no simple way to update the file name with any custom string before every recording.
You need to visit the options pane and change settings manualy.
The default for the filename formating is: &quot;%CCYY-%MM-%DD %hh-%mm-%ss&quot;
Let's say you've changed the pattern to &quot;MY-HOME-VIDEO %CCYY-%MM-%DD %hh-%mm-%ss&quot; and recorded a file.
Then if you need to make another recording about something else with the prefix &quot;MY-OTHER-VIDEO &quot; you need to change the pattern again, manually.
How to update the filename formating without visiting options pane every time?
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()