Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 99df291

Browse files
authored
Hide ffmpeg,renice,flvtool console window on windows
1 parent d3953b0 commit 99df291

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/processor.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ module.exports = function(proto) {
439439
{
440440
captureStdout: !outputStream,
441441
niceness: self.options.niceness,
442-
cwd: self.options.cwd
442+
cwd: self.options.cwd,
443+
windowsHide: true
443444
},
444445

445446
function processCB(ffmpegProc, stdoutRing, stderrRing) {
@@ -557,7 +558,7 @@ module.exports = function(proto) {
557558
async.each(
558559
flvmeta,
559560
function(output, cb) {
560-
spawn(flvtool, ['-U', output.target])
561+
spawn(flvtool, ['-U', output.target], {windowsHide: true})
561562
.on('error', function(err) {
562563
cb(new Error('Error running ' + flvtool + ' on ' + output.target + ': ' + err.message));
563564
})
@@ -618,7 +619,7 @@ module.exports = function(proto) {
618619
if (this.ffmpegProc) {
619620
var logger = this.logger;
620621
var pid = this.ffmpegProc.pid;
621-
var renice = spawn('renice', [niceness, '-p', pid]);
622+
var renice = spawn('renice', [niceness, '-p', pid], {windowsHide: true});
622623

623624
renice.on('error', function(err) {
624625
logger.warn('could not renice process ' + pid + ': ' + err.message);

0 commit comments

Comments
 (0)