Git Product home page Git Product logo

patrissoljuns / react-native-audio-video-tools Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 16.0 99.89 MB

React-native library that allows performing some advanced operation on audios and videos

Home Page: https://www.npmjs.com/package/react-native-audio-video-tools

License: MIT License

Java 6.04% JavaScript 87.75% Objective-C 3.50% Ruby 1.31% Starlark 1.41%
android android-video-editor audio audio-processing compression ffmpeg ios ios-video-editor media mobile processing react-native video video-processing

react-native-audio-video-tools's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-audio-video-tools's Issues

Getting issue while video compression.

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"

Extract audio

image

When I tried Video.extractAudio(),image, the error above showed.

That's because of the existing bugs in "isMediaExtensionCorrect" function in util file,
since the function compares "video" with mp3 file format, which returns false and throw error.

Used audio cut method

Hi,
I installed react-native-audio-video-tools to use cut() for audio

I have this output in the logs:
Screenshot 2021-06-25 at 6 13 25 PM

it happens while I try to cut an audio

Trying to use video compression

Hi,

sorry if I'm opening the second issue today .

However I have successfully installed the library in these steps:

  • install react-native-audio-video-tools
  • install react-native-ffmpeg
  • added in pod file:
    pod 'react-native-ffmpeg/full-gpl', :podspec => '../node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec'
  • everything starts successfully ๐Ÿฅณ

My problem is that when I go to get a file and try to compress, I have this output in the logs:

image

For what strange reason?


iOS 14.4
ReactNative 0.63.4

[iOS] Installation error

Hi,

I'm trying to install it and when I go to do the "cd ios && pod install" command to install the iOS pods part I get this error:

image


I think I have solved it, I created a PR:
#4

Installation error

Hi,

thanks for the work here ! I wanted to try the lib but failed in the installation.

I did npm i react-native-audio-video-tools react-native-ffmpeg --save, and then wanted to cd /ios && pod installbut got the following error :
The RNAudioVideoTools pod failed to validate due to 1 error: - ERROR | attributes: Missing required attribute "homepage".

Installation of react-native-ffmpeg looks fine. Any clue of what's happening here ? Thanks a lot ๐Ÿ™Œ๐Ÿผ

Compress audio

import {AudioTools} from 'react-native-audio-video-tools';

const audioTools = new AudioTools("https://www.learningcontainer.com/wp-content/uploads/2020/02/Kalimba.mp3");

let res = await audioTools.compress({quality: "medium"});

console.log(res); //an error while getting input

It throws the error with local/remote path. If i change extension, file path it still doesn't work, throws same error.

Screenshot 2022-05-25 at 12 00 17 PM

Platform
Android

Versions
"react-native-audio-video-tools": "^1.0.0",
"react-native-ffmpeg": "^0.5.2",
"react": "17.0.2",
"react-native": "0.66.3",

Steps to Reproduce
yarn add react-native-audio-video-tools
then I ran npx react-native run-android

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.