Loading...
Loading...
Adds visual descriptions to transcripts by extracting and analyzing video frames with ffmpeg. Creates visual transcript with periodic visual descriptions of the video clip. Use when all files have audio transcripts present (transcript) but don't yet have visual transcripts created (visual_transcript).
npx skill4agent add barefootford/buttercut analyze-videocp libraries/[library]/transcripts/video.json libraries/[library]/transcripts/visual_video.json
ruby .claude/skills/analyze-video/prepare_visual_script.rb libraries/[library]/transcripts/visual_video.jsonmkdir -p tmp/frames/[video_name]ffmpeg -ss 00:00:02 -i video.mov -vframes 1 -vf "scale=1280:-1" tmp/frames/[video_name]/start.jpgtmp/frames/[video_name]/visual_video.jsonvisual{
"start": 2.917,
"end": 7.586,
"text": "Hey, good afternoon everybody.",
"visual": "Man in red shirt speaking to camera in medium shot. Home office with bookshelf. Natural lighting.",
"words": [...]
}{
"start": 35.474,
"end": 56.162,
"text": "",
"visual": "Green bicycle parked in front of building. Urban street with trees.",
"b_roll": true,
"words": []
}rm -rf tmp/frames/[video_name]✓ [video_filename.mov] analyzed successfully
Visual transcript: libraries/[library]/transcripts/visual_video.json
Video path: /full/path/to/video_filename.mov