Fought with TypeScript
Build / build (push) Successful in 2m57s

This commit is contained in:
2025-10-01 21:32:15 +07:00
parent 958ecdca7d
commit a949e5d46b
2 changed files with 6 additions and 7 deletions
@@ -51,7 +51,7 @@ function Librav1eOptions(props: {
max="10" max="10"
value={props.params.speed ?? 5} value={props.params.speed ?? 5}
oninput={(e) => oninput={(e) =>
props.onParamChanged("speed", e.target.value) props.onParamChanged("speed", parseInt(e.target.value))
} }
/> />
<label for="bitrate">Bitrate</label> <label for="bitrate">Bitrate</label>
@@ -62,7 +62,10 @@ function Librav1eOptions(props: {
id="bitrate" id="bitrate"
value={props.params.vbitrate ?? DEFAULT_BITRATE} value={props.params.vbitrate ?? DEFAULT_BITRATE}
oninput={(e) => oninput={(e) =>
props.onParamChanged("vbitrate", e.target.value) props.onParamChanged(
"vbitrate",
parseInt(e.target.value),
)
} }
/> />
<span>Kbps</span> <span>Kbps</span>
@@ -1,17 +1,13 @@
import { import {
DEFAULT_BITRATE,
type CodecInfo, type CodecInfo,
type FFmpegParamChangedFunc, type FFmpegParamChangedFunc,
type FFmpegParams, type FFmpegParams,
} from "@/util/ffmpeg"; } from "@/util/ffmpeg";
import { os } from "@neutralinojs/lib"; import { os } from "@neutralinojs/lib";
import BreezeIcon from "@/components/BreezeIcon"; import BreezeIcon from "@/components/BreezeIcon";
import { createEffect, createSignal, onMount, Show } from "solid-js"; import { createEffect, createSignal, onMount } from "solid-js";
const DEFAULT_CRF = 30;
function LibSvtAv1Options({ function LibSvtAv1Options({
codec,
params, params,
onParamChanged, onParamChanged,
}: { }: {