ilusm.dev

vid

Video processing, encoding, decoding, streaming, effects.

Load with: use vid

Quick example

use vid

result = vidne("value", "value", \(x) x)
prn(result)

Functions

Video context

vidne(w, h, fps)

Creates a new instance. Takes w, h, fps.

vidcl(v)

Closes or clears. Takes v.

Load/Save

vidld(path)

Performs the operation. Takes path.

vidsv(vid, path, codec)

Performs the operation. Takes vid, path, codec.

Creation

vdblc(w, h, dur, fps)

Performs the operation. Takes w, h, dur, fps.

vdwht(w, h, dur, fps)

Performs the operation. Takes w, h, dur, fps.

vdclr(w, h, c, dur, fps)

Performs the operation. Takes w, h, c, dur, fps.

Capture

vidcp(d)

Performs the operation. Takes d.

vdcpf(cap)

Performs the operation. Takes cap.

vdcpc(cap)

Performs the operation. Takes cap.

Screen recording

vidrc(w, h, fps)

Performs the operation. Takes w, h, fps.

vdrcs(rec)

Performs the operation. Takes rec.

Frames

vdfrc(vid)

Performs the operation. Takes vid.

vdgtf(vid, i)

Performs the operation. Takes vid, i.

vdstf(vid, i, fr)

Performs the operation. Takes vid, i, fr.

vddlf(vid, i)

Performs the operation. Takes vid, i.

vdnsf(vid, i, fr)

Performs the operation. Takes vid, i, fr.

Editing

vidc0(vid, st, ed)

Performs the operation. Takes vid, st, ed.

vidct(vids)

Performs the operation. Takes vids.

vdspl(vid, pos, ins)

Performs the operation. Takes vid, pos, ins.

Transforms

vdrsz(vid, nw, nh)

Returns the size or count. Takes vid, nw, nh.

vidrt(vid, deg)

Performs the operation. Takes vid, deg.

vdflp(vid)

Performs the operation. Takes vid.

vdfl0(vid)

Performs the operation. Takes vid.

vdcrp(vid, x, y, w, h)

Performs the operation. Takes vid, x, y, w, h.

Effects

vdblr(vid, r)

Performs the operation. Takes vid, r.

vdshr(vid, a)

Performs the operation. Takes vid, a.

vdbrg(vid, v)

Performs the operation. Takes vid, v.

vdcnt(vid, v)

Performs the operation. Takes vid, v.

vdst2(vid, v)

Performs the operation. Takes vid, v.

vidhe(vid, v)

Performs the operation. Takes vid, v.

vdgry(vid)

Performs the operation. Takes vid.

vdspi(vid)

Performs the operation. Takes vid.

vidnv(vid)

Performs the operation. Takes vid.

vdfdi(vid, dur)

Disconnects. Takes vid, dur.

vdfdo(vid, dur)

Performs the operation. Takes vid, dur.

vdcrs(vid1, vid2, dur)

Resets. Takes vid1, vid2, dur.

Speed

vdslw(vid, f)

Performs the operation. Takes vid, f.

vdfst(vid, f)

Sets a value or starts a process. Takes vid, f.

vidrv(vid)

Performs the operation. Takes vid.

Audio

vdddd(vid, aud)

Performs the operation. Takes vid, aud.

vdrmd(vid)

Performs the operation. Takes vid.

vdmte(vid)

Performs the operation. Takes vid.

vidvl(vid, v)

Validates. Takes vid, v.

Text/Overlay

vdtxt(vid, txt, x, y, opts)

Performs the operation. Takes vid, txt, x, y, opts.

vidmg(vid, img, x, y)

Performs the operation. Takes vid, img, x, y.

vdshp(vid, shp, x, y, opts)

Performs the operation. Takes vid, shp, x, y, opts.

Streaming

vdst1(url, w, h, fps)

Performs the operation. Takes url, w, h, fps.

vdst0(st, fr)

Performs the operation. Takes st, fr.

vdstr(st)

Performs the operation. Takes st.

Analysis

vdmtn(vid, thresh)

Performs the operation. Takes vid, thresh.

vdscn(vid, thresh)

Performs the operation. Takes vid, thresh.

vdfcs(vid)

Performs the operation. Takes vid.

Export frames

vdxtr(vid, pat)

Performs the operation. Takes vid, pat.

vdtgf(vid, pat)

Performs the operation. Takes vid, pat.

Codecs

vidnc(vid, codec, crf)

Performs the operation. Takes vid, codec, crf.

GIF

vidgf(path, w, h, fps)

Performs the operation. Takes path, w, h, fps.

Chroma key

vidky(vid, c, tol)

Performs the operation. Takes vid, c, tol.

Notes

  • Video processing - frame capture, encoding, streaming.