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

This commit is contained in:
Godzil 2018-06-11 21:35:17 +01:00
parent 67735fb52a
commit cbafa5bc90

View File

@ -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"';