Skip to content

Commit

Permalink
remove look_ahead for quicksync hw encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
mafiosnik777 committed Aug 5, 2023
1 parent 74527a7 commit ec47743
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/codecs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"h264_amf": "-c:v h264_amf -quality balanced -profile high -rc cqp -qp 20 -pix_fmt nv12",
"hevc_amf": "-c:v hevc_amf -quality balanced -profile main -rc cqp -qp 20 -pix_fmt nv12",
"av1_amf": "-c:v av1_amf -quality balanced -profile main -rc cqp -qp 20 -pix_fmt nv12",
"h264_qsv": "-c:v h264_qsv -preset slow -look_ahead 30 -q 25 -pix_fmt nv12",
"hevc_qsv": "-c:v hevc_qsv -preset slow -look_ahead 30 -q 25 -pix_fmt nv12",
"av1_qsv":"-c:v av1_qsv -preset slow -look_ahead 30 -q 25 -pix_fmt nv12"
"h264_qsv": "-c:v h264_qsv -preset slow -q 25 -pix_fmt nv12",
"hevc_qsv": "-c:v hevc_qsv -preset slow -q 25 -pix_fmt nv12",
"av1_qsv":"-c:v av1_qsv -preset slow -q 25 -pix_fmt nv12"
}
]
}
2 changes: 1 addition & 1 deletion src/js/interpolation.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ class Interpolation {
} else {
terminal.innerHTML += '\r\n' + enhancrPrefix + ` Starting interpolation process..` + '\r\n';
let previewEncoder = () => {
if (sessionStorage.getItem('gpu') == 'Intel') return '-c:v h264_qsv -preset fast -look_ahead 30 -q 25 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'Intel') return '-c:v h264_qsv -preset fast -q 25 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'AMD') return '-c:v h264_amf -quality balanced -rc cqp -qp 20 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'NVIDIA') return '-c:v h264_nvenc -preset llhq -b_adapt 1 -rc-lookahead 30 -qp 18 -qp_cb_offset -2 -qp_cr_offset -2 -pix_fmt nv12'
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/restoration.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class Restoration {

terminal.innerHTML += '\r\n' + enhancrPrefix + ` Starting restoration process..` + '\r\n';
let previewEncoder = () => {
if (sessionStorage.getItem('gpu') == 'Intel') return '-c:v h264_qsv -preset fast -look_ahead 30 -q 25 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'Intel') return '-c:v h264_qsv -preset fast -q 25 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'AMD') return '-c:v h264_amf -quality balanced -rc cqp -qp 20 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'NVIDIA') return '-c:v h264_nvenc -preset llhq -b_adapt 1 -rc-lookahead 30 -qp 18 -qp_cb_offset -2 -qp_cr_offset -2 -pix_fmt nv12'
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/upscaling.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ class Upscaling {

terminal.innerHTML += '\r\n' + enhancrPrefix + ` Starting upscaling process..` + '\r\n';
let previewEncoder = () => {
if (sessionStorage.getItem('gpu') == 'Intel') return '-c:v h264_qsv -preset fast -look_ahead 30 -q 25 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'Intel') return '-c:v h264_qsv -preset fast -q 25 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'AMD') return '-c:v h264_amf -quality balanced -rc cqp -qp 20 -pix_fmt nv12'
if (sessionStorage.getItem('gpu') == 'NVIDIA') return '-c:v h264_nvenc -preset llhq -b_adapt 1 -rc-lookahead 30 -qp 18 -qp_cb_offset -2 -qp_cr_offset -2 -pix_fmt nv12'
}
Expand Down

0 comments on commit ec47743

Please sign in to comment.