Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/components/ExportSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,52 @@ export default function ExportSettings({
</span>
</div>
</div>
<div>
<div className="flex items-center justify-between mb-1">
<label
htmlFor="noise-reduction-toggle"
className="text-sm font-heading font-semibold uppercase tracking-wider text-[var(--muted)] flex items-center gap-2"
>
<SlidersHorizontal size={10} />
Noise Reduction
<span
className="cursor-help"
title="Reduces grain in low-light videos using FFmpeg hqdn3d filter."
>
<InfoIcon size={14} />
</span>
</label>
</div>

<p className="text-xs text-[var(--muted)] mb-2">
Reduce grain in low-light footage
</p>

<div className="flex gap-2">
{(['off', 'light', 'medium', 'heavy'] as const).map((level) => (
<button
key={level}
onClick={() => onChange({ noiseReduction: level })}
className={cn(
"flex-1 py-1 text-xs font-heading font-semibold uppercase rounded border transition-colors",
recipe.noiseReduction === level
? "bg-film-600 text-white border-film-600"
: "text-[var(--muted)] border-[var(--muted)] hover:border-film-600 hover:text-film-600"
)}
>
{level}
</button>
))}
</div>

{recipe.noiseReduction !== 'off' && (
<div className="flex justify-end mt-2">
<span className="text-xs text-red-700 font-medium">
⚠ Note: significantly increases processing time.
</span>
</div>
)}
</div>
</>
);
}
2 changes: 2 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface EditRecipe {
quality: number;
format: "mp4" | "webm" | "mkv" | "gif";
stabilization: boolean;
noiseReduction: 'off' | 'light' | 'medium' | 'heavy';
brightness: number;
contrast: number;
saturation: number;
Expand Down Expand Up @@ -78,6 +79,7 @@ export const DEFAULT_RECIPE: EditRecipe = {
quality: 23,
format: "mp4",
stabilization: false,
noiseReduction: 'off',
brightness: 0,
contrast: 0,
saturation: 0,
Expand Down
Loading