Fix remux build variables
This commit is contained in:
parent
60722c79b7
commit
e81872f16e
15
main.go
15
main.go
|
|
@ -3753,6 +3753,14 @@ func (s *appState) executeConvertJob(ctx context.Context, job *queue.Job, progre
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Source metrics (used for filters and bitrate defaults)
|
||||||
|
sourceWidth, _ := cfg["sourceWidth"].(int)
|
||||||
|
sourceHeight, _ := cfg["sourceHeight"].(int)
|
||||||
|
sourceBitrate := 0
|
||||||
|
if v, ok := cfg["sourceBitrate"].(float64); ok {
|
||||||
|
sourceBitrate = int(v)
|
||||||
|
}
|
||||||
|
|
||||||
// Video filters
|
// Video filters
|
||||||
var vf []string
|
var vf []string
|
||||||
if !remux {
|
if !remux {
|
||||||
|
|
@ -3843,13 +3851,6 @@ func (s *appState) executeConvertJob(ctx context.Context, job *queue.Job, progre
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Aspect ratio conversion
|
// Aspect ratio conversion
|
||||||
sourceWidth, _ := cfg["sourceWidth"].(int)
|
|
||||||
sourceHeight, _ := cfg["sourceHeight"].(int)
|
|
||||||
// Get source bitrate if present
|
|
||||||
sourceBitrate := 0
|
|
||||||
if v, ok := cfg["sourceBitrate"].(float64); ok {
|
|
||||||
sourceBitrate = int(v)
|
|
||||||
}
|
|
||||||
srcAspect := utils.AspectRatioFloat(sourceWidth, sourceHeight)
|
srcAspect := utils.AspectRatioFloat(sourceWidth, sourceHeight)
|
||||||
outputAspect, _ := cfg["outputAspect"].(string)
|
outputAspect, _ := cfg["outputAspect"].(string)
|
||||||
aspectHandling, _ := cfg["aspectHandling"].(string)
|
aspectHandling, _ := cfg["aspectHandling"].(string)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user