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

Error: extractor does not contain video and/or audio tracks. #21

Open
antiergit opened this issue Dec 28, 2022 · 3 comments
Open

Error: extractor does not contain video and/or audio tracks. #21

antiergit opened this issue Dec 28, 2022 · 3 comments

Comments

@antiergit
Copy link

antiergit commented Dec 28, 2022

While processing this library i got issue

Error: extractor does not contain video and/or audio tracks.

RNFetchBlob.fs.stat(fileURI) .then((stats) => { console.log('stats', stats); var inputFile = stats.path; const outputFile = RNFetchBlob.fs.dirs.DownloadDir + '/output_' + 'Hopscotch' + '.mp4'; Transcode.start() .asset({name: "A", path: inputFile, type:'AudioVideo'}) .asset({name: "B", path: inputFile, type:'AudioVideo'}) .segment(500) .track({asset: "A"}) .segment(500) .track({asset: "A", filter: "FadeOut"}) .track({asset: "B", filter: "FadeIn", seek: 750}) .segment(500) .track({asset: "B"}) .segment(500) .track({asset: "B", filter: "FadeOut"}) .track({asset: "A", filter: "FadeIn", seek: 500}) .segment(500) .track({asset: "A"}) .process("low", outputFile, (progress)=>{console.log('progress', progress);}); }).catch((err) => {console.log('error=====', err);})

@selsamman
Copy link
Owner

What type of video file is it? Would it be possible to make it available for me to test with? Is this on Android or iPhone?

@antiergit
Copy link
Author

I am uploading video file from the library by using react-native-image-picker and tested on my android phone. I am getting this error.

@selsamman
Copy link
Owner

The error is likely related to the video which mush have both an audio and a video track. I would need to have access to the video to diagnose further.

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