launch_decode(3)
π launch_decode(3) π
Okay bestie, this is launch_decode(3) from the Arcan Lua API, and it's literally here to launch a video decoding frameserver. No cap. π¬β¨
π NAME π
launch_decode β Launch a video decoding frameserver
π SYNOPSIS π
The synopsis starts with vid, aid sitting right up top, then gives you these call shapes:
vid, aid
launch_decode( string:resource, func:callback(vid:source, strtbl:status)
)
launch_decode( string:resource, string:opts, func:callback(vid:source,
strtbl:status) )
launch_decode( nil, string:opts, func:callback(vid:source,
strtbl:status) )
β¨ DESCRIPTION β¨
So what's the vibe? It spawns a new decode frameserver process, with the input resource defined by resource. The callback function behaves similarly to that of launch_target β iykyk. π«Ά
If opts is provided, it will be processed based on the capabilities of the decode frameserver. Wanna view those capabilities? Run it from a command-line, like this: ARCAN_ARG =help afsrv_decode.
π¨ Legacy alert, bestie: due to an unfortunate legacy, certainresourcenames are reserved for special purposes and are prefixed asdevice:,capture:andstream:. Those prefixes are reserved, periodt. π
πΈ EXAMPLE πΈ
function launch_decode0()
vid = launch_decode("test.avi", function(source, status)
print(status.kind);
end);
show_image(vid);
resize_image(vid, VRESW, VRESH);
end
π SEE ALSO: π
targetcontrol
xoxo, bestie π β source/version: targetcontrol, date: October 2026, page: launch_decode(3) β¨π¦
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms