• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionf1f0f7c02045bc76b1c7e92c566ec959aedec53a (tree)
Zeit2014-04-06 23:10:45
Autorjakago <jakago777@gmai...>
Commiterjakago

Log Message

ffmpegの実行エラーの対応を修正

Ändern Zusammenfassung

Diff

--- a/CaptureStream.rb
+++ b/CaptureStream.rb
@@ -572,17 +572,14 @@ def capture_stream( target, kouza, hdate, file )
572572 command = command % [$ffmpeg, file, id3_title, id3_album, '20' + file[0..1], out_folder + out_file]
573573 end
574574 system( command + " > #{$null} 2>&1" )
575- if $?.to_i == 0x7f00
576- jputs( "\nffmpegが実行できません。パスの通った実行可能な場所にffmpegを置いてください。" )
577- exit
578- end
579-
580575 if $? == 0
581576 result = true
582577 print( 'O' )
583578 else
584579 print( 'X' )
585- File.unlink( out_folder + out_file )
580+ jputs( "\nffmpegの実行でエラーが起こりました。パスの通った実行可能な場所にHTTP Live Streaming(HLS)に対応したffmpegがあることを確認してください。" )
581+ File.unlink( out_folder + out_file ) rescue false
582+ exit
586583 end
587584 end
588585