taltultc / React Native Mov To Mp4
React native convert mov file to mp4 (iOS)
Stars: ✭ 54
Projects that are alternatives of or similar to React Native Mov To Mp4
Ssfconv
Sogou input method skin file (.ssf file) converter, supports conversion to fcitx or fcitx5 format.
Stars: ✭ 44 (-18.52%)
Mutual labels: convert
Pytorch Caffe Darknet Convert
convert between pytorch, caffe prototxt/weights and darknet cfg/weights
Stars: ✭ 867 (+1505.56%)
Mutual labels: convert
Jc
CLI tool and python library that converts the output of popular command-line tools and file-types to JSON or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
Stars: ✭ 967 (+1690.74%)
Mutual labels: convert
Jsoncsv
a command tool easily convert json file to csv or xlsx
Stars: ✭ 43 (-20.37%)
Mutual labels: convert
Video Containers Debugging Tools
A set of command lines to debug video streaming files like mp4 (MPEG-4 Part 14), ts (MPEG-2 Part 1), fmp4 in Dash, HLS, or MSS, with or without DRM.
Stars: ✭ 27 (-50%)
Mutual labels: mp4
Netcdf2littler
An application to convert NetCDF files to the Little-R format. The Little-R format is the accepted input format for the WRF data assimilation system (WRFDA) preprocessor (obsproc). Currently only the conversion of synoptical weather stations are supported by this application.
Stars: ✭ 5 (-90.74%)
Mutual labels: convert
Ason
[DEPRECATED]: Prefer Moshi, Jackson, Gson, or LoganSquare
Stars: ✭ 777 (+1338.89%)
Mutual labels: convert
Audioworks
A cross-platform, multi-format audio conversion and tagging suite
Stars: ✭ 35 (-35.19%)
Mutual labels: convert
Webxdownloader
Browser extension to download Webex meeting recordings
Stars: ✭ 52 (-3.7%)
Mutual labels: mp4
Swaggerjmx
The swagger UI interface document generates JMX files for JMeter to use.
Stars: ✭ 52 (-3.7%)
Mutual labels: convert
Mediaelement
HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.
Stars: ✭ 7,767 (+14283.33%)
Mutual labels: mp4
react-native-mov-to-mp4
Convert mov file to mp4 for cross-platform playback compatibility.
Installation
react-native >= 0.40:
npm install react-native-mov-to-mp4 --save
also for iOS:
cd ios && pod install && cd ..
react-native < 0.40:
npm install [email protected] --save
link react-native-mov-to-mp4:
react-native link react-native-mov-to-mp4
import MovToMp4 from 'react-native-mov-to-mp4';
const filename = Date.now().toString();
MovToMp4.convertMovToMp4(data.path, filename + ".mp4")
.then(function (results) {
//here you can upload the video...
console.log(results);
});
Parameters:
convertMovToMp4(videoFilePath,newFilenameMp4,callback)
Example
this example use react-native-camera
render() {
return (
<View style={styles.container}>
<Camera
ref={(cam) => {
this.camera = cam;
}}
captureTarget={Camera.constants.CaptureTarget.disk}
captureMode={Camera.constants.CaptureMode.video}
style={styles.preview}
aspect={Camera.constants.Aspect.fill}>
<Text style={styles.capture} onPress={this.takeVideo.bind(this)}>[CAPTURE]</Text>
</Camera>
</View>
);
}
takeVideo() {
if(this.isRec){
this.isRec = false;
this.camera.stopCapture();
}else {
this.isRec = true;
this.camera.capture()
.then((data) => {
const filename = Date.now().toString();
MovToMp4.convertMovToMp4(data.path, filename + ".mp4")
.then(function (results) {
//here you can upload the video...
console.log(results);
});
})
.catch(err => console.error(err));
}
}
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].