react-native-mov-to-mp4 icon indicating copy to clipboard operation
react-native-mov-to-mp4 copied to clipboard

Working bad and receiving generic errors iOS

Open marioPerezRef opened this issue 3 years ago • 3 comments

When execute is getting errors like: "[Error: Cannot Save]" "[Error: The operation could not be completed]"

When it works, it returns a "file.mp4.mp4"

Im using 'react-native-image-picker' to take the video, 'react-native-fs' to copy file and converted file

For any help, thanks

marioPerezRef avatar Aug 31 '21 16:08 marioPerezRef

@marioPerezRef I was getting this same error. I think you could run into errors if you try to convert a .mov with the same file name. I fixed it by setting the file name to the current time:

try {
    const filename = Date.now().toString();
    const mp4File = await MovToMp4.convertMovToMp4(
        selectedFile.uri,
        filename,
    );
    ....
} catch (err) {
    ....
}

jneterer avatar Oct 13 '21 11:10 jneterer

you will get Can not save problem after 2nd time converting the same file

fukemy avatar Sep 20 '22 23:09 fukemy

hi @marioPerezRef , did u found any solution?

fukemy avatar Sep 22 '22 03:09 fukemy