video-edit

heygen-com/skills · updated Apr 8, 2026

$npx skills add https://github.com/heygen-com/skills --skill video-edit
0 commentsdiscussion
summary

Edit videos locally by running ffmpeg/ffprobe directly. No wrapper scripts needed.

skill.md

Video Edit

Edit videos locally by running ffmpeg/ffprobe directly. No wrapper scripts needed.

Prerequisites

Install ffmpeg (includes ffprobe):

# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt update && sudo apt install -y ffmpeg

# Verify
ffmpeg -version && ffprobe -version

Quick Reference

Get video info

ffprobe -v quiet -print_format json -show_format -show_streams video.mp4

Trim

ffmpeg -y -ss 00:00:30 -to 00:01:45 -i video.mp4 -c copy trimmed.mp4

Concatenate clips

# 1. Create a file list
printf "file '%s'\n" clip1.mp4 clip2.mp4 clip3.mp4 > list.txt

# 2. Concat with stream copy
ffmpeg -y -f concat -safe 0 -i list.txt -c copy joined.mp4

Resize for platform

ffmpeg -y -i video.mp4 \
  -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:black" \
  -c:a copy tiktok.mp4

Change speed

# 2x faster
ffmpeg -y -i video.mp4 -filter:v "setpts=0.5*PTS" -filter:a "atempo=2.0" fast.mp4

# 0.5x (slow motion)
ffmpeg -y -i video.mp4 -filter:v "setpts=2.0*PTS" -filter:a "atempo=0.5" slow.mp4

Extract audio

ffmpeg -y -i video.mp4 -vn -acodec libmp3lame audio.mp3

Replace audio

ffmpeg -y -i video.mp4 -i audio.mp3 -c:v copy -map 0:v:0 -map 1:a:0 -shortest output.mp4

Compress

ffmpeg -y -i video.mp4 -crf 23 -preset medium -c:a copy compressed.mp4

Convert format

ffmpeg -y -i video.mov output.mp4

Add image overlay

# Logo in top-right corner
ffmpeg -y -i video.mp4 -i logo.png \
  -filter_complex "overlay=W-w-10:10" -c:a copy watermarked.mp4

Platform Presets

Platform Resolution Scale + pad filter
TikTok 1080 x 1920 scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:black
YouTube 1920 x 1080 scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:black
Instagram 1080 x 1350 scale=1080:1350:force_original_aspect_ratio=decrease,pad=1080:1350:(ow-iw)/2:(oh-ih)/2:black
Square 1080 x 1080 scale=1080:1080:force_original_aspect_ratio=decrease,pad=1080:1080:(ow-iw)/2:(oh-ih)/2:black
Twitter/X 1920 x 1080 scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:black

Use the filter with: ffmpeg -y -i input.mp4 -vf "<filter>" -c:a copy output.mp4

Tips

  • Always use -y to overwrite output without prompting.
  • Use -c copy when you only need to cut/join (no re-encoding, very fast).
  • Lower CRF = better quality, larger file. Range 18-28 is typical; 23 is the default.
  • For detailed recipes and flag explanations, see references/operations.md.

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.664 reviews
  • Valentina Zhang· Dec 28, 2024

    Solid pick for teams standardizing on skills: video-edit is focused, and the summary matches what you get after install.

  • Valentina Liu· Dec 16, 2024

    Useful defaults in video-edit — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Sofia Garcia· Dec 16, 2024

    video-edit is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Noah Torres· Dec 8, 2024

    I recommend video-edit for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Aarav Liu· Dec 4, 2024

    video-edit fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Hassan Tandon· Nov 27, 2024

    video-edit fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Soo Ghosh· Nov 23, 2024

    Registry listing for video-edit matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Sofia Johnson· Nov 23, 2024

    I recommend video-edit for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Sofia Smith· Nov 19, 2024

    video-edit has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Noah Khan· Nov 7, 2024

    Useful defaults in video-edit — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

showing 1-10 of 64

1 / 7