Skip to content

Latest commit

 

History

History
53 lines (44 loc) · 757 Bytes

README.md

File metadata and controls

53 lines (44 loc) · 757 Bytes

ffmpeg.io.js

A quick way to use ffmpeg command

Install

npm install --save ffmpeg.io

Usage

var iof = require('ffmpeg.io')

Change Quality

var json = {
   input: './myVideo.mp4',
   format: '640x360', 
   output: './myVideoModified.mp4'
}
iof.changerQuality(json, function(value){
  //value is true or false
  console.log(value)
});

##Repack

var json = {
   input: './mivideo.mp4',
   output: './mivideo_repack.mp4'
}
iof.repack(json, function(value){
  //value is true or false
  console.log(value)
});

Generate Hls

var json = {
  input: './myVideo.mp4',
  output: './myVideoModified.m3u8'
}

iof.generateHls(json, function(value){
  //value is true or false
  console.log(value);
});