Disable transpose for CUDA
parent
ff9c27a74e
commit
f2d1a66a2a
|
@ -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"}...)
|
||||
|
|
Loading…
Reference in New Issue