Repository navigation
Add spirula render: render a camera project JSON from the command line - #445
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Frame specs go to ShotFrames, frame count, encoder choice and sinks to RenderOutput, and a model's SourceView to ModelSource, so an export can run without the mode. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sin() hash differed between drivers; an integer hash does not. Noise transitions in existing projects now look different. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Uses the same frames, renderers, encoder choice and sinks as Render mode's export. A hidden GLFW window provides the GL context. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ninobone-oz
marked this pull request as ready for review
November 28, 2026 23:01
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
harry7557558
approved these changes
Nov 29, 2026
harry7557558
left a comment
Owner
There was a problem hiding this comment.
Looks good to me, thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
spirula render <project.json>, mainly for rendering a camera project JSON generated outside Spirula (by a script, a pipeline or another tool) to a video, frames or a photo, with no window. The format is documented key by key, with an example, indocs/notes/render-video.md(commit 5).Projects saved by Render mode work too. Either way it renders through the same frame specs, renderers, encoder choice and sinks as the mode's own export, so a CLI render and a GUI export of one project write the same frames.
Commits
glx::initcan load through a loader other thanglfwGetProcAddress, so a display-less context (EGL) can be added later.RenderSession: frame specs toShotFrames, frame count / encoder choice / sinks toRenderOutput, a model'sSourceViewtoModelSource. No behaviour change.sin()hash inTransitionFx.hgave different results on different GPU drivers; an integer hash does not. Noise transitions in existing projects will look different.spirula render:HeadlessGl(a hidden GLFW window, so it needs a display;xvfb-runon a server),RenderCli.cpp, CLI messages in all catalog languages.-o,--model,--kind,--size,--fps,--codec,--quality,--time,--ffmpeg,--overwrite.-oextension picks photo vs. video, image format and container.--overwrite; Ctrl+C stops the render (encoder probes included) and removes a half-written video.docs/notes/render-video.md: what a generator outside Spirula needs to write a project.spirula renderhelp line (all catalog languages), theRenderCli.cppheader comment and the docs' "From the command line" section now describe it as mainly for externally generated project JSON, instead of a project saved by Render mode.Testing
spirulatarget): each of the five commits compiles and links on its own.spirulatarget) of the final commit compiles and links with no warnings. It builds withoutSS_ENABLE_PATENTED, so it also covers the no-built-in-encoder path ofprobe_builtin_encoder.check_ui_text.py,check_comment_length.py --base masterandcheck_private_paths.shpass.-oextension handling.ffprobeshows 181 frames and 6.03 s. Spot-checked frames follow the keys, with the fade-in from black.-o still.jpg --time 3on a video project writes a 1280x720 JPEG photo.🤖 Generated with Claude Code