@@ -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,
|
||||
}: {
|
||||
|
||||
Reference in New Issue
Block a user