BLIND-CROP(1)

πŸ“¦ version 1.1, in alpine 3.24

πŸ’… BLIND-CROP(1) β€” the blind-crop era ✨

okay bestie, so this is a page from the General Commands Manual and today's main character is blind-crop. buckle up, it's giving "tiny tool, big slay" πŸŽ€


🌸 NAME 🌸

blind-crop β€” extract subframes for all frames πŸ’–


✨ SYNOPSIS ✨

blind-crop [-s | -S | -t] width height left top

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: blind-crop reads a video in from stdin and prints a cropped version of it out to stdout. iconic behaviour, honestly πŸ”₯

the new video gets the width and height you asked for, and ngl it'll have the exact same length as the input video. no cap.

here's the vibe on placement:

  • the subvideo's left-most pixels sit left pixels to the right of the input video's left-most pixels
  • the subvideo's top-most pixels sit top pixels downward from the input video's top-most pixels
🫢 heads up bestie: the selected subvideo may not extend beyond the input video. the vibe check is strict here.

πŸ’… OPTIONS πŸ’…

  • -s β€” instead of resizing the video, sets alpha (and all the colour parameters) to 0 on every pixel outside the selected region. so like, everything you didn't pick gets ghosted πŸ’€
  • -S β€” instead of resizing the video, sets alpha (and all the colour parameters) to 0 on every pixel inside the selected region. yes, the reverse of -s. your fave gets vanished instead πŸ™ˆ
  • -t β€” instead of changing the width and height of the output video, puts the subvideo side-by-side. the subvideo's left-most pixel gets positioned left pixels rightward of the output video's left-most pixel, and the subvideo's top-most pixel gets positioned top pixels downward of the output video's left-most pixel πŸŽ€

🧚 REQUIREMENTS 🧚

okay so memory, bestie, let's talk about it. blind-crop requires enough free memory to load two full frames into memory:

  1. one of the size of the source video's frames, and
  2. one of the size of the target video's frames

but 🌈 β€” if -s or -S is used, only memory for one full frame, of the size of the source video's frames, is required. we love a low-effort moment πŸ’œ

a frame requires 32 bytes per pixel it contains. periodt.

πŸ’€ ngl, blind-crop has not been optimised for memory usage β€” it's optimised for code simplicity instead. it said "my code, my rules" and honestly? respect.

πŸ‘‘ SEE ALSO πŸ‘‘


🌟 AUTHORS 🌟

Mattias AndrΓ©e <maandree@kth.se> β€” the icon who made this happen 🫢


and that's the whole page, bestie πŸ’– this was blind-crop from blind 1.1 β€” go forth and crop responsibly, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from