Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Shorts: a session's settings list which part of the clip's sound goes back

Claude1dc38e6f48e4
diff --git a/src/components/shorts/session-view.tsx b/src/components/shorts/session-view.tsx
index 4b7f3823..152e7e25 100644
--- a/src/components/shorts/session-view.tsx
+++ b/src/components/shorts/session-view.tsx
@@ -24,6 +24,7 @@ import { radioKeys, radioTab } from "@/components/studio/radio-keys";
import { Viewer } from "@/components/studio/viewer";
import { chainState, ENHANCE_COPY, formatSeconds, segmentSeconds, stitchCurrent, stitchSteps, takeSteps, type ChainState, type ShortsSessionSegment } from "@/lib/catalog/shorts";
import { finishLengthProblem, REGEN_OFFERED } from "@/lib/catalog/regenerate";
+import { originalSoundLabel, originalSoundOn } from "@/lib/av/original-sound";
import { useEngineMode } from "@/lib/api";
import type { Generation } from "@/lib/catalog/types";
import { formatCost, ratioValue, timeAgo } from "@/lib/format";
@@ -214,6 +215,12 @@ function Session({ s }: { s: View }) {
<dl className="grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-1 rounded-xl bg-muted/50 p-3 text-[12px]">
<dt className="text-muted-foreground">Preset</dt>
<dd className="truncate">{s.look.name}</dd>
+ {s.source.hasAudio && (
+ <>
+ <dt className="text-muted-foreground">Sound</dt>
+ <dd className="truncate">{originalSoundLabel(originalSoundOn(s.settings.originalSound, s.engine))}</dd>
+ </>
+ )}
<dt className="text-muted-foreground">Engine</dt>
<dd className="flex items-center gap-1">
{s.engine === "open" ? <Cpu className="size-3" /> : <Cloud className="size-3" />}