Index of every page on this site: llms.txt
All skills
botkitsdev avatar

/botkits-shorts-reframe

@c282a38
by botkitsdevbotkitsdev/botkits10 stars
3
Run it yourself

Use this when turning a 16:9 video into 9:16 with a fixed center crop, scaling to 1080x1920, keeping the audio, and checking duration and resolution.

Use this Skill: https://skilld.dev/gh/botkitsdev/botkits/botkits-shorts-reframe

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

Shorts reframe

Turn one landscape (16:9) clip into a vertical (9:16) clip with a fixed center crop. Do not pan, zoom, or pad with letterboxing.

Command

Crop the full height to a centered 9:16 slice, then scale to 1080x1920. Copy the audio as-is (-c:a copy). Video must be re-encoded because a crop changes the pixels.

ffmpeg -i input.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" -c:a copy output.mp4

crop=ih*9/16:ih keeps the input height and sets the width to height × 9/16. When x and y are omitted, the crop filter centers the rectangle (x defaults to (in_w-out_w)/2). The expression works at any 16:9 source size (1920x1080, 1280x720, and so on).

If the source has no audio, drop -c:a copy. If the subject sits off-center, set x explicitly instead of relying on the default, for example crop=ih*9/16:ih:(iw-ih*9/16)/3:0. This skill stays on a fixed crop; do not animate the window.

Checks

After the encode, confirm the output is 1080x1920 and that its duration matches the source (within a frame or two):

ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of default=noprint_wrappers=1 output.mp4
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1 input.mp4
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1 output.mp4

Width must be 1080 and height 1920. If duration drifted, re-run and check you did not add -t, -ss, or a mismatched -shortest flag.

Inspired by

Inspired by the FFmpeg crop filter docs (crop=w:h:x:y, ih/iw, and centered defaults) and the mediacodec.dev crop guide (crop=ih*9/16:ih with -c:a copy). The official docs are a filter reference, not a 16:9-to-9:16 recipe; the guide has the centered crop but not a scale to 1080x1920 or duration and resolution checks. This skill adds the complete command and those two checks.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2d3 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    This skill provides instructions for reframing landscape videos into vertical formats using standard ffmpeg commands. It contains no malicious code or suspicious patterns.

  • Socket2d

    No alerts

  • Snyk2d

    Risk: MEDIUM · 1 issue

Signed by skilld at c282a38. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 5 days ago

README badge

README badge for botkitsdev/botkits/botkits-shorts-reframe