raw-video-processing
Original:🇺🇸 English
Translated
2 scriptsChecked / no sensitive code detected
Post-process raw screen recordings by removing silent segments and applying speed adjustments. Uses FFmpeg-based Python scripts to optimize video pacing automatically.
7installs
Added on
NPX Install
npx skill4agent add zc277584121/marketing-skills raw-video-processingTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Skill: Raw Video Processing
Post-process raw screen recordings to improve pacing — remove silent segments, then speed up the result.
Prerequisite: FFmpeg and Python 3 must be installed.
When to Use
The user has recorded a screencast and wants to clean it up before publishing. Typical issues in raw recordings:
- Long pauses / dead air while thinking or waiting for loading
- Overall pacing feels slow and could benefit from a slight speed boost
Default Workflow
When the user provides a raw video file, run both scripts in sequence by default:
Step 1: Remove Silent Segments
bash
python /path/to/skills/raw-video-processing/scripts/remove_silence.py <input.mp4>This detects and cuts out silent portions, producing .
<input>_nosilence.mp4Default parameters (good for most screencasts):
- — silence detection sensitivity
--threshold -30dB - — minimum silence length (seconds) to remove
--duration 0.8 - — seconds of breathing room kept around speech boundaries
--padding 0.2
The script prints a detailed summary: number of silent segments found, total silence removed, and all kept segments with timestamps. Review this output to confirm the result looks reasonable.
Step 2: Speed Up the Video
bash
python /path/to/skills/raw-video-processing/scripts/speed_video.py <input>_nosilence.mp4This applies a speed multiplier to the silence-removed video, producing .
<input>_nosilence_1.2x.mp4Default parameters:
- — 1.2x playback speed (a subtle boost that doesn't feel rushed)
--speed 1.2
Script Options
remove_silence.py
| Flag | Default | Description |
|---|---|---|
| | Custom output path |
| | Silence threshold in dB (lower = more sensitive) |
| | Minimum silence duration in seconds to remove |
| | Padding kept around non-silent segments |
| off | Only print detected segments, don't export |
speed_video.py
| Flag | Default | Description |
|---|---|---|
| | Custom output path |
| | Playback speed multiplier |
Custom Scenarios
- Only remove silence — run just Step 1.
- Only speed up — run just Step 2 directly on the input file.
- Aggressive cleanup — use for stricter silence removal, and
--threshold -25dB --duration 0.5for faster playback.--speed 1.5 - Preview before committing — use on remove_silence.py to see what would be cut without creating a file.
--dry-run - Custom output name — use on either script to control the output path.
-o
Important Notes
- Always run remove_silence before speed_video. Silence detection works on the original audio; speeding up first would alter the audio characteristics and make silence detection less accurate.
- For long videos (>30 min), the silence removal step may take a few minutes as it processes each segment individually.
- Both scripts preserve video quality — remove_silence uses stream copy (no re-encoding), while speed_video re-encodes with FFmpeg defaults.