Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting issue while video compression. #7

Open
krupalikevadiya opened this issue Jul 6, 2021 · 3 comments
Open

Getting issue while video compression. #7

krupalikevadiya opened this issue Jul 6, 2021 · 3 comments

Comments

@krupalikevadiya
Copy link

I'm using following code to compress video.

ImagePicker.openPicker({
mediaType: "video"
}).then(images => {
let uri = images.path
const videoTools = new VideoTools(uri);
videoTools.compress({ quality: 'low' }).then(details => {

  });
    })

Getting below error in both android and ios :
Possible Unhandled Promise Rejection (id: 7):
"An error occur while getting input file details. Please check your input file details"

@PatrissolJuns
Copy link
Owner

The "An error occurred while getting input file details. Please check your input file details" appear when there's an error while getting media details. So can you properly run getDetails and check your logs?

@krupalikevadiya
Copy link
Author

My file path is something like that :
file:///Users/mac/Library/Developer/CoreSimulator/Devices/E60F33EF-3829-4D60-AAEA-A4AA49E5C9A0/data/Containers/Data/Application/C8B2EA75-F278-4206-9EE9-1DDD2362AC22/tmp/react-native-image-crop-picker/06475019-8BB3-44AC-82CF-3C32CCE0C478.mp4

and i used below code to get details but gives error.
let uri = images.path

    console.log('===========uri=============' + JSON.stringify(uri, null, 2))
    const videoTools = new VideoTools(uri);

    videoTools.getDetails().then(details => {
      console.log("===========getDetails============== " + JSON.stringify(details,null,2));
  });

and error is :

Possible Unhandled Promise Rejection (id: 6):
Error: Failed to execute command

@krupalikevadiya
Copy link
Author

@PatrissolJuns any update on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants