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"
value={props.params.speed ?? 5}
oninput={(e) =>
props.onParamChanged("speed", e.target.value)
props.onParamChanged("speed", parseInt(e.target.value))
}
/>
<label for="bitrate">Bitrate</label>
@@ -62,7 +62,10 @@ function Librav1eOptions(props: {
id="bitrate"
value={props.params.vbitrate ?? DEFAULT_BITRATE}
oninput={(e) =>
props.onParamChanged("vbitrate", e.target.value)
props.onParamChanged(
"vbitrate",
parseInt(e.target.value),
)
}
/>
<span>Kbps</span>
@@ -1,17 +1,13 @@
import {
DEFAULT_BITRATE,
type CodecInfo,
type FFmpegParamChangedFunc,
type FFmpegParams,
} from "@/util/ffmpeg";
import { os } from "@neutralinojs/lib";
import BreezeIcon from "@/components/BreezeIcon";
import { createEffect, createSignal, onMount, Show } from "solid-js";
const DEFAULT_CRF = 30;
import { createEffect, createSignal, onMount } from "solid-js";
function LibSvtAv1Options({
codec,
params,
onParamChanged,
}: {