Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m1ga/ti.ffmpeg
Titanium FFMPEG module for Android and iOS
https://github.com/m1ga/ti.ffmpeg
android ffmpeg ios titanium-mobile titanium-module
Last synced: 3 months ago
JSON representation
Titanium FFMPEG module for Android and iOS
- Host: GitHub
- URL: https://github.com/m1ga/ti.ffmpeg
- Owner: m1ga
- License: other
- Created: 2022-04-01T16:47:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-03T08:51:29.000Z (over 1 year ago)
- Last Synced: 2024-05-02T05:13:07.176Z (10 months ago)
- Topics: android, ffmpeg, ios, titanium-mobile, titanium-module
- Language: C
- Homepage:
- Size: 17.8 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Titanium FFMPEG module for Android and iOS
This module allows you to run ffmpeg commands inside your Titanium SDK app. It is using https://github.com/arthenica/ffmpeg-kit "min version".
You can convert video files, add watermarks, cut and merge clips and much more.
## Methods
* info()
* run()## Example
```js
const ffmpeg = require("ti.ffmpeg");
ffmpeg.info({
options: "-encoders"
});ffmpeg.addEventListener("progress", function(e) {});
var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, "video.mp4");
var file_out = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, "video_out.mp4");
var file_watermark = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, "watermark.png");ffmpeg.run({
input: file,
output: file_out,
watermark: file_watermark,
options: "-y -b:v 5M -preset ultrafast -g 1 -filter_complex '[0]scale=512:-1' -an",
success: function(e) {
// e.file
// e.duration
},
error: function(e) {}
})
```also check `example/app.js` for another example app.
## Author
- Android: Michael Gangolf ([@MichaelGangolf](https://twitter.com/MichaelGangolf) / [Web](http://migaweb.de))
![]()
- iOS: Christian Clare ([@narbs](https://github.com/narbs) / [Tambit Software LLC](https://www.groundhum.com/portfolio))## Need an Titanium iOS module?
Get it contact with Christian Clare ([@narbs](https://github.com/narbs) / [Tambit Software LLC](https://www.groundhum.com/portfolio)). He offers Titanium iOS module development as well as native iOS development.