Skip to content

juandav/ffmpeg.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

A quick way to use ffmpeg command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •