Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

fix for newer ffmpeg

The ffmpeg shipped with debian (unstable)
ffmpeg version 0.8.4-6:0.8.4-1, Copyright (c) 2000-2012 the Libav developers
ii  ffmpeg             6:0.8.4-1      amd64          Multimedia player, server, encoder and tr

changes slightly the output from '[q]' to 'ctrl-c',
this breaks the emission of the onCodecData signal.

this simple patch extends the regex to match for both cases.

Signed-off-by: Niv Sardi <>
  • Loading branch information...
1 parent 6521924 commit 7b24f69c3dc917ee7db8676ab135aef6f0276fc3 @xaiki xaiki committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/processor.js
2  lib/processor.js
@@ -407,7 +407,7 @@ exports = module.exports = function Processor(command) { = video[1];
- var codecInfoPassed = /Press \[q\] to stop/.test(stderrString);
+ var codecInfoPassed = /Press (\[q\]|ctrl-c) to stop/.test(stderrString);
if (codecInfoPassed) {
this.options.onCodecData = null;

0 comments on commit 7b24f69

Please sign in to comment.
Something went wrong with that request. Please try again.