Skip to content

Commit

Permalink
VCEEncC で HW デコーダーの利用をやめ、ソフトウェアでデコードするように変更
Browse files Browse the repository at this point in the history
VCE の HW デコーダーはちょっとしたドロップでもフリーズするなどエラー耐性が低く TS を扱う用途では不安定なため、安定性を優先する
reference: rigaya/NVEnc#335 (comment)
  • Loading branch information
tsukumijima committed May 23, 2021
1 parent 38299c9 commit 12a6464
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/stream.php
Expand Up @@ -475,8 +475,9 @@ function stream_start($stream, $ch, $sid, $tsid, $BonDriver, $quality, $encoder,

// 入力
' --input-format mpegts --fps 30000/1001 --input-probesize 1000K --input-analyze 0.7 -i -'.
// avhw エンコード
' --avhw'.
// avsw エンコード
// VCE の HW デコーダーはエラー耐性が低く TS を扱う用途では不安定なので、SW デコーダーを利用する
' --avsw'.
// HLS
' -m hls_time:'.$hlslive_time.' --gop-len '.($hlslive_time * 30).
' -m hls_list_size:'.$hlslive_list.
Expand Down Expand Up @@ -789,8 +790,9 @@ function stream_file($stream, $filepath, $extension, $quality, $encoder, $subtit

// 入力
' -i -'.
// avhw エンコード
' --avhw'.
// avsw エンコード
// VCE の HW デコーダーはエラー耐性が低く TS を扱う用途では不安定なので、SW デコーダーを利用する
' --avsw'.
// HLS
' -m hls_time:'.$hlsfile_time.' --gop-len '.($hlsfile_time * 30).
' -m hls_list_size:0'.
Expand Down

0 comments on commit 12a6464

Please sign in to comment.