Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Re-add support for SetRecordingFolder, SetFileNameFormatting #1062

Closed
acstark92 opened this issue Nov 28, 2022 · 4 comments
Closed

Comments

@acstark92
Copy link

Feature Request Type

RPC Request

Feature Request Type (Other)

No response

Requested Feature

obs-websocket version 4.9.1 contained support for setting the folder for saved video recordings, as well as support for setting the filename of said video. As of 5.0.0, this support seems to no longer be available.

Requested Feature Usage Scenario

As part of an automated test, I want to record my game and save those recordings off to dynamic locations for later validation. I would have a pipeline that calls obs-websocket to set the file location and filename, then start and stop recording.

@DoubleF3lix
Copy link

I'm proud to report that this works (in obsws-python) for SetFileNameFormatting:

connection.get_profile_parameter("Output", "FilenameFormatting").parameter_value
connection.set_profile_parameter("Output", "FilenameFormatting", "My File Name")

@hendryman
Copy link

+1 for setting folder names via script. Is there any update on that?

@minorDeveloper
Copy link

@acstark92, your request for setting filename formatting is possible with a request as shown below:

{"op": 6, "d":{"requestType": "SetProfileParameter", "requestId": "UUID", "requestData": {"parameterCategory": "Output", "parameterName": "FilenameFormatting", "parameterValue": "Test"}}}

However, I haven't been able to figure out the parameter name and category for setting the recording location, and in general the SetProfileParameter doesn't seem to be particularly well documented.

@tt2468 tt2468 closed this as completed in ac00465 May 28, 2023
@Qualzz
Copy link

Qualzz commented Mar 26, 2024

For anyone looking for it:

cl.set_profile_parameter("SimpleOutput", "FilePath", recording_path)
value = cl.get_profile_parameter("SimpleOutput", "FilePath").parameter_value
print(value)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants