Skip filters during remux

This commit is contained in:
Stu Leak 2025-12-24 02:33:28 -05:00
parent 47975ac0f5
commit d630cea8d6

View File

@ -3747,8 +3747,12 @@ func (s *appState) executeConvertJob(ctx context.Context, job *queue.Job, progre
} }
// Video filters // Video filters
remux := strings.EqualFold(selectedFormat.VideoCodec, "copy")
if vc, ok := cfg["videoCodec"].(string); ok && strings.EqualFold(vc, "Copy") {
remux = true
}
var vf []string var vf []string
if !remux {
// Deinterlacing // Deinterlacing
shouldDeinterlace := false shouldDeinterlace := false
deinterlaceMode, _ := cfg["deinterlace"].(string) deinterlaceMode, _ := cfg["deinterlace"].(string)
@ -3835,6 +3839,7 @@ func (s *appState) executeConvertJob(ctx context.Context, job *queue.Job, progre
vf = append(vf, scaleFilter) vf = append(vf, scaleFilter)
} }
} }
}
// Aspect ratio conversion // Aspect ratio conversion
sourceWidth, _ := cfg["sourceWidth"].(int) sourceWidth, _ := cfg["sourceWidth"].(int)