From f3a0d0129d9c8141d0235976ffc4b6a9045e1969 Mon Sep 17 00:00:00 2001 From: Godzil Date: Fri, 8 Jun 2018 21:53:47 +0100 Subject: [PATCH] Correct a bug with ffmpeg where it will wait forever for the user to answer a question when trying to overwrite a file. Fix #68 --- src/video/stream.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/stream.ts b/src/video/stream.ts index f10da5b..a0c72fd 100644 --- a/src/video/stream.ts +++ b/src/video/stream.ts @@ -24,6 +24,7 @@ export default function(rtmpUrl: string, rtmpInputPath: string, swfUrl: string, else if (mode === 'HLS') { cmd = command('ffmpeg') + ' ' + + '-y ' + '-i "' + rtmpInputPath + '" ' + '-c copy -bsf:a aac_adtstoasc ' + '"' + filePath + '.mp4"';