Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to set sourceName (video file name) #243

Unanswered
toufikwb asked this question in Q&A
Discussion options

first i'm a noob developer,
i want to set custom file name to the video, can i do that? if that possible please show me the code :
here is what i'm trying :

const obs = new OBSWebSocket();
 obs.connect({
 'sourceName' : 'newName'
 });
......
obs.send('StartRecording');
......
obs.send('StopRecording');

here is the link i'm trying to follow : https://github.com/Palakis/obs-websocket/blob/4.8.0/docs/generated/protocol.md#setsourcename

i'v also tried the following :
obs.send('SetSourceName', { 'sourceName' : 'newName' }); obs.send('StartRecording');
everything works well except that the name of the file is the datetime

You must be logged in to vote

Replies: 1 comment

Comment options

If you're still curious, you can set the folder the recording is stored in using SetRecordingFolder and set the filename using SetFilenameFormatting. "Source name" that are you are trying to use is completely unrelated to recording file names.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #220 on June 12, 2021 15:30.

AltStyle によって変換されたページ (->オリジナル) /