obsws-python icon indicating copy to clipboard operation
obsws-python copied to clipboard

Create Record Chapter Request missing

Open G4PLS opened this issue 1 year ago • 3 comments

Based on the specs there is CreateRecordChapter request As far as I have seen this is not present in the request client.

I think this is quite new, 30.2.0, and were only in 30.2.2

image

G4PLS avatar Aug 15 '24 22:08 G4PLS

Maybe im also just missing something? When manually sending the CreateRecordChapter request I get a 501

Thats how I tried to send it: self.request_client.send("CreateRecordChapter", {"chapterName": "TEST"})

Error while sending request CreateRecordChapter: Request CreateRecordChapter returned code 501.

G4PLS avatar Aug 15 '24 22:08 G4PLS

Hi G4PLS,

CreateRecordChapter method is introduced in obs websocket version 5.5 and currently this library supports methods up to version 5.0. So this is not implemented yet.

For the error you got from your manual request, only thing I would suggest is to check your versions for both obs and websocket plugin.

I'll try myself and update you about my findings.

aatikturk avatar Aug 15 '24 23:08 aatikturk

I have checked the WebSocket version again and im on Version 5.5.2 I have also checked the returned available_request list that gets send with get_version() and in there CreateRecordChapter is being found print(self.available_requests.__contains__(request_name)) prints True

The error remained the same: Error while sending request CreateRecordChapter: Request CreateRecordChapter returned code 501.

This is the actual error that gets raised by obsws_python: obsws_python.error.OBSSDKRequestError: Request CreateRecordChapter returned code 501.

I tested the Request without recording or having the file format correctly for this but a 501 still seems not the correct response that should be returned.

[EDIT]: I now checked again while actually recording and the status code that gets returned is now "correct". The error message now states that the record format does not support record chapters, so it was a "Start Recording to see if it works" error

Is it normal that requests that fail return a 501?

G4PLS avatar Aug 16 '24 07:08 G4PLS

Hi There, Sorry It took some time. I've checked locally and here are my findings.

Test env information

  • I've used self.request_client.send("CreateRecordChapter", {"chapterName": "TEST"}) this same request

  • Obs and websocket version image

  • when recording is not enabled request throws 501 error

  • when recording is enabled, same request throws 702 error which indicates wrong output video format for recordings.

image

  • after changing recording output format to Hybrid MP4 it worked. Below is the relevant settings page from obs. image

In the official documentit states that this method only supports Hybrid Mp4 format as of Obs version 30.2.0 image

for your last question, The error is not on the client side. Because client is actually making the request. When you're not recording this error occurs on the obs side and obs returns the error for your request. client simply outputs this error. so this is a normal behavior. image

hope this helps. Regards, Adem

aatikturk avatar Aug 22 '24 20:08 aatikturk