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

Video export failed with error: Cannot save (-11823)

Open haisham opened this issue 9 years ago • 8 comments

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 avatar Aug 18 '16 13:08 haisham

@haisham Any luck with this? Im having the same error on iOS but only the first time the videoTranscode function is called.

zirbem07 avatar Sep 22 '16 20:09 zirbem07

@zirbem07 no i haven't tested it since then, actually i removed this plugin and now relying on server side encoding.

haisham avatar Sep 23 '16 06:09 haisham

Seeing this same error on the first call to transcodeVideo(). Subsequent calls work fine.

danielflippance avatar Mar 03 '17 00:03 danielflippance

any solution ?

mmirzaee avatar Jul 18 '17 10:07 mmirzaee

For me the solution in this posting regarding unique filenames worked: https://github.com/jbavari/cordova-plugin-video-editor/issues/50

killerchip avatar Aug 08 '17 10:08 killerchip

I am also getting same error for different "outputFileName".

Any solution ??

pshirsath avatar Sep 06 '17 13:09 pshirsath

For me the solution was to have the .mp4 extension on the outputFileName

gbrits avatar Jun 13 '21 12:06 gbrits

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..!

harivenkatesh-id avatar Mar 29 '22 16:03 harivenkatesh-id