Skip filters during remux
This commit is contained in:
parent
47975ac0f5
commit
d630cea8d6
7
main.go
7
main.go
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user