BLIND-ARITHM(1)

๐Ÿ“ฆ version 1.1, in alpine 3.24

๐Ÿ’… blind-arithm(1) โ€” the arithmetic-on-videos girlie โœจ

okay so this is a page from the General Commands Manual, and it's about blind-arithm, a whole vibe for doing math on videos ๐ŸŽ€


โœจ NAME โœจ

blind-arithm โ€” perform simple arithmetic on a video ๐Ÿงฎ๐ŸŽฌ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

blind-arithm [-axyz] operation right-hand-stream

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So here's the whole deal, bestie: blind-arithm reads the left-hand operands from stdin, and it reads the right-hand operands from right-hand-stream, then it does the operation you picked to those read values and prints the resulting video to stdout. ๐Ÿ’–

The operation happens with operands from the same colour parameters, on the same pixels, on the same frames, on the two videos. like, matching up perfectly, one-to-one, no cap ๐Ÿ‘‘

And the length thing โ€” listen up, this is important ๐Ÿ“ข

  • If stdin is longer than right-hand-stream, the remainder of stdin gets printed without any changes โœจ
  • If stdin is shorter than right-hand-stream, the remainder of right-hand-stream is ignored but may be partially read ๐Ÿ‘€
not me warning you about that "may be partially read" โ€” it's literally right there in the manual, so don't be surprised ๐Ÿซถ

๐Ÿ”ฅ OPERATIONS ๐Ÿ”ฅ

Pick your fighter, she's gotta be one of these:

  • add โ€” calculate the sum of the operands โž•
  • sub โ€” subtract the right-hand operand from the left-hand operand โž–
  • mul โ€” calculate the product of the operands โœ–๏ธ
  • div โ€” divide the left-hand operand by the right-hand operand โž—
  • exp โ€” raise the left-hand operand to the nth operand, where n is the value of the right-hand operand โšก
  • log โ€” calculate the logarithm of the left-hand operand and divide it by the logarithm of the right-hand operand ๐ŸŒฒ
  • min โ€” select the lowest operand ๐Ÿ”ฝ
  • max โ€” select the highest operand ๐Ÿ”ผ
  • abs โ€” calculate the sum of absolute value of the left-hand operand subtracted by the right-hand operand, and the right-hand operand ๐Ÿ’€
i know. i know. that last one is worded exactly like that and i'm not about to "fix" it for you โ€” it's giving iconically confusing but we respect the source fr fr ๐Ÿ™ˆ

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -a โ€” do not modify the alpha channel (the fourth channel) ๐ŸŽ€
  • -x โ€” do not modify the X channel (the first channel) ๐Ÿ’œ
  • -y โ€” do not modify the Y channel (the second channel) ๐ŸŒˆ
  • -z โ€” do not modify the Z channel (the third channel) โญ

like, each flag is literally "leave this channel alone, she's fine" โ€” pick whichever channels you want untouched and the tool will respect her boundaries โœจ


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

blind(7), blind-single-colour(1), blind-set-alpha(1), blind-set-luma(1), blind-invert-luma(1), blind-set-saturation(1) โ€” go read those too, they're the rest of the friend group ๐Ÿซถ๐Ÿ’–


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

Mattias Andrรฉe <maandree@kth.se> โ€” the actual main character who made this ๐ŸŽ€


okay that's the whole page, bestie!! and for the cute little sign-off: this is blind 1.1, page for BLIND-ARITHM(1) in the General Commands Manual โ€” mwah, go do some math on a video ๐Ÿ’…โœจ๐Ÿ“

๐Ÿ“ฆ where this page comes from