fluent-ffmpeg
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -0,0 +0,0 @@ var express = require('express'), |
@@ -0,0 +0,0 @@ var ffmpeg = require('../lib/fluent-ffmpeg'); |
var ffmpegmeta = require('../lib/fluent-ffmpeg').Metadata; | ||
// make sure you set the correct path to your video file | ||
ffmpegmeta.get('/var/www/v_vxxxxxxxxxxxxxxx_d_000000.mov', function(metadata) { | ||
ffmpegmeta.get('/path/to/your_movie.avi', function(metadata) { | ||
console.log(require('util').inspect(metadata, false, null)); | ||
}); |
@@ -0,0 +0,0 @@ var ffmpeg = require('../lib/fluent-ffmpeg'); |
@@ -56,3 +56,3 @@ var fs = require('fs'), | ||
FfmpegProcessor.prototype.withAudioBitrate = function(abitrate) { | ||
if (typeof abitrate == 'String' && abitrate.indexOf('k') > 0) { | ||
if (typeof abitrate == 'string' && abitrate.indexOf('k') > 0) { | ||
abitrate = abitrate.replace('k', ''); | ||
@@ -71,2 +71,6 @@ } | ||
}; | ||
FfmpegProcessor.prototype.withAudioFrequency = function(frequency) { | ||
options.audio.frequency = frequency; | ||
return this; | ||
}; | ||
FfmpegProcessor.prototype.setStartTime = function(timestamp) { | ||
@@ -296,2 +300,5 @@ options.starttime = timestamp; | ||
} | ||
if (options.audio.frequency) { | ||
args.push('ar', options.audio.frequency); | ||
} | ||
@@ -298,0 +305,0 @@ // add additional options |
@@ -0,0 +0,0 @@ exports.load = function(ffmpeg) { |
@@ -5,5 +5,5 @@ exports.load = function(ffmpeg) { | ||
.withVideoBitrate('256k') | ||
.withSize('640x480') | ||
.withFps(24) | ||
.withAudioBitrate('128k') | ||
.withAudioFrequency(22050) | ||
.withAudioChannels(2) | ||
@@ -10,0 +10,0 @@ .addOptions([ '-sameq' ]); |
@@ -0,0 +0,0 @@ exports.load = function(ffmpeg) { |
{ | ||
"name": "fluent-ffmpeg", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A fluent API to FFMPEG (http://www.ffmpeg.org)", | ||
@@ -5,0 +5,0 @@ "keywords": [ "ffmpeg" ], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
190975
17
469