fix GIF playback speed, restore removed presets and FPS options
- remove redundant -r flag from GIF encoder (conflicted with fps filter) - restore [960, 540, 16:9] aspect ratio preset - restore low FPS options [1, 2, 5, 10] for GIF exports
This commit is contained in:
@@ -486,7 +486,6 @@ fn encode_gif_pass(
|
|||||||
apply_trim(&mut encode, req);
|
apply_trim(&mut encode, req);
|
||||||
encode
|
encode
|
||||||
.args(["-filter_complex", &filter_complex])
|
.args(["-filter_complex", &filter_complex])
|
||||||
.args(["-r", &effective_fps.to_string()])
|
|
||||||
.args(["-loop", "0"])
|
.args(["-loop", "0"])
|
||||||
.arg(&req.output);
|
.arg(&req.output);
|
||||||
run_with_progress(
|
run_with_progress(
|
||||||
|
|||||||
+3
-2
@@ -59,6 +59,7 @@
|
|||||||
const PRESETS: [number, number, string][] = [
|
const PRESETS: [number, number, string][] = [
|
||||||
[1280, 720, "720p"],
|
[1280, 720, "720p"],
|
||||||
[1920, 1080, "1080p"],
|
[1920, 1080, "1080p"],
|
||||||
|
[960, 540, "16:9"],
|
||||||
[800, 800, "1:1"],
|
[800, 800, "1:1"],
|
||||||
[540, 960, "9:16"],
|
[540, 960, "9:16"],
|
||||||
]
|
]
|
||||||
@@ -512,7 +513,7 @@
|
|||||||
<div class="idle-fps">
|
<div class="idle-fps">
|
||||||
<span class="switch-label">Capture FPS</span>
|
<span class="switch-label">Capture FPS</span>
|
||||||
<select bind:value={fps}>
|
<select bind:value={fps}>
|
||||||
{#each [15, 24, 30, 60] as f}<option value={f}>{f}</option>{/each}
|
{#each [1, 2, 5, 10, 15, 24, 30, 60] as f}<option value={f}>{f}</option>{/each}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -753,7 +754,7 @@
|
|||||||
<label class="control">
|
<label class="control">
|
||||||
<span class="control-label">FPS</span>
|
<span class="control-label">FPS</span>
|
||||||
<select bind:value={fps} onchange={refreshPreview}>
|
<select bind:value={fps} onchange={refreshPreview}>
|
||||||
{#each [15, 24, 30, 60] as f}<option value={f}>{f}</option>{/each}
|
{#each [1, 2, 5, 10, 15, 24, 30, 60] as f}<option value={f}>{f}</option>{/each}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
{#if format !== "gif"}
|
{#if format !== "gif"}
|
||||||
|
|||||||
Reference in New Issue
Block a user