Frame-exact export: MP4, PNG frames, green screen #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Export a scene, or a time range of it, without a screen recorder.
dub run -- scenes/demo.txt --export out/demo.mp4 --scale 2 --fps 60 [--from 2 --to 8], and a key in the player (E) that exports the whole scene with the settings from the scene file.demo_00001.png), with alpha when the background is transparent.ffmpegthrough a pipe. A clear error when ffmpeg is missing.The recorder belongs in parin_kit, see parin_kit#139. Until it lands, keep it in
source/export.dwith// TODO: move to parin_kit, see parin_kit#139.Done when: a 10 second scene exports to a 1080p MP4 whose frames match the player frame for frame.
Found while doing #2: Parin squares the alpha of translucent pixels in the canvas viewport (a shadow with alpha 220 lands as 190 in a transparent PNG). Opaque pixel art is unaffected. For transparent exports, either keep translucent colors out of the look or work around it in the readback (draw the viewport with a premultiplied/custom blend).