Disable transpose for CUDA

monorepo
Varun Patil 2023-07-21 20:21:39 -07:00
parent ff9c27a74e
commit f2d1a66a2a
1 changed files with 10 additions and 7 deletions

View File

@ -422,8 +422,10 @@ func (s *Stream) transcodeArgs(startAt float64, isHls bool) []string {
if CV == ENCODER_VAAPI {
transposer = "transpose_vaapi"
} else if CV == ENCODER_NVENC {
transposer = "transpose_npp"
transposer = fmt.Sprintf("transpose_%s", s.c.NVENCScale)
}
if transposer != "transpose_cuda" { // does not exist
if s.m.probe.Rotation == -90 {
filter = fmt.Sprintf("%s,%s=1", filter, transposer)
} else if s.m.probe.Rotation == 90 {
@ -432,6 +434,7 @@ func (s *Stream) transcodeArgs(startAt float64, isHls bool) []string {
filter = fmt.Sprintf("%s,%s=1,%s=1", filter, transposer, transposer)
}
}
}
args = append(args, []string{"-vf", filter}...)
args = append(args, []string{"-profile:v", "main"}...)