@@ -439,8 +439,9 @@ module.exports = function(proto) {
439439 {
440440 captureStdout : ! outputStream ,
441441 niceness : self . options . niceness ,
442- cwd : self . options . cwd
443- } ,
442+ cwd : self . options . cwd ,
443+ windowsHide : true
444+ } ,
444445
445446 function processCB ( ffmpegProc , stdoutRing , stderrRing ) {
446447 self . ffmpegProc = ffmpegProc ;
@@ -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