mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Re-add hwaccel cuda
This commit is contained in:
parent
b1d23c2f25
commit
55483878b3
1 changed files with 2 additions and 2 deletions
|
|
@ -285,7 +285,7 @@ impl FFmpegPreset {
|
||||||
if let Some(hwaccel) = hwaccel_opt {
|
if let Some(hwaccel) = hwaccel_opt {
|
||||||
match hwaccel {
|
match hwaccel {
|
||||||
FFmpegHwAccel::Nvidia => {
|
FFmpegHwAccel::Nvidia => {
|
||||||
input.extend(["-hwaccel", "cuvid", "-c:v", "h264_cuvid"]);
|
input.extend(["-hwaccel", "cuda", "-hwaccel_output_format", "cuda", "-c:v", "h264_cuvid"]);
|
||||||
output.extend(["-c:v", "h264_nvenc", "-c:a", "copy"])
|
output.extend(["-c:v", "h264_nvenc", "-c:a", "copy"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -303,7 +303,7 @@ impl FFmpegPreset {
|
||||||
if let Some(hwaccel) = hwaccel_opt {
|
if let Some(hwaccel) = hwaccel_opt {
|
||||||
match hwaccel {
|
match hwaccel {
|
||||||
FFmpegHwAccel::Nvidia => {
|
FFmpegHwAccel::Nvidia => {
|
||||||
input.extend(["-hwaccel", "cuvid", "-c:v", "h264_cuvid"]);
|
input.extend(["-hwaccel", "cuda", "-hwaccel_output_format", "cuda", "-c:v", "h264_cuvid"]);
|
||||||
output.extend(["-c:v", "hevc_nvenc", "-c:a", "copy"])
|
output.extend(["-c:v", "hevc_nvenc", "-c:a", "copy"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue