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

Could not invoke RNTrimmerManager.getVideoInfo #376

Open
theartificialguy opened this issue Oct 26, 2022 · 2 comments
Open

Could not invoke RNTrimmerManager.getVideoInfo #376

theartificialguy opened this issue Oct 26, 2022 · 2 comments

Comments

@theartificialguy
Copy link

Current Behavior

The app crashes when getVideoInfo(...) method is called, below is a code snippet which replicates the crash:-

import { ProcessingManager } from 'react-native-video-processing';
...
console.log('VideoPath', VideoPath);
const videoInfo = await ProcessingManager.getVideoInfo(VideoPath); // crashes here
const { size } = videoInfo;
setMediaSize(size);

output:-

VideoPath file:///data/user/0/com.myapp/cache/Camera/0006ee95-7c14-405c-9c4a62gs64abe861a.mp4

Could not invoke
RNTrimmerManager.getVideoInfo

null

dlopen failed: cannot locate symbol "avcodec_get_name" referenced by "/data/app/~~ocyNzyffPC35EoZaSrnAg==/com.myapp-B2SJN625VTvs71w==/lib/arm64/libffmpeg_mediametadataretriever_jni.so"...

Expected Behavior

I followed all the steps mentioned in docs and the app did build successfully but can't get past this operation.

Your Environment

software version
react-native-video-processing 1.7.2
react-native 0.64.3
node v16.15.1
@salihgun
Copy link

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

3 participants
@theartificialguy @salihgun and others