diff --git a/src/video/merge.ts b/src/video/merge.ts index ec13fce..a5c2285 100644 --- a/src/video/merge.ts +++ b/src/video/merge.ts @@ -32,7 +32,7 @@ function main(config: typings.IConfig, rtmpInputPath: string, filePath: string, */ function command(): string { if (os.platform() !== 'win32') return 'mkvmerge'; - return path.join(__dirname, '../../bin/mkvmerge.exe'); + return '"' + path.join(__dirname, '../../bin/mkvmerge.exe') + '"'; } /** diff --git a/src/video/stream.ts b/src/video/stream.ts index c4130bd..b73a1d7 100644 --- a/src/video/stream.ts +++ b/src/video/stream.ts @@ -22,5 +22,5 @@ function main(rtmpUrl: string, rtmpInputPath: string, swfUrl: string, filePath: */ function command(): string { if (os.platform() !== 'win32') return 'rtmpdump'; - return path.join(__dirname, '../../bin/rtmpdump.exe'); + return '"' + path.join(__dirname, '../../bin/rtmpdump.exe') + '"'; } \ No newline at end of file