Coder Social home page Coder Social logo

tanersener / react-native-ffmpeg-test Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 13.0 3.61 MB

Test applications for react-native-ffmpeg. Not maintained anymore. Superseded by FFmpegKitTest.

License: MIT License

Java 3.75% JavaScript 91.36% Ruby 0.61% Objective-C 2.42% Shell 0.08% Starlark 1.79%
ffmpeg react-native react-native-ffmpeg test

react-native-ffmpeg-test's People

Contributors

dependabot[bot] avatar tanersener avatar

Stargazers

 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  avatar

react-native-ffmpeg-test's Issues

migration to react-native 0.60 fails

When an existing react-native-ffmpeg application is updated to use react-native 0.60.x iOS builds fail with the following error.

ld: warning: directory not found for option '-L/Users/taner/Projects/react-native-ffmpeg-test/default/ios/build/ReactNativeFFmpegTest/Build/Products/Debug-iphonesimulator/yoga'

ld: library not found for -lRCTGeolocation
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Android builds also fail with the following error.

2019-07-13 14:40:45.853 4490-4518/com.arthenica.reactnative.ffmpeg.test E/SoLoader: couldn't find DSO to load: libhermes.so
    
    --------- beginning of crash
2019-07-13 14:40:45.854 4490-4518/com.arthenica.reactnative.ffmpeg.test E/AndroidRuntime: FATAL EXCEPTION: create_react_context
    Process: com.arthenica.reactnative.ffmpeg.test, PID: 4490
    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
        at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:738)
        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:591)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:529)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:484)
...

Script error when importing RNFFmpeg

When importing RNFFmpeg in js file for android, it throws script error as cannot read property 'enableLogEvents' of undefined.

import { RNFFmpeg } from 'react-native-ffmpeg';

Cannot read property 'RNFSFileTypeRegular' of undefined

I am trying to run the test on my iphone device, followed the instructions to default package,used the pod file in the instruction, did pod install, pod update for react-native-ffmpeg, and I can build successfully, when I opened my xcode and tried to install it on iphone, it poped up error message:
ExceptionsManager.js:74 Cannot read property 'RNFSFileTypeRegular' of undefined on the device and in the debugger-ui/ browser page, my platform:

react-native info
info
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Memory: 33.32 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.4.0 - /usr/local/bin/node
yarn install v0.15.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 85.19s. - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 27.0.3, 28.0.2
System Images: android-22 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8 => 16.8.6
react-native: ^0.59 => 0.59.3
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-cn-richtext-editor: 1.0.33
react-native-git-upgrade: 0.2.7

option ignore

2019-10-12 22:35:27.135 [info][tid:com.facebook.react.JavaScript] Option ignore_loop not found.

2019-10-12 22:35:27.135475-0400 soundmemes[1707:593973] Option ignore_loop not found.

No such file or directory on Android

I tried to process a video on my phone:

WechatIMG650

But I've got the error that cannot find this video:

WechatIMG651

I'm not sure what's the correct folder URI, using the FFmpeg command in this app.
Can you help me with this? Thanks a lot.

[IOS] Failed to install the requested application

Any idea why I'm getting this on all dependency management mechanisms.

Before I start each mechanism I run

yarn install
cd ios/  
pod install

Also tried after that to do

react-native unlink react-native-ffmpeg
pod install

Then run it with either react-native run-ios or just inside xcode and always get this.

manual-dependency react-native run-ios
Scanning folders for symlinks in /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/node_modules (17ms)
Found Xcode workspace ReactNativeFFmpegManualDependencyTest.xcworkspace
Building using "xcodebuild -workspace ReactNativeFFmpegManualDependencyTest.xcworkspace -configuration Debug -scheme ReactNativeFFmpegManualDependencyTest -destination id=82D4B6BB-BFFD-4B05-B225-A7EBF9DC216C -derivedDataPath build"
User defaults from command line:

    IDEDerivedDataPathOverride = /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/build


note: Using new build system

note: Planning build

note: Constructing build description

Build system information

error: /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/Pods/Pods/Target Support Files/Pods-ReactNativeFFmpegManualDependencyTest/Pods-ReactNativeFFmpegManualDependencyTest.debug.xcconfig: unable to open file (in target "ReactNativeFFmpegManualDependencyTest" in project "ReactNativeFFmpegManualDependencyTest") (in target 'ReactNativeFFmpegManualDependencyTest')



Build system information

error: /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/Pods/Pods/Target Support Files/Pods-ReactNativeFFmpegManualDependencyTest/Pods-ReactNativeFFmpegManualDependencyTest.debug.xcconfig: unable to open file (in target "ReactNativeFFmpegManualDependencyTest" in project "ReactNativeFFmpegManualDependencyTest") (in target 'ReactNativeFFmpegManualDependencyTest')



Build system information

error: /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/Pods/Pods/Target Support Files/Pods-ReactNativeFFmpegManualDependencyTest/Pods-ReactNativeFFmpegManualDependencyTest.debug.xcconfig: unable to open file (in target "ReactNativeFFmpegManualDependencyTest" in project "ReactNativeFFmpegManualDependencyTest") (in target 'ReactNativeFFmpegManualDependencyTest')



Build system information


error: /Users/ingvi/Downloads/react-native-ffmpeg-test-master/manual-dependency/ios/Pods/Pods/Target Support Files/Pods-ReactNativeFFmpegManualDependencyTest/Pods-ReactNativeFFmpegManualDependencyTest.debug.xcconfig: unable to open file (in target "ReactNativeFFmpegManualDependencyTest" in project "ReactNativeFFmpegManualDependencyTest") (in target 'ReactNativeFFmpegManualDependencyTest')



Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RNFS')



** BUILD FAILED **


Installing build/Build/Products/Debug-iphonesimulator/ReactNativeFFmpegManualDependencyTest.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/ReactNativeFFmpegManualDependencyTest.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

/ReactNativeFFmpegTest.app/colosseum.jpg: No such file or directory

I got the app build and installed on my iphone device, it works when I use -version command, but when I switched to VIDEO tab and tap on CREATE button, it showed a message saying:

/var/containers/Bundle/Application/DF534C28-4412-4F59-AB33-9B486C4DAB86/ReactNativeFFmpegTest.app/colosseum.jpg: No such file or directory.

also in my console log, I saw the jpg files saved:
Saved resource colosseum.jpg to /var/containers/Bundle/Application/DF534C28-4412-4F59-AB33-9B486C4DAB86/ReactNativeFFmpegTest.app/colosseum.jpg
Main.js:285 Saved resource pyramid.jpg to /var/containers/Bundle/Application/DF534C28-4412-4F59-AB33-9B486C4DAB86/ReactNativeFFmpegTest.app/pyramid.jpg
Main.js:288 Saved resource tajmahal.jpg to /var/containers/Bundle/Application/DF534C28-4412-4F59-AB33-9B486C4DAB86/ReactNativeFFmpegTest.app/tajmahal.jpg

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.