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
|
|
@ -34,6 +34,7 @@ import AdminPanel from "./pages/admin/AdminPanel.tsx";
|
|||
import AdminHome from "./pages/admin/AdminHome.tsx";
|
||||
import AdminFeedback from "./pages/admin/AdminFeedback.tsx";
|
||||
import AdminMedia from "./pages/admin/AdminMedia.tsx";
|
||||
import AdminClips from "./pages/admin/AdminClips.tsx";
|
||||
import EntityList from "./pages/admin/EntityList.tsx";
|
||||
import EntityEdit from "./pages/admin/EntityEdit.tsx";
|
||||
|
||||
|
|
@ -84,6 +85,9 @@ export default function App() {
|
|||
</Route>
|
||||
<Route path="feedback" element={<AdminFeedback />} />
|
||||
<Route path="media" element={<AdminMedia />} />
|
||||
<Route element={<RequireRole role="admin" />}>
|
||||
<Route path="clips" element={<AdminClips />} />
|
||||
</Route>
|
||||
<Route path=":entity" element={<EntityList />} />
|
||||
<Route path=":entity/:id" element={<EntityEdit />} />
|
||||
</Route>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue