obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.39k stars 7.99k forks source link

obs-outputs: Attempt to generate path if one is not specified #11517

Open tt2468 opened 5 days ago

tt2468 commented 5 days ago

Description

Changes the MP4 muxer to attempt to use the path generation logic if a path is not explicitly specified. This allows MP4 muxer outputs to be configured with file splitting, without requiring both the path and directory+format fields to be specified.

Motivation and Context

Currently, the UI generates the initial recording path, then lets the output do it upon file splits. While this is great, it's not very friendly to usage of the output outside of the UI (saving effort on the side of developers of custom plugins).

How Has This Been Tested?

Used a script to create a custom mp4_output output in OBS, and configured it with just directory, format, and extension fields, no path field. Output started correctly as expected, generating a path for the recording.

Types of changes

Checklist: