Pārlūkot izejas kodu

Now that retrying is there; force ffmpeg to fail in case or error (should now avoid to silently download a corrupted video file)

Godzil 6 gadi atpakaļ
vecāks
revīzija
cbafa5bc90
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/video/stream.ts

+ 1 - 1
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"';