badoque / titanium-ffmpeg-android-wrapper

Titanium Appcelerator Wrapper for Android FFMPEG Module (https://github.com/WritingMinds/ffmpeg-android-java)
GNU Lesser General Public License v3.0
5 stars 2 forks source link

Titanium Appcelerator Wrapper for Android FFMPEG Module (https://github.com/WritingMinds/ffmpeg-android-java)

USAGE

var ffmpeg = require('com.badoque.ffmpeg.android')
var cmd = "-y -i " +  inputVideoPath + " -strict experimental -s 160x120 -r 25 -vcodec mpeg4 -b 150k -ab 48000 -ac 2 -ar 22050 "+ outputVideoPath; //comand to compress video
ffmpeg.execute({
    cmd: cmd,
    successCallback: function(e){
        //sucesss
    },
    errorCallback: function(e){
        //error
    }
});