Thanks to visit codestin.com
Credit goes to github.com

Skip to content

m1ga/ti.ffmpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Android module not working anymore ⚠️

Please read: https://tanersener.medium.com/saying-goodbye-to-ffmpegkit-33ae939767e1 The authoer of the library has archived the project and removed all binaries. At the moment you can't build a Titanium Android version using my module. I'll search for an alternative.

Titanium FFMPEG module for Android and iOS

example app

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

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

Need an Titanium iOS module?

Get it contact with Christian Clare (@narbs / Tambit Software LLC). He offers Titanium iOS module development as well as native iOS development.

About

Titanium FFMPEG module for Android and iOS

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •  

Languages