react-native-mov-to-mp4
react-native-mov-to-mp4 copied to clipboard
Working bad and receiving generic errors iOS
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 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) {
....
}
you will get Can not save problem after 2nd time converting the same file
hi @marioPerezRef , did u found any solution?