Fix H.265 2-Pass command, Fixed sidebar size
Build / build (push) Successful in 1m57s

This commit is contained in:
2025-08-18 14:05:51 +07:00
parent 209168dbf3
commit 01306a9688
5 changed files with 139 additions and 90 deletions
+1 -3
View File
@@ -40,9 +40,7 @@ function App() {
const [windowFocused, setWindowFocused] = createSignal(true);
const [displayedCodecs, setDisplayedCodecs]: Signal<CodecInfo[]> =
createSignal([] as CodecInfo[]);
const [fileList, setFileList] = createSignal([
"/home/satakunu/Videos/litetask_demo.mkv",
]);
const [fileList, setFileList] = createSignal([] as string[]);
const [selectedClip, setSelectedClip] = createSignal("");
const [outputCommand, setOutputCommand] = createSignal(
"ffmpeg -i {filename}",
+2 -1
View File
@@ -54,6 +54,7 @@ ul.k-list-view {
list-style: none;
padding: var(--k-small-spacing);
margin: 0;
overflow: scroll;
&.bordered {
border: 1px solid var(--k-border-color);
@@ -78,7 +79,7 @@ ul.k-list-view {
.k-white-sidebar {
background-color: var(--k-primary-highlight);
min-width: 32.5vw;
width: 32.5vw;
&.k-rborder {
border-right: 1px solid var(--k-border-color);
+2 -2
View File
@@ -116,11 +116,11 @@ export function generateOutputCommand(params: FFmpegParams) {
params.preset === undefined ? "" : ` -preset ${params.preset}`
} -progress -`;
return `ffmpeg -hwaccel auto -y ${commonOpts} ${params.vcodec === "h265" ? "-x265-params pass=1" : "-pass 1"} ${
return `ffmpeg -hwaccel auto -y ${commonOpts} ${params.vcodec === "hevc" ? "-x265-params pass=1" : "-pass 1"} ${
params.doNotUseAn ? "-vsync cfr" : "-an"
} -f null ${NULL_LOCATION} &&
ffmpeg -y -hwaccel auto ${commonOpts} ${
params.vcodec === "h265" ? "-x265-params pass=2" : "-pass 2"
params.vcodec === "hevc" ? "-x265-params pass=2" : "-pass 2"
} -c:a ${
params.acodec ?? "copy"
}${params.abitrate === undefined ? "" : ` -b:a ${params.abitrate}k`} "${params.outputFile ?? "{output}"}"`;