Created
October 21, 2013 10:37
-
-
Save janpieper/7081811 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/video/PngEncoder.js b/lib/video/PngEncoder.js | |
index 127411c..0c201e0 100644 | |
--- a/lib/video/PngEncoder.js | |
+++ b/lib/video/PngEncoder.js | |
@@ -98,7 +98,7 @@ PngEncoder.prototype._spawnFfmpeg = function() { | |
ffmpegOptions.push('-r', this._frameRate); // framerate flag | |
ffmpegOptions.push('-'); // output | |
// @TODO allow people to configure the ffmpeg path | |
- return this._spawn('ffmpeg', ffmpegOptions); | |
+ return this._spawn('avconv', ffmpegOptions); | |
}; | |
PngEncoder.prototype.end = function() { | |
diff --git a/test/unit/video/test-PngEncoder.js b/test/unit/video/test-PngEncoder.js | |
index 6fcb5c4..0dfd279 100644 | |
--- a/test/unit/video/test-PngEncoder.js | |
+++ b/test/unit/video/test-PngEncoder.js | |
@@ -51,7 +51,7 @@ test('PngEncoder', { | |
this.encoder.write(new Buffer('foo')); | |
assert.equal(this.fakeSpawn.callCount, 1); | |
- assert.equal(this.fakeSpawn.getCall(0).args[0], 'ffmpeg'); | |
+ assert.equal(this.fakeSpawn.getCall(0).args[0], 'avconv'); | |
// Another write does not spawn another ffmpeg | |
this.encoder.write(new Buffer('bar')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment