feat(498): add 'Prefer native decoder' checkbox to QSV FFmpeg profiles
This commit is contained in:
@@ -208,6 +208,7 @@ function defaultDraft(resolutionId: number): Draft {
|
||||
normalizeVideo: true,
|
||||
padMode: 'Software',
|
||||
qsvExtraHardwareFrames: 64,
|
||||
qsvPreferNativeDecoder: true,
|
||||
resolutionId,
|
||||
scalingBehavior: 'ScaleAndPad',
|
||||
targetLoudness: null,
|
||||
@@ -245,6 +246,7 @@ function draftFromProfile(profile: FFmpegProfile): Draft {
|
||||
normalizeVideo: profile.normalizeVideo,
|
||||
padMode: profile.padMode,
|
||||
qsvExtraHardwareFrames: profile.qsvExtraHardwareFrames,
|
||||
qsvPreferNativeDecoder: profile.qsvPreferNativeDecoder,
|
||||
resolutionId: profile.resolutionId,
|
||||
scalingBehavior: profile.scalingBehavior,
|
||||
targetLoudness: profile.targetLoudness,
|
||||
@@ -781,6 +783,18 @@ function ProfileEditor({ mode }: { mode: { kind: 'add'; from: null | number } |
|
||||
/>
|
||||
</Row>
|
||||
)}
|
||||
{draft.hardwareAcceleration === 'Qsv' && (
|
||||
<Row
|
||||
control={200}
|
||||
help="Decode with the more error-tolerant VA-API decoder instead of QSV, while still encoding with QSV. Recommended on Intel — handles imperfect streams and is required for Dolby Vision."
|
||||
label="Prefer native decoder"
|
||||
>
|
||||
<Checkbox
|
||||
checked={draft.qsvPreferNativeDecoder ?? true}
|
||||
onChange={(qsvPreferNativeDecoder) => set({ qsvPreferNativeDecoder })}
|
||||
/>
|
||||
</Row>
|
||||
)}
|
||||
<Row control={200} label="Normalize frame rate">
|
||||
<Checkbox checked={draft.normalizeFramerate} onChange={(normalizeFramerate) => set({ normalizeFramerate })} />
|
||||
</Row>
|
||||
|
||||
Reference in New Issue
Block a user