Insta360Develop / CameraSDK-Android

Android SDK to control Insta360 cameras
82 stars 9 forks source link

Android SDK gives bad video result #3

Closed Lastic21 closed 3 years ago

Lastic21 commented 3 years ago

@generalbytes @yunyiyunyi @EternalSoySauce I try to export video from Insta360 ONE X with MediaSdk for Android, but official app gives me this (and this is what I need) :

Снимок экрана 2020-12-23 в 12 21 49

And I get (with MediaSdk) this:

Снимок экрана 2020-12-23 в 12 21 36

My code is:

val builder = ExportVideoParamsBuilder()
            .setExportMode(ExportUtils.ExportMode.PANORAMA)
            .setTargetPath(exportPath + System.currentTimeMillis() + ".mp4")

val exportId = ExportUtils.exportVideo(wrapper, builder, object : IExportCallback {
             override fun onSuccess() {}
             override fun onFail(p0: Int, p1: String?) {}
             override fun onCancel() {}
        })
Lastic21 commented 3 years ago

Problem was in workWrapper. Must be with 00 and 10 , not only one of them val wrapper = WorkWrapper(arrayOf("http://192.168.42.1:80/DCIM/Camera01/VID_20201222_124510_00_718.insv", "http://192.168.42.1:80/DCIM/Camera01/VID_20201222_124510_10_718.insv"))

instead of just: val wrapper = WorkWrapper("http://192.168.42.1:80/DCIM/Camera01/VID_20201222_124510_00_718.insv")