cordova-plugin-video-editor
cordova-plugin-video-editor copied to clipboard
Video export failed with error: Cannot save (-11823)
Occuring in ios, on first run everything goes well, but retaking video via cordova media capture and then feeding it to this plugin triggers error: Video export failed with error: Cannot save (-11823) but somehow error does not trigger after few minutes. Relevant issue: http://stackoverflow.com/questions/13097331/unable-to-trim-a-video-using-avassetexportsession
@haisham Any luck with this? Im having the same error on iOS but only the first time the videoTranscode function is called.
@zirbem07 no i haven't tested it since then, actually i removed this plugin and now relying on server side encoding.
Seeing this same error on the first call to transcodeVideo(). Subsequent calls work fine.
any solution ?
For me the solution in this posting regarding unique filenames worked: https://github.com/jbavari/cordova-plugin-video-editor/issues/50
I am also getting same error for different "outputFileName".
Any solution ??
For me the solution was to have the .mp4 extension on the outputFileName
I also got this same issue. Fixed by doing below things
By default this plugin has below parameters { fileUri: 'file-uri-here', // the path to the video on the device outputFileName: 'output-name', // the file name for the transcoded video outputFileType: VideoEditorOptions.OutputFileType.MPEG4, // android is always mp4 optimizeForNetworkUse: VideoEditorOptions.OptimizeForNetworkUse.YES, // ios only saveToLibrary: true, // optional, defaults to true deleteInputFile: false, // optional (android only), defaults to false maintainAspectRatio: true, // optional (ios only), defaults to true width: 640, // optional, see note below on width and height height: 640, // optional, see notes below on width and height videoBitrate: 1000000, // optional, bitrate in bits, defaults to 1 megabit (1000000) fps: 24, // optional (android only), defaults to 24 audioChannels: 2, // optional (ios only), number of audio channels, defaults to 2 audioSampleRate: 44100, // optional (ios only), sample rate for the audio, defaults to 44100 audioBitrate: 128000 }
out of which outputFileName is a mandatory parameter provide some string value.
This is the most important part, by default saveToLibrary value is true. Make it false. you don't need to save the video into gallery.
This will work..!