cordova-plugin-video-editor icon indicating copy to clipboard operation
cordova-plugin-video-editor copied to clipboard

Converting UHD video on Huawei P10 Android 7.0

Open T0shik opened this issue 7 years ago • 0 comments

So I encountered an issue that I couldn't replicate on other phones, so it seems to be specific to Huawei P10 that runs Android 7.0 to my knowledge.

When converting a UHD video to a smaller resolution it will freeze the last few seconds of the video, however the audio runs as expected even after the freeze. (if it's a FHD 60 fps and lower resolution, everything works as expected)

This is the code I use for conversion:

self.videoEditor.transcodeVideo({
                        fileUri: path,
                        outputFileName: 'video' + index,
                        outputFileType: self.videoEditor.OutputFileType.MPEG4,
                        videoBitrate: 1000000,
                        maintainAspectRatio: true,
                        optimizeForNetworkUse: 1,
                        width: 480,
                        height: 480,
                        fps: 30,
                    })

Huawei P10 also restricts changing the quality of the video with which you record, so it's ether UHD (4k) or 133p, but this is relevant to the media-capture plugin.

Potentially could be caused by compression? Something like this issue: #40

Was pulling my hair for quite a bit until tested on other phones and everything worked fine, hoping I can save someone the time of trying to figure out why it isn't working on a Huawei phone...

T0shik avatar Nov 26 '17 20:11 T0shik