Quickstart

From javimosch/supercli · View interactive version

Quickstart is an AI agent skill from the GitHub repository javimosch/supercli. Use when the user asks for FFmpeg or FFprobe commands, video/audio conversion, trimming, resizing, padding, overlays, subtitles, thumbnails, GIFs, storyboards, slideshows, speed control, audio mixing, jump cuts, social-media crops, hardware-accelerated encoding, codec settings, CRF/preset tuning, st

How to use this skill

Skill file

FFmpeg Plugin

Use this skill to produce reliable, explainable FFmpeg/FFprobe commands for media automation via supercli.

Commands

All commands use supercli ffmpeg <resource> <action> syntax.

Video Operations

| Command | Description |

|---------|-------------|

| ffmpeg video convert | Convert between formats (mp4, mkv, avi, webm, mov) |

| ffmpeg video resize | Scale to specific dimensions |

| ffmpeg video trim | Cut time range (lossless with -c copy) |

| ffmpeg video thumbnail | Extract a single frame as image |

| ffmpeg video gif | Create animated GIF |

| ffmpeg video concat | Join multiple videos |

| ffmpeg video speed | Change playback speed (slow-mo / fast-forward) |

| ffmpeg video jump-cut | Remove selected time ranges (jump cuts) |

| ffmpeg video overlay | Overlay logo/image with position and timing |

| ffmpeg video subtitle | Burn subtitles into video (ASS/SRT) |

| ffmpeg video slideshow | Create video slideshow from images with audio |

| ffmpeg video hw-encode | Hardware-accelerated encoding (NVENC/QSV) |

Audio Operations

| Command | Description |

|---------|-------------|

| ffmpeg audio extract | Extract audio track from video |

| ffmpeg audio mix | Mix background music under original audio |

Media Inspection

| Command | Description |

|---------|-------------|

| ffmpeg media inspect | Get detailed metadata as JSON |

| ffmpeg media storyboard | Generate storyboard thumbnails from scene changes |

Defaults

Common Command Patterns

Inspect media

ffprobe -hide_banner -show_streams -show_format input.mp4

Remux without re-encoding

ffmpeg -i input.mp4 -c copy output.mkv

Resize and pad to vertical 1080x1920

ffmpeg -i input.mp4 \
  -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:color=black,setsar=1:1" \
  -c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -c:a aac -movflags +faststart \
  output.mp4

Frame-accurate trim

Use output seeking and re-encode for reliable exact cuts:

ffmpeg -i input.mp4 -ss 00:00:10 -to 00:00:25 \
  -c:v libx264 -crf 18 -preset slow -c:a aac output_trimmed.mp4

Use input seeking before -i only when speed matters more than accuracy.

Replace audio

ffmpeg -i input.mp4 -i music.mp3 \
  -map 0:v -map 1:a -shortest -c:v copy -c:a aac output.mp4

Mix background music under original audio

ffmpeg -i input.mp4 -i music.mp3 \
  -filter_complex "[1:a]volume=0.2[bgm];[0:a][bgm]amix=inputs=2:duration=shortest[a]" \
  -map 0:v -map "[a]" -c:v copy -c:a aac -shortest output.mp4

Overlay logo for a time range

ffmpeg -i input.mp4 -i logo.png \
  -filter_complex "overlay=x=(main_w-overlay_w)/8:y=(main_h-overlay_h)/8:enable='gte(t,1)*lte(t,7)'" \
  -c:v libx264 -crf 18 -preset slow -c:a copy output.mp4

Burn subtitles

ffmpeg -i input.mp4 \
  -vf "subtitles=subtitles.srt:fontsdir=.:force_style='FontName=Poppins,FontSize=24,PrimaryColour=&HFFFFFF'" \
  -c:v libx264 -crf 18 -preset slow -c:a copy output_subtitled.mp4

Add soft subtitle track

ffmpeg -i input.mp4 -i subtitles.srt \
  -c copy -c:s srt -disposition:s:0 default output.mkv

Thumbnail

ffmpeg -i input.mp4 -ss 00:00:07 -frames:v 1 -q:v 2 thumbnail.jpg

GIF from video

ffmpeg -i input.mp4 \
  -vf "select='gt(trunc(t/2),trunc(prev_t/2))',setpts='PTS*0.1',scale=trunc(oh*a/2)*2:320:force_original_aspect_ratio=decrease,pad=trunc(oh*a/2)*2:320:-1:-1" \
  -loop 0 -an output.gif

Takes every second frame and accelerates playback 10x. Use -loop 1 for play-once.

Hardware acceleration (Nvidia NVENC)

ffmpeg -i input.avi -c:v h264_nvenc output.mp4
ffmpeg -i input.avi -c:v hevc_nvenc output.mp4

Hardware acceleration (Intel QSV)

ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -i input.avi -c:v h264_qsv output.mp4

Scene-change thumbnail

ffmpeg -i input.mp4 -vf "select='gt(scene,0.4)'" -frames:v 1 -q:v 2 thumbnail_scene.jpg

Storyboard tile from scene changes

ffmpeg -i input.mp4 -vf "select='gt(scene,0.4)',scale=640:480,tile=2x2" -frames:v 1 storyboard.jpg

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.