Comparing version 2.1.0 to 2.1.1
@@ -15,11 +15,17 @@ #!/usr/bin/env node | ||
var data = new FFmpeg({ source: src }).ffprobe(function(err, metadata){ | ||
new FFmpeg({ source: src }).ffprobe(function(err, metadata){ | ||
if (err){ | ||
throw err; | ||
} else if (!metadata){ | ||
throw new Error('Could not read video metadata!'); | ||
} | ||
var | ||
fileExt = src.split('.')[src.split('.').length - 1] | ||
, fileFormats = metadata.format.format_name.split(',') | ||
, intermediateFormat = fileFormats.indexOf(fileExt) > -1 ? fileExt : fileFormats[0]; | ||
, intermediateFormat = fileFormats.indexOf(fileExt) > -1 ? fileExt : fileFormats[0] | ||
, alpha = new FFmpeg({ source: src }); | ||
var alpha = new FFmpeg({ source: src }); | ||
/* jshint multistr: true */ | ||
alpha.addOption( | ||
@@ -26,0 +32,0 @@ '-vf' |
@@ -26,3 +26,3 @@ module.exports = function(grunt){ | ||
jshint: { | ||
files: ['Gruntfile.js', 'src/*.js'], | ||
files: ['Gruntfile.js', 'src/*.js', 'converter.js'], | ||
options: { | ||
@@ -29,0 +29,0 @@ jshintrc : true |
{ | ||
"name": "seethru", | ||
"description": "HTML5 video with alpha channel transparencies", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Frederik Ring", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153018
21
677