xiaohongshu
xiaohongshu
dashcam-frame-extraction
GPU-accelerated frame extraction for Movie_F dashcam videos. This skill should be used when the user needs to extract frames from Movie_F category dashcam videos placed in the Desktop CARDV folder. Extracts 3 frames per video (BEGIN, MIDDLE, END) using NVIDIA CUDA acceleration with automatic gap ...
Full skill instructions
This skill provides automated GPU-accelerated frame extraction for Movie_F dashcam videos. It extracts 3 frames per video (BEGIN at 1s, MIDDLE at 50%, END at duration-1s) using NVIDIA CUDA hardware acceleration, processes videos in parallel batches, and handles HEVC-encoded videos with the critical fixes required for successful extraction.
Use this skill when:
/mnt/windows/Users/yousu/Desktop/CARDV/Movie_F/Important: This skill is specifically for Movie_F category only. Do not use for Park_F, Park_R, or other categories.
To extract frames from Movie_F videos:
cd /home/yousuf/GoogleDrive/PROJECTS/skills/Dashcam/scripts
bash run_extraction.sh
The script will:
For the first use or to understand the complete workflow, read the agent instructions:
cat references/AGENT_INSTRUCTIONS.md
This provides comprehensive guidance on:
Execute the main orchestration script:
cd scripts
bash run_extraction.sh
This script handles the entire pipeline automatically:
Progress updates appear automatically every 30 seconds showing:
Example output:
════════════════════════════════════════════════════════════════
📊 EXTRACTION PROGRESS - 02:15:30 PM
Videos: 45/150 (30%) | Batches: 1/3 | Workers: 4
Speed: 18.5 vids/min | 55.5 fps | ETA: 0.2h | GPU: 85%
════════════════════════════════════════════════════════════════
After completion, check extraction results:
bash scripts/show_results.sh
This displays:
To verify the skill is properly configured and ready to use:
bash scripts/verify_skill.sh
This checks:
The skill includes these executable scripts in scripts/:
run_extraction.sh - Main orchestration script
extract_frames_worker.py - GPU worker process
coordinator.sh - Parallel batch coordinator
monitor.sh - Progress monitoring
show_results.sh - Display extraction results
verify_skill.sh - Skill verification
auto_extract_movie_f.sh - Legacy script
run_extraction.sh insteadThe skill includes comprehensive documentation in references/:
Problem: Videos are HEVC (H.265) encoded. Using -hwaccel_output_format cuda breaks JPEG conversion.
Solution: The worker script uses -hwaccel cuda for decoding ONLY, not output format.
Location: scripts/extract_frames_worker.py lines 46-48
Impact: Without this fix, 0% of videos will succeed.
Configuration: Pipeline exits immediately on ANY failure.
Coordinator: Uses set -euo pipefail (strict mode)
Worker: Returns exit code 1 if any videos fail
Why: All videos must succeed. If any fail, investigate before continuing.
Videos have inconsistent naming:
20250916042109_062060A.MP420250916042109_062060_A.MP420250916042109_062060.MP4Solution: Gap analysis checks all variations automatically.
Each frame extraction has a 30-second timeout. Videos that timeout are marked as failed and stop the pipeline.
Configuration: extract_frames_worker.py line 62
All settings are in references/config.json:
{
"num_workers": 4, // Parallel GPU workers
"batch_size": 50, // Videos per batch
"min_free_gb": 25, // Minimum disk space required
"timeout_seconds": 30 // Timeout per frame extraction
}
Paths:
/mnt/windows/Users/yousu/Desktop/CARDV/Movie_F/home/yousuf/GoogleDrive/PROJECTS/INVESTIGATION/DASHCAM/FRAMES_CLIPS/Movie_F&R_MotionSamples/home/yousuf/PROJECTS/PeopleNet/FrameExtraction/home/yousuf/PROJECTS/PeopleNet/StagingVerify requirements:
bash scripts/verify_skill.sh
Diagnosis: HEVC fix not applied
Solution: Check scripts/extract_frames_worker.py - should NOT have -hwaccel_output_format cuda
Diagnosis: Failure in first batch
Solution: Check logs in /home/yousuf/PROJECTS/PeopleNet/FrameExtraction/logs/, identify failed video, investigate
Diagnosis: Filename pattern mismatch or wrong directory
Solution: Verify videos exist in /mnt/windows/Users/yousu/Desktop/CARDV/Movie_F/
Diagnosis: Less than 25GB free space Solution: Free up disk space or increase staging cleanup
For complete troubleshooting, see references/CRITICAL_FIXES_CHECKLIST.md
scripts/run_extraction.shFrames are named: {video_name}_{position}_{timestamp}ms.jpg
Example:
20250916042109_062060A_BEGIN_001000ms.jpg
20250916042109_062060A_MIDDLE_030450ms.jpg
20250916042109_062060A_END_059900ms.jpg
If extraction needs to be stopped:
# Kill all workers
pkill -f extract_frames_worker
# Kill coordinator
pkill -f coordinator
# Kill monitor
pkill -f monitor
# Clean up staging files
rm -rf /home/yousuf/PROJECTS/PeopleNet/Staging/*
The skill is designed for expansion:
Keep all scripts as additional features will be added in the near future.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience