Add a video clip tool: download our videos, cut, reshape, export
Tools → Video clips (migration 036, admins and up). Paste a YouTube or Facebook link and the server downloads it with yt-dlp; then cut clips: start and end set while watching, a shape (as filmed, 16:9, square or 9:16 at the sizes the platforms ask for, cropped around a chosen point shown over the video), and MP4 video or MP3 audio. Jobs queue and run one at a time with progress. Only YouTube and Facebook links are accepted, and both tools run with argument lists, never a shell. A clip's file is deleted once it has been downloaded in full, unless it's saved to the media library first, which now holds video and audio (image fields still pick images only). Everything is swept a day after it's made. Setup is in docs/video-clips.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8f3f907311
commit
beca01c351
13 changed files with 1431 additions and 17 deletions
|
|
@ -20,7 +20,7 @@ import { Link } from "react-router-dom";
|
|||
import { useAuth } from "../../lib/auth.tsx";
|
||||
import { SITE_VERSION } from "../../lib/version.ts";
|
||||
import { ROLE_LABELS, isSuper } from "../../lib/roles.ts";
|
||||
import { DATA_NAV, FORMS_NAV, PAGES_NAV, PANEL_NAV, TOOLS_NAV, target } from "./adminNav.ts";
|
||||
import { DATA_NAV, FORMS_NAV, PAGES_NAV, PANEL_NAV, TOOLS_NAV, target, visibleItems } from "./adminNav.ts";
|
||||
|
||||
/* One card. The title link is stretched over the whole card with
|
||||
`after:absolute`, which makes the card clickable without nesting
|
||||
|
|
@ -121,7 +121,7 @@ export default function AdminHome() {
|
|||
|
||||
{GROUPS.map((group) => (
|
||||
<CardBlock key={group.label} title={group.label} blurb={group.blurb}>
|
||||
{group.children.map((item) => (
|
||||
{visibleItems(group.children, user).map((item) => (
|
||||
<NavCard key={item.to} item={item} />
|
||||
))}
|
||||
</CardBlock>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue