소스 검색

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
Godzil 6 년 전
부모
커밋
f3a0d0129d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/video/stream.ts

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