You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filenames for recordings don't get sanitised, replay buffers do #13786
Recording output filenames should be properly sanitised to remove illegal characters such as the colon that would not work on a filesystem such as NTFS.
Current Behavior
A recording's output filename is written to disk containing a colon, of which should have been removed. Saved replay buffers do get properly sanitised.
Steps to Reproduce
Open OBS
Start a recording
End the recording
Anything else we should know?
The used filename formatting was %CCYY-%MM-%DD %hh:%mm:%ss. This has only been tested on Btrfs where a colon is a valid character.
changed the title [-]Recording filenames don't get sanitised, but replay buffers do[/-][+]Filenames for recordings don't get sanitised, replay buffers do[/+]on Aug 14, 2026
I was able to reproduce this on a build from commit f1c0a11 on Windows 11; if you use a Filename Formatting of %CCYY-%MM-%DD %hh:%mm:%ss and try to start a recording, you receive a "Failed to start recording" error and are unable to proceed. From the log, the specific error was:
17:29:24.633: [mp4 output: 'adv_file_output'] Unable to open file '.../2026-10-17 17:29:24.mp4'
This would be due to the colons in the file path, which are illegal characters on Windows.
In my experimentation, this only occurred when "Settings > Output > Output Mode" was set to "Advanced"; when "Simple" is selected there is a sanitization step where the colons are replaced with underscores. The issue is a lack of a call to GetFormatString(...) in AdvancedOutput::StartRecording(), which formats the string to replace illegal characters with underscores. This lines up with the findings from the obs-rust fork above.
The fix should be straightforward, and I will make a PR for it shortly.
Activity
[-]Recording filenames don't get sanitised, but replay buffers do[/-][+]Filenames for recordings don't get sanitised, replay buffers do[/+]Johnsoac671 commentedon Oct 18, 2026
I was able to reproduce this on a build from commit
f1c0a11on Windows 11; if you use a Filename Formatting of%CCYY-%MM-%DD %hh:%mm:%ssand try to start a recording, you receive a "Failed to start recording" error and are unable to proceed. From the log, the specific error was:This would be due to the colons in the file path, which are illegal characters on Windows.
In my experimentation, this only occurred when "Settings > Output > Output Mode" was set to "Advanced"; when "Simple" is selected there is a sanitization step where the colons are replaced with underscores. The issue is a lack of a call to
GetFormatString(...)inAdvancedOutput::StartRecording(), which formats the string to replace illegal characters with underscores. This lines up with the findings from theobs-rustfork above.The fix should be straightforward, and I will make a PR for it shortly.
RytoEX commentedon Oct 19, 2026
For reviewers, we've had a couple of similar PRs: