chore: auto-commit from dashboard
This commit is contained in:
43
tools/VIDEO_USE.md
Normal file
43
tools/VIDEO_USE.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# video-use — editare video cu Claude Code
|
||||
|
||||
Repo: https://github.com/browser-use/video-use
|
||||
|
||||
## Ce face
|
||||
Editare automata de footage brut: taie filler words, adauga subtitluri, color grading, overlay-uri animate.
|
||||
Claude Code citeste transcriptul (nu "vede" video-ul) si ia decizii de taiere pe baza cuvintelor.
|
||||
|
||||
## Cand se foloseste
|
||||
- Ai inregistrari brute (workshop, talking head, zoom call)
|
||||
- Vrei sa tai umm-urile, pauzele, false start-uri
|
||||
- Vrei subtitluri arse automat
|
||||
- Vrei color grading de baza
|
||||
|
||||
## Cand NU se foloseste
|
||||
- Vrei sa creezi continut de la zero → foloseste HyperFrames (tools/hyperframes_render.sh)
|
||||
|
||||
## Dependente
|
||||
- ElevenLabs API key (Scribe) — transcriere word-level cu timestamps
|
||||
- ffmpeg (/home/moltbot/bin/ffmpeg — deja disponibil)
|
||||
- Python + uv
|
||||
|
||||
## Nota despre Whisper
|
||||
video-use NU foloseste Whisper — are nevoie de timestamps la nivel de cuvant
|
||||
pentru taieri precise. ElevenLabs Scribe ofera asta. Tier gratuit: ~10 min/luna.
|
||||
|
||||
## Setup
|
||||
```bash
|
||||
git clone https://github.com/browser-use/video-use ~/Developer/video-use
|
||||
cd ~/Developer/video-use
|
||||
uv sync
|
||||
cp .env.example .env
|
||||
# Adauga ELEVENLABS_API_KEY in .env
|
||||
ln -sfn ~/Developer/video-use ~/.claude/skills/video-use
|
||||
```
|
||||
|
||||
## Utilizare
|
||||
```bash
|
||||
cd /home/moltbot/videos/<proiect-cu-footage>
|
||||
claude # sau echo-core claude session
|
||||
# "editeaza aceste inregistrari intr-un video de 3 minute"
|
||||
```
|
||||
Output-ul merge in <videos_dir>/edit/final.mp4
|
||||
35
tools/hyperframes_render.sh
Executable file
35
tools/hyperframes_render.sh
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
# Rendareza un proiect HyperFrames la MP4.
|
||||
# Proiectele sunt in ~/videos/<nume-proiect>/index.html
|
||||
# Output-ul merge in acelasi director, accesibil la:
|
||||
# https://moltbot.tailf7372d.ts.net/echo/videos/<proiect>/output.mp4
|
||||
#
|
||||
# Utilizare:
|
||||
# ./hyperframes_render.sh <director-proiect> [output.mp4]
|
||||
# ./hyperframes_render.sh ~/videos/obs-vs-interpretare
|
||||
# ./hyperframes_render.sh ~/videos/obs-vs-interpretare final.mp4
|
||||
#
|
||||
# Fix LXC: HyperFrames foloseste pipe in loc de TCP (seccomp blocheaza socket)
|
||||
# si chrome-headless-shell din cache-ul Playwright.
|
||||
|
||||
set -e
|
||||
|
||||
CHROME="/home/moltbot/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell"
|
||||
PROJECT_DIR="${1:?Utilizare: $0 <director-proiect> [output.mp4]}"
|
||||
OUTPUT="${2:-output.mp4}"
|
||||
|
||||
if [ ! -f "$PROJECT_DIR/index.html" ]; then
|
||||
echo "Eroare: nu gasesc $PROJECT_DIR/index.html"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export PATH="/home/moltbot/bin:$PATH"
|
||||
export HYPERFRAMES_BROWSER_PATH="$CHROME"
|
||||
|
||||
cd "$PROJECT_DIR"
|
||||
npx hyperframes render --output "$OUTPUT" --fps 30 --quality standard
|
||||
|
||||
echo ""
|
||||
echo "Video randat: $PROJECT_DIR/$OUTPUT"
|
||||
RELPATH="${PROJECT_DIR#/home/moltbot/videos/}"
|
||||
echo "Link: https://moltbot.tailf7372d.ts.net/echo/videos/$RELPATH/$OUTPUT"
|
||||
Reference in New Issue
Block a user