mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
fix: allow unsetting loudnorm config
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -14,6 +14,6 @@ export function transcodeConfigOrmToDto(
|
||||
disableHardwareDecoder: config.disableHardwareDecoder ?? false,
|
||||
disableHardwareEncoding: config.disableHardwareEncoding ?? false,
|
||||
disableHardwareFilters: config.disableHardwareFilters ?? false,
|
||||
audioLoudnormConfig: config.audioLoudnormConfig ?? undefined,
|
||||
audioLoudnormConfig: config.audioLoudnormConfig,
|
||||
} satisfies TranscodeConfig;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ export const TranscodeConfigSchema = z.object({
|
||||
audioBufferSize: z.coerce.number(),
|
||||
audioSampleRate: z.coerce.number(),
|
||||
audioVolumePercent: z.coerce.number().default(100),
|
||||
audioLoudnormConfig: LoudnormConfigSchema.optional(),
|
||||
audioLoudnormConfig: LoudnormConfigSchema.nullable(),
|
||||
normalizeFrameRate: z.boolean(),
|
||||
deinterlaceVideo: z.boolean(),
|
||||
disableChannelOverlay: z.boolean(),
|
||||
|
||||
@@ -59,7 +59,7 @@ export const TranscodeConfigAudioSettingsForm = ({
|
||||
LoudnormConfigSchema.decode({}),
|
||||
);
|
||||
} else {
|
||||
form.setFieldValue('audioLoudnormConfig', undefined);
|
||||
form.setFieldValue('audioLoudnormConfig', null);
|
||||
}
|
||||
},
|
||||
[form],
|
||||
|
||||
@@ -6258,7 +6258,7 @@ export type GetApiChannelsByIdTranscodeConfigResponses = {
|
||||
audioBufferSize: number;
|
||||
audioSampleRate: number;
|
||||
audioVolumePercent: number;
|
||||
audioLoudnormConfig?: {
|
||||
audioLoudnormConfig: {
|
||||
/**
|
||||
* integrated loudness target
|
||||
*/
|
||||
@@ -6275,7 +6275,7 @@ export type GetApiChannelsByIdTranscodeConfigResponses = {
|
||||
* offset gain to add before peak limiter
|
||||
*/
|
||||
offsetGain?: number;
|
||||
};
|
||||
} | null;
|
||||
normalizeFrameRate: boolean;
|
||||
deinterlaceVideo: boolean;
|
||||
disableChannelOverlay: boolean;
|
||||
@@ -14921,7 +14921,7 @@ export type GetApiTranscodeConfigsResponses = {
|
||||
audioBufferSize: number;
|
||||
audioSampleRate: number;
|
||||
audioVolumePercent: number;
|
||||
audioLoudnormConfig?: {
|
||||
audioLoudnormConfig: {
|
||||
/**
|
||||
* integrated loudness target
|
||||
*/
|
||||
@@ -14938,7 +14938,7 @@ export type GetApiTranscodeConfigsResponses = {
|
||||
* offset gain to add before peak limiter
|
||||
*/
|
||||
offsetGain?: number;
|
||||
};
|
||||
} | null;
|
||||
normalizeFrameRate: boolean;
|
||||
deinterlaceVideo: boolean;
|
||||
disableChannelOverlay: boolean;
|
||||
@@ -14976,7 +14976,7 @@ export type PostApiTranscodeConfigsData = {
|
||||
audioBufferSize: number;
|
||||
audioSampleRate: number;
|
||||
audioVolumePercent?: number;
|
||||
audioLoudnormConfig?: {
|
||||
audioLoudnormConfig: {
|
||||
/**
|
||||
* integrated loudness target
|
||||
*/
|
||||
@@ -14993,7 +14993,7 @@ export type PostApiTranscodeConfigsData = {
|
||||
* offset gain to add before peak limiter
|
||||
*/
|
||||
offsetGain?: number;
|
||||
};
|
||||
} | null;
|
||||
normalizeFrameRate: boolean;
|
||||
deinterlaceVideo: boolean;
|
||||
disableChannelOverlay: boolean;
|
||||
@@ -15036,7 +15036,7 @@ export type PostApiTranscodeConfigsResponses = {
|
||||
audioBufferSize: number;
|
||||
audioSampleRate: number;
|
||||
audioVolumePercent: number;
|
||||
audioLoudnormConfig?: {
|
||||
audioLoudnormConfig: {
|
||||
/**
|
||||
* integrated loudness target
|
||||
*/
|
||||
@@ -15053,7 +15053,7 @@ export type PostApiTranscodeConfigsResponses = {
|
||||
* offset gain to add before peak limiter
|
||||
*/
|
||||
offsetGain?: number;
|
||||
};
|
||||
} | null;
|
||||
normalizeFrameRate: boolean;
|
||||
deinterlaceVideo: boolean;
|
||||
disableChannelOverlay: boolean;
|
||||
@@ -15134,7 +15134,7 @@ export type GetApiTranscodeConfigsByIdResponses = {
|
||||
audioBufferSize: number;
|
||||
audioSampleRate: number;
|
||||
audioVolumePercent: number;
|
||||
audioLoudnormConfig?: {
|
||||
audioLoudnormConfig: {
|
||||
/**
|
||||
* integrated loudness target
|
||||
*/
|
||||
@@ -15151,7 +15151,7 @@ export type GetApiTranscodeConfigsByIdResponses = {
|
||||
* offset gain to add before peak limiter
|
||||
*/
|
||||
offsetGain?: number;
|
||||
};
|
||||
} | null;
|
||||
normalizeFrameRate: boolean;
|
||||
deinterlaceVideo: boolean;
|
||||
disableChannelOverlay: boolean;
|
||||
@@ -15190,7 +15190,7 @@ export type PutApiTranscodeConfigsByIdData = {
|
||||
audioBufferSize: number;
|
||||
audioSampleRate: number;
|
||||
audioVolumePercent?: number;
|
||||
audioLoudnormConfig?: {
|
||||
audioLoudnormConfig: {
|
||||
/**
|
||||
* integrated loudness target
|
||||
*/
|
||||
@@ -15207,7 +15207,7 @@ export type PutApiTranscodeConfigsByIdData = {
|
||||
* offset gain to add before peak limiter
|
||||
*/
|
||||
offsetGain?: number;
|
||||
};
|
||||
} | null;
|
||||
normalizeFrameRate: boolean;
|
||||
deinterlaceVideo: boolean;
|
||||
disableChannelOverlay: boolean;
|
||||
@@ -15252,7 +15252,7 @@ export type PutApiTranscodeConfigsByIdResponses = {
|
||||
audioBufferSize: number;
|
||||
audioSampleRate: number;
|
||||
audioVolumePercent: number;
|
||||
audioLoudnormConfig?: {
|
||||
audioLoudnormConfig: {
|
||||
/**
|
||||
* integrated loudness target
|
||||
*/
|
||||
@@ -15269,7 +15269,7 @@ export type PutApiTranscodeConfigsByIdResponses = {
|
||||
* offset gain to add before peak limiter
|
||||
*/
|
||||
offsetGain?: number;
|
||||
};
|
||||
} | null;
|
||||
normalizeFrameRate: boolean;
|
||||
deinterlaceVideo: boolean;
|
||||
disableChannelOverlay: boolean;
|
||||
@@ -15331,7 +15331,7 @@ export type PostApiTranscodeConfigsByIdCopyResponses = {
|
||||
audioBufferSize: number;
|
||||
audioSampleRate: number;
|
||||
audioVolumePercent: number;
|
||||
audioLoudnormConfig?: {
|
||||
audioLoudnormConfig: {
|
||||
/**
|
||||
* integrated loudness target
|
||||
*/
|
||||
@@ -15348,7 +15348,7 @@ export type PostApiTranscodeConfigsByIdCopyResponses = {
|
||||
* offset gain to add before peak limiter
|
||||
*/
|
||||
offsetGain?: number;
|
||||
};
|
||||
} | null;
|
||||
normalizeFrameRate: boolean;
|
||||
deinterlaceVideo: boolean;
|
||||
disableChannelOverlay: boolean;
|
||||
|
||||
@@ -33,6 +33,7 @@ const defaultNewTranscodeConfig: TranscodeConfig = {
|
||||
disableHardwareDecoder: false,
|
||||
disableHardwareEncoding: false,
|
||||
disableHardwareFilters: false,
|
||||
audioLoudnormConfig: null,
|
||||
};
|
||||
|
||||
export const NewTranscodeConfigSettingsPage = () => {
|
||||
|
||||
Reference in New Issue
Block a user