Ricoh theta flutter SDK video start with custom name

Hello,

We are developing a Flutter app using the Ricoh Theta SDK along with network APIs. Is there a way to set a custom file name for the video before saving, for example, during initialization or when starting the recording?

final videoCapture = await _thetaClientFlutter
    .getVideoCaptureBuilder()
    .setMaxRecordableTime(MaxRecordableTimeEnum.time_7200)
    .setFileFormat(VideoFileFormatEnum.video_5_7K_5F)
    .setGpsTagRecording(GpsTagRecordingEnum.on)
    .build();

I don’t think you can set the filename through the SDK prior to saving on the camera. You can do this with a plugin API. See this discussion on GitHub.

You can also change the name on a mobile app or embed exif data there.

Can you provide more information your use case?

For example, can you attach meta-data to the file or just associate it with another data file and then store it in the cloud?

If we know the use case, we may be able to provide more advice.

We are developing a 360 image extraction feature based on location, where metadata is stored after video creation. However, if the camera shuts down unexpectedly, the metadata is not saved. When recording starts, we collect the Android device’s latitude and longitude. The issue arises when the camera is restarted, and the user records a test video to check if it’s working. In such cases, the app may incorrectly link the last video with the wrong location data. Additionally, while the Android device can get a backup location, we are unable to determine which video or filename should be associated with the correct latitude and longitude.

https://github.com/ricohapi/theta-api-specs/blob/main/theta-web-api-v2.1/commands/camera.start_capture.md

With THETA X firmware 2.61.0, you should be able to get the _fileUrls value at the time that startCapture is executed. Previously, you could only get the _fileUrls value after the video had been recorded.

For movie shooting, the response includes _fileUrls information at the timing of camera.startCapture.
This feature is available with THETA X firmware v2.61.0 or later.

{
    "_fileUrls": [
        "http://192.168.1.1/files/100RICOH/R0011234.MP4"
    ],
    "id": "1234",
    "name": "camera.startCapture",
    "state": "done"
}

Please update your firmware to the newest THETA X firmware and advise if the above update is “good-enough” for your solution.

Firmware 2.63.0 is out. It is a bug fix. I don’t know what the bug was.

I have not checked the response from theta-client library. I don’t know if the _fileUrls is in the response. You may need to test it with Flutter http or dio package.

First, please advice if the above firmware update meets your application requirement.

@Kalpesh_Shinde as the previous post was marked as the solution, I’m assuming that it is OK for your application to use the filename at the beginning of startCapture. I’m assuming that you don’t need to get a custom filename.

I’m closing a discussion item i had with RICOH about the “custom filename” for the video as it appears that getting the filename for the X video at the beginning of startCapture is good-enough.