Skip to content

Could not invoke RNTrimmerManager.getVideoInfo #376

Open
@theartificialguy

Description

@theartificialguy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions