From cbafa5bc903f438207c71da9d633a656e7bfa729 Mon Sep 17 00:00:00 2001 From: Godzil Date: Mon, 11 Jun 2018 21:35:17 +0100 Subject: [PATCH] Now that retrying is there; force ffmpeg to fail in case or error (should now avoid to silently download a corrupted video file) --- src/video/stream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/stream.ts b/src/video/stream.ts index a0c72fd..22aa007 100644 --- a/src/video/stream.ts +++ b/src/video/stream.ts @@ -24,7 +24,7 @@ export default function(rtmpUrl: string, rtmpInputPath: string, swfUrl: string, else if (mode === 'HLS') { cmd = command('ffmpeg') + ' ' + - '-y ' + + '-y -xerror ' + '-i "' + rtmpInputPath + '" ' + '-c copy -bsf:a aac_adtstoasc ' + '"' + filePath + '.mp4"';