Keep codec controls visible in remux mode
This commit is contained in:
parent
f6e748fa47
commit
8c66256d7c
89
main.go
89
main.go
|
|
@ -7010,10 +7010,6 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
formatLabels = append(formatLabels, opt.Label)
|
formatLabels = append(formatLabels, opt.Label)
|
||||||
}
|
}
|
||||||
|
|
||||||
var outputExtLabel *widget.Label
|
|
||||||
var outputExtBG *canvas.Rectangle
|
|
||||||
var updateOutputHint func()
|
|
||||||
|
|
||||||
// Format selector
|
// Format selector
|
||||||
formatColors := ui.BuildFormatColorMap(formatLabels)
|
formatColors := ui.BuildFormatColorMap(formatLabels)
|
||||||
formatContainer := ui.NewColoredSelect(formatLabels, formatColors, func(selected string) {
|
formatContainer := ui.NewColoredSelect(formatLabels, formatColors, func(selected string) {
|
||||||
|
|
@ -8805,31 +8801,82 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if advancedVideoEncodingBlock != nil {
|
if advancedVideoEncodingBlock != nil {
|
||||||
if remux {
|
advancedVideoEncodingBlock.Show()
|
||||||
advancedVideoEncodingBlock.Hide()
|
|
||||||
} else {
|
|
||||||
advancedVideoEncodingBlock.Show()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if audioEncodingSection != nil {
|
if audioEncodingSection != nil {
|
||||||
if remux {
|
audioEncodingSection.Show()
|
||||||
audioEncodingSection.Hide()
|
|
||||||
} else {
|
|
||||||
audioEncodingSection.Show()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if videoCodecSelect != nil {
|
if videoCodecSelect != nil {
|
||||||
if remux {
|
videoCodecSelect.Enable()
|
||||||
// videoCodecSelect.Disable()
|
|
||||||
} else {
|
|
||||||
// videoCodecSelect.Enable()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if audioCodecSelect != nil {
|
if audioCodecSelect != nil {
|
||||||
if remux {
|
if remux {
|
||||||
// audioCodecSelect.Disable()
|
audioCodecSelect.Disable()
|
||||||
} else {
|
} else {
|
||||||
// audioCodecSelect.Enable()
|
audioCodecSelect.Enable()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if qualitySectionAdv != nil {
|
||||||
|
if remux {
|
||||||
|
qualitySectionAdv.Hide()
|
||||||
|
} else {
|
||||||
|
qualitySectionAdv.Show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if encoderPresetSelect != nil {
|
||||||
|
if remux {
|
||||||
|
encoderPresetSelect.Disable()
|
||||||
|
} else {
|
||||||
|
encoderPresetSelect.Enable()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if bitrateModeSelect != nil {
|
||||||
|
if remux {
|
||||||
|
bitrateModeSelect.Disable()
|
||||||
|
} else {
|
||||||
|
bitrateModeSelect.Enable()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if crfContainer != nil {
|
||||||
|
if remux {
|
||||||
|
crfContainer.Hide()
|
||||||
|
} else {
|
||||||
|
crfContainer.Show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if bitrateContainer != nil {
|
||||||
|
if remux {
|
||||||
|
bitrateContainer.Hide()
|
||||||
|
} else {
|
||||||
|
bitrateContainer.Show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if targetSizeContainer != nil {
|
||||||
|
if remux {
|
||||||
|
targetSizeContainer.Hide()
|
||||||
|
} else {
|
||||||
|
targetSizeContainer.Show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if encodingHintContainer != nil {
|
||||||
|
if remux {
|
||||||
|
encodingHintContainer.Hide()
|
||||||
|
} else {
|
||||||
|
encodingHintContainer.Show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if audioBitrateSelect != nil {
|
||||||
|
if remux {
|
||||||
|
audioBitrateSelect.Disable()
|
||||||
|
} else {
|
||||||
|
audioBitrateSelect.Enable()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if audioChannelsSelect != nil {
|
||||||
|
if remux {
|
||||||
|
audioChannelsSelect.Disable()
|
||||||
|
} else {
|
||||||
|
audioChannelsSelect.Enable()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if remux {
|
if remux {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user