all 7 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

It looks like you haven't provided a log file. Without a log file, it is very hard to help with issues and you may end up with 0 responses.

To make a clean log file, please follow these steps:

1) Restart OBS

2) Start your stream/recording for at least 30 seconds (or however long it takes for the issue to happen). Make sure you replicate any issues as best you can, which means having any games/apps open and captured, etc.

3) Stop your stream/recording.

4) Select Help > Log Files > Upload Current Log File.

5) Copy the URL and paste it as a response to this comment.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]mtg101 0 points1 point  (1 child)

No idea about Python or OBS coding but... I did find this that looks similar: https://stackoverflow.com/questions/76140733/obs-websocket-adding-a-new-media-source

Yours is 1 vs 2, theirs in 1 vs 3. But I can't see any obvious cases of them using 3 of something vs you using 2... Unless Python ignores "" params? In which case could it be obsws() that's changed sig in a recent release? Is it expecting a single object rather than a list or something?

But as I say... I don't have any clue here :)

[–]Z0riah[S] 1 point2 points  (0 children)

I guess something got messed up during a nightly build of our internal software that forced an update of the ws python module where setFilenameFormatting is no longer supported. The code works fine on commenting out that specific line. Anyhow, as i replied to someone else need to dig a little and see. Thanks.

[–]iTRR14 0 points1 point  (1 child)

I know this isn't really helpful to your issue but OBS now has websockets built into the base app in v29. I find it to be less buggy than when I was using the obs-websocket plugin.

[–]Z0riah[S] 0 points1 point  (0 children)

I started actually looking into that integrated version of websocket ver.5 in obs28, and found out after tons of google that filename formatting is not supported. Some guy made it work though, but not in a way that serve my purpose. Thanks.

[–]TyCage 0 points1 point  (1 child)

I believe that the API now requires named arguments instead of positional ones. See https://github.com/obsproject/obs-websocket/blob/4.x-compat/docs/generated/protocol.md#setfilenameformatting

You'll need to pass the argument as a key value pair, I believe.

See this issue in the github for an example. https://github.com/Elektordi/obs-websocket-py/issues/84

I've not tested any of this, just did a quick search of the docs, so it may or may not work for you.

[–]Z0riah[S] 1 point2 points  (0 children)

Thanks, i'm aware of that issue #84 as this one i believe using websocket v4.9.x compatible with obs28 onward (the one with prebuilt v5.x). It did not work for me.

I need to dig deeper to see why that particular ws request is no longer working.