selsamman / react-native-transcode Goto Github PK
View Code? Open in Web Editor NEWVideo Transcoder for React Native
License: Apache License 2.0
Video Transcoder for React Native
License: Apache License 2.0
Adding react-native-transcode to another project creates next error
Steps:
yarn add react-native-transcode
react-native link react-native-transcode
react-native run-android
Error message:
> Configure project :react-native-transcode
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (25.0.0) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
> Task :app:preDebugBuild FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find com.github.selsamman:android-transcoder:0.3.59.
Required by:
project :app > project :react-native-transcode
Using
"react": "16.8.3",
"react-native": "0.59.1",
Thanks in advance!
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);})
can we transcode to 480p
The audio is removed when changing video speed on both Android and IOS. Any way to fix this for android?
For IOS, I recommend changing to this fork of SDAVAssetExportSession. It allows removing/changing of the pitch correction algorithm. The Audio speed can be easily activated by adding the same scaleTimeRange lines for the audioTrack and removing the !scaleTime from the if statement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.