Skip to content

Filenames for recordings don't get sanitised, replay buffers do #13786

Open

Description

@pricklythorn

Operating System Info

Other

Other OS

CachyOS

OBS Studio Version

32.2.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/VGrUm2ROHCNSTZgC

OBS Studio Crash Log URL

No response

Expected Behavior

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

  1. Open OBS
  2. Start a recording
  3. 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.

Activity

  1. 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
  2. Johnsoac671 commented on Oct 18, 2026

    @Johnsoac671
    Contributor

    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.

  3. RytoEX commented on Oct 19, 2026

    @RytoEX
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions