Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Snag keeps the last minute of your game ready and saves it when you press **F8**

**Capture.** Fullscreen games included, through Desktop Duplication straight into the GPU encoder. Game audio, mic and Discord can each get their own track, so you can mute your friends later and keep the game sound. Snag can also wait until a game is open before it starts.

**Edit.** Trim, cut out the boring middle, merge clips, speed up, crop to 9:16 for Shorts, add motion blur, or squeeze a clip under Discord's 10 MB limit. Plain trims don't re-encode, so they take about a second.
**Edit.** Trim, cut out the boring middle, merge clips, speed up, crop to 9:16 for Shorts, add motion blur, or squeeze a clip under Discord's free 20 MB limit. Plain trims don't re-encode, so they take about a second.

**Share.** Every save can land on your clipboard as a file, ready for Ctrl+V in Discord. Uploads go to catbox.moe or any ShareX custom uploader (`.sxcu`), and the link is copied for you.

Expand Down
8 changes: 4 additions & 4 deletions frontend/src/features/viewer/ExportPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function ExportPanel({
const outLen = length / draft.speed;

let estimate = "";
if (draft.targetMB > 0) estimate = `under ${draft.targetMB} MB`;
if (draft.targetMB > 0) estimate = `under ${bytes(draft.targetMB * 1024 * 1024, 0)}`;
else if (!encode) estimate = bytes((clip.size * length) / Math.max(clip.duration, 0.01));
else if (draft.format === "gif") estimate = bytes(outLen * 0.6 * 1024 * 1024);
else {
Expand All @@ -92,18 +92,18 @@ export function ExportPanel({
</Field>

{draft.format === "mp4" && (
<Field label="Size limit" hint={draft.targetMB === 10 ? "Discord free upload limit" : draft.targetMB === 50 ? "Discord Nitro Basic" : draft.targetMB === 500 ? "Discord Nitro" : undefined}>
<Field label="Size limit" hint={draft.targetMB === 20 ? "Discord free upload limit" : draft.targetMB === 50 ? "Discord Nitro Basic" : draft.targetMB === 1024 ? "Discord Nitro" : undefined}>
<Select
className="w-full"
value={String(draft.targetMB)}
onChange={(v) => set({ targetMB: Number(v) })}
options={[
{ value: "0", label: "No limit" },
{ value: "10", label: "10 MB" },
{ value: "20", label: "20 MB" },
{ value: "25", label: "25 MB" },
{ value: "50", label: "50 MB" },
{ value: "100", label: "100 MB" },
{ value: "500", label: "500 MB" },
{ value: "1024", label: "1 GB" },
]}
/>
</Field>
Expand Down