|
@@ -24,7 +24,7 @@ export default function(rtmpUrl: string, rtmpInputPath: string, swfUrl: string,
|
|
else if (mode === 'HLS')
|
|
else if (mode === 'HLS')
|
|
{
|
|
{
|
|
cmd = command('ffmpeg') + ' ' +
|
|
cmd = command('ffmpeg') + ' ' +
|
|
- '-y ' +
|
|
|
|
|
|
+ '-y -xerror ' +
|
|
'-i "' + rtmpInputPath + '" ' +
|
|
'-i "' + rtmpInputPath + '" ' +
|
|
'-c copy -bsf:a aac_adtstoasc ' +
|
|
'-c copy -bsf:a aac_adtstoasc ' +
|
|
'"' + filePath + '.mp4"';
|
|
'"' + filePath + '.mp4"';
|