xonecas.io
311
Fn

ffmpeg-node / commit 5684790

fixed some mistakes, output now includes pathname

xonecas2011-02-03 56847903e53c7c2817f69a72fcdbbd9b43d63bcc parent 0e8cb4f

2 files changed

ffmpeg-node.js+1−1
@@ -63,7 +63,7 @@ exports.convert = function (/* overloaded */) {
6363
6464 if (arguments.length === 3) {
6565 params = [],
66- output = path.basename(
66+ output = path.dirname(file) +'/'+ path.basename(
6767 file, path.extname(file)) +'.'+ type,
6868 callback = arguments[2];
6969 }
test.js+0−2
@@ -2,8 +2,6 @@ var ffmpeg = require('./ffmpeg-node.js');
22
33 ffmpeg.mp4(
44 './test.3gp',
5- ['-s', '720x480'],
6- './test.mp4',
75 function (err, out, code) {
86 console.log(err, out, code);
97 }