Skip to content

Commit 82c942e

Browse files
committed
Enhance: Update build-in Preset output pathType to 'source'
1 parent 8061d40 commit 82c942e

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ go run cmd/server/main.go
9393
# Frontend
9494
cd frontend
9595
npm install
96-
npm run dev
96+
VITE_USE_MOCK=true npm run dev
9797
```
9898

9999
## Configuration

frontend/src/lib/mockData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const mockTasks: Task[] = [
126126
hardwareAccel: 'cpu',
127127
video: { crf: 28, preset: 'slow' },
128128
audio: { codec: 'opus' },
129-
output: { container: 'mkv', suffix: '_av1', pathType: 'source' },
129+
output: { container: 'mkv', suffix: '_av1', pathType: 'default' },
130130
},
131131
},
132132
// Completed tasks
@@ -570,7 +570,7 @@ export const mockPresets: Preset[] = [
570570
hardwareAccel: 'nvidia',
571571
video: { crf: 28, preset: 'veryfast' },
572572
audio: { codec: 'copy' },
573-
output: { container: 'mp4', suffix: '_fast', pathType: 'source' },
573+
output: { container: 'mp4', suffix: '_fast', pathType: 'default' },
574574
},
575575
},
576576
]

internal/database/sqlite.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ func (db *DB) InitializeBuiltinPresets() error {
545545
Output: model.OutputConfig{
546546
Container: "mkv",
547547
Suffix: "_h265_balanced",
548-
PathType: "default",
548+
PathType: "source",
549549
},
550550
ExtraParams: `-profile:v main10 -x265-params "high-tier=1:preset=slow:me=umh:subme=5:merange=48:weightb=1:bframes=5:ref=3:aq-mode=4" -fps_mode passthrough`,
551551
},
@@ -573,7 +573,7 @@ func (db *DB) InitializeBuiltinPresets() error {
573573
Output: model.OutputConfig{
574574
Container: "mkv",
575575
Suffix: "_h265_standard",
576-
PathType: "default",
576+
PathType: "source",
577577
},
578578
ExtraParams: `-profile:v main10 -x265-params "high-tier=1:preset=slow:me=umh:subme=5:merange=48:weightb=1:ref=3:bframes=8:b-adapt=2:aq-mode=4:aq-strength=1:rd=3:rskip=1:rc-lookahead=60:psy-rd=1.6:deblock=0,-1" -fps_mode passthrough`,
579579
},
@@ -601,7 +601,7 @@ func (db *DB) InitializeBuiltinPresets() error {
601601
Output: model.OutputConfig{
602602
Container: "mkv",
603603
Suffix: "_h265_edit",
604-
PathType: "default",
604+
PathType: "source",
605605
},
606606
ExtraParams: `-profile:v main10 -x265-params "high-tier=1:ctu=32:me=star:subme=5:merange=48:bframes=4:ref=3:crf=17:rd=3:rskip=1:rc-lookahead=120:tune=grain" -fps_mode passthrough`,
607607
},
@@ -629,7 +629,7 @@ func (db *DB) InitializeBuiltinPresets() error {
629629
Output: model.OutputConfig{
630630
Container: "mkv",
631631
Suffix: "_av1_hq",
632-
PathType: "default",
632+
PathType: "source",
633633
},
634634
ExtraParams: `-svtav1-params "keyint=12s:scd=1:enable-tf=2:tf-strength=2:enable-qm=1:enable-variance-boost=1:variance-boost-curve=2:variance-boost-strength=2:variance-octile=2:enable-dlf=2:sharpness=6"`,
635635
},
@@ -657,7 +657,7 @@ func (db *DB) InitializeBuiltinPresets() error {
657657
Output: model.OutputConfig{
658658
Container: "mkv",
659659
Suffix: "_av1",
660-
PathType: "default",
660+
PathType: "source",
661661
},
662662
ExtraParams: `-svtav1-params "keyint=12s:scd=1:enable-tf=2:tf-strength=2:enable-dlf=2:sharpness=4"`,
663663
},
@@ -685,7 +685,7 @@ func (db *DB) InitializeBuiltinPresets() error {
685685
Output: model.OutputConfig{
686686
Container: "mkv",
687687
Suffix: "_av1_fast",
688-
PathType: "default",
688+
PathType: "source",
689689
},
690690
ExtraParams: `-svtav1-params "keyint=10s:scd=1:scm=0:enable-tf=2:tf-strength=2:sharpness=4"`,
691691
},

0 commit comments

Comments
 (0)