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

Setting FileFormat with SetOptions doesn't work #33

Open
BMOBuyer opened this issue Oct 12, 2023 · 2 comments
Open

Setting FileFormat with SetOptions doesn't work #33

BMOBuyer opened this issue Oct 12, 2023 · 2 comments

Comments

@BMOBuyer
Copy link

BMOBuyer commented Oct 12, 2023

### Description:

I have tried now in several different ways to set the file format of a standard video recording using OSC without success. I have tried both the Insta360 One RS 360 edition and the Insta360 One X2, both with the latest available firmware versions. I believe this to be either a bug or maybe there is something I am missing.

Please clarify if I am setting the Resolution for the recording correctly or confirm that it is a bug with the cameras?

Steps to reproduce:

Note: Every command has a 1 sec delay between them.

  1. First execute Get command osc/info and then /osc/state
  2. Execute setOptions with following options
    { "name": "camera.setOptions", "parameters": { "options": { "captureMode":"video", } } }
  3. Execute setOptions with following options
    { "name": "camera.setOptions", "parameters": { "options": { "sleepDelay": 65535, "exposureCompensation": 0.0, "exposureProgram": 1, "iso": 0, "whiteBalance": "auto", "offDelay": 65535, } } }
  4. Execute setOptions with following options, note for the One X2 I set the frameRate to 30 and for the One RS 360 24 frameRate. The SetOptions command will return 200 ok status code.
    { "name": "camera.setOptions", "parameters": { "options": { "fileFormat": { "type": "mp4", "width": 3840, "height": 1920, "frameRate": 24, }, } } }
  5. Execute getOptions with following options
    { "name":"camera.getOptions", "parameters": { "optionNames": [ "fileFormat", ] } }
    Get Result, which does not seem to indicate it applied the fileformat:
    { "name": "camera.getOptions", "state": "done", "results": { "options": { "fileFormat": { "type": "insv", "width": 2880, "height": 2880, "framerate": 30 }, } } }
  6. Execute command startCapture, and record a video for a couple of seconds
  7. Execute command stopCapture
  8. Execute command listFiles with following parameters
    { "name": "camera.listFiles", "parameters": { "options": { "fileType": "video", "entryCount": 3, "maxThumbSize": 0 } } }
  9. Look in List files result and see result has the wrong width and height
    { "name": "camera.listFiles", "state": "done", "results": { "entries": [{ "name": "LRV_20230929_161351_11_044.mp4", "fileUrl": "http://192.168.42.1:80/DCIM/Camera01/LRV_20230929_161351_11_044.mp4", "_localFileUrl": "/DCIM/Camera01/LRV_20230929_161351_11_044.mp4", "size": 21423906, "width": 6080, "height": 3040, "dateTimeZone": "", "_dateTime": "2023:09:29 16:13:50+02:00", "thumbnail": "", "isProcessed": true, "previewUrl": "" }, { "name": "VID_20230929_161351_10_044.mp4", "fileUrl": "http://192.168.42.1:80/DCIM/Camera01/VID_20230929_161351_10_044.mp4", "_localFileUrl": "/DCIM/Camera01/VID_20230929_161351_10_044.mp4", "size": 146800640, "width": 6080, "height": 3040, "dateTimeZone": "", "_dateTime": "2023:09:29 16:13:50+02:00", "thumbnail": "", "isProcessed": true, "previewUrl": "" }, { "name": "VID_20230929_161351_00_044.mp4", "fileUrl": "http://192.168.42.1:80/DCIM/Camera01/VID_20230929_161351_00_044.mp4", "_localFileUrl": "/DCIM/Camera01/VID_20230929_161351_00_044.mp4", "size": 148563858, "width": 6080, "height": 3040, "dateTimeZone": "", "_dateTime": "2023:09:29 16:13:50+02:00", "thumbnail": "", "isProcessed": true, "previewUrl": "" }], "totalEntries": 3 } }
  10. If you then look on the simcard, and right click the video and view the mp4 properties. Then the video has width and height of 2880 and 30 fps. Which is not what I set it to in the setOptions Command.

Expected behavior:

Setting the fileFormat through the setOptions should set the video recording resolution and FPS.

Actual behavior:

It doesn't seem to apply the fileFormat options I set. Even though I got a '200 ok' status back from my setOptions call.

It also seems that the camera is recording the selected Resolution and FPS chosen on the camera. So if I manually switch the resolution on the camera, the recorded video will output that.
However, with the One RS 360, if I manually on the camera choose any other resolution than 5,7k the camera will crash when I execute the 'stopCapture' command.

Additional information:

  • Device: Insta360 One RS 360 edition
  • Firmware: v2.0.8
  • Device: Insta360 One X2
  • Firmware: v1.0.62
@alexandrehenrylebel
Copy link

I have the same problem. Is there a solution?

@jurganson
Copy link

I am still experiencing this issue. Is the Insta360 OSC GitHub dead? I see no official activity but lots of issues and the closed issues are closed by the poster themselves.

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

No branches or pull requests

3 participants