In brief
- Use -b or --background for background rendering, -f for a still frame, and -a for an animation.
- Using // in the output path makes files relative to the blend file.
- Animation frames can be saved as separate images such as PNG; OpenEXR can also be used for demanding compositing work.
- In Blender 5.2 LTS command-line options, the Cycles device can be set to CPU, CUDA, OPTIX, HIP, ONEAPI, or METAL.
Blender 5.2 LTS’s official manual explains command-line options for rendering scenes independently of the interface and managing output files. This approach helps you specify choices such as file paths, frame numbers, the render engine, and the Cycles device when scheduling still or animation renders. The steps below are based on the Blender 5.2 LTS documentation.
1. Set background rendering and choose frames
Use -b or --background to run Blender without opening the interface. Start a still render with -f; -a processes animation frames across the start and end range. To select a specific scene, add its name after the -S option. Define the start, end, and step with -s, -e, and -j.
Specify the blend file to render in the command.
Add
-bif you need to run without the interface.For a still, use
-fand the frame number; for an animation, use-a.Consider the
-Eoption to specify the render engine. Run-E helpto see the available engines.
The manual gives this example format for rendering a still and selecting a Cycles device:
blender -b file.blend -f 20 -- --cycles-device OPTIXOptions for Cycles must be written after the double dash. The documentation lists CPU, CUDA, OPTIX, HIP, ONEAPI, and METAL as valid devices; adding +CPU to a GPU option allows rendering to run on the CPU and GPU together. Before selecting an option, check that the hardware and Blender configuration on your system support it.
2. Set the output path and frame names
Specify the output path on the command line with -o or --render-output. A path that starts with // is relative to the blend file. When you use # characters in a filename, they are replaced by the frame number; the number of characters determines the length of the zero-padded number. For example, the animation_##_test.png naming pattern creates the first frame as animation_01_test.png.
If the filename for an animation render contains no #, Blender adds #### to the filename for the frame number. Setting the output path and naming convention in advance can make it easier to sort frames later and resume from a point where a problem occurred.
Enter the output folder with
-o.Start the path with
//if you want it relative to the blend file.Put the appropriate number of
#characters in the filename to set the frame-number length.Use the frame options on the command line when you need to select individual frames or specify a range;
-fsupports comma-separated frame lists and ranges written with...
3. Image sequence or video? Choose an output that suits your workflow
Blender’s Output panel sets the location and format for rendered files. Still renders are not saved automatically by default, while animation renders are written to the configured output path. If the panel’s automatic-save option is disabled, another output method is needed; for example, an active File Output Node can be used.
| Setting | Recommended value | Effect |
|---|---|---|
| Render output | PNG image sequence for animation | Makes it easier to resume from the affected frame if a problem occurs during rendering. |
| Intermediate output for demanding compositing | OpenEXR | Can preserve HDR pixel data and be used in compositing. |
| Frame number | # characters in the filename | Sets the length and position of frame numbers. |
| Very large video output | Autosplit Output for video exceeding 2 GiB | Splits the output into new files when the first file reaches 2 GiB. |
The official manual recommends saving frames as separate files such as PNG or OpenEXR rather than rendering directly to a video format as a first step. This can make it possible to resume from the affected frame if rendering is interrupted, instead of rerendering the whole animation. You can also import the image sequence into the Video Sequencer to try different video-encoding settings more quickly than rerendering the scene. Lossy compression should be left until delivery rather than applied to a file that will be processed further.
Pixel density (PPI or DPI) is metadata about the physical size intended for an image in print or desktop publishing software; it does not improve image quality. So when evaluating resolution and print targets, it is important not to confuse this field with a render-quality setting.
4. Applying this to architectural and visualization workflows
For architectural animations, rendering frames as separate images can help limit the work that needs to be redone after an interruption. Combining the image sequence later in the Video Sequencer also lets you add audio and video clips within the same workflow. For still presentation images, check in advance how automatic saving works and how to save a still render.
Decide whether the file path should be relative to the blend file or point to another location.
Specify the render engine with
-E; if you are unsure of the engine name, check the output of-E help.If using Cycles, choose a device suitable for your system. The manual notes that render-time and memory-usage statistics can be recorded with
--cycles-print-stats.Check frame numbers and output naming before a long animation render; zero padding helps keep files in order.
When running Blender in the background, the --log, --log-level, and --log-file options are available for tracking errors and process messages. For example, the info log level reports information about devices, files, configuration, and operations; warning shows warnings, and error shows errors. When choosing an output format or video encoder, also check compatibility between the container and codec. The manual notes that some combinations may be incompatible and that codecs may not support every image size.
Common mistakes
Assuming still renders are saved automatically: Blender’s documented default behavior is to save still images manually.
Omitting the frame marker from animation output: If there is no
#, Blender adds####to the filename for the frame number; check this rule against the intended name.Rendering straight to video without accounting for interruptions: An image sequence offers the flexibility to resume from a problematic frame and change encoding settings later.
Confusing PPI/DPI with image quality: This value relates to physical size and does not affect render quality on its own.
Failing to check compatibility between the video container and codec: If an error occurs, review both options and any image-size limitations of the codec.
Sources
2 sourcesSource texts are not republished; short quotes are marked, everything else is our own summary and commentary.
For architecture offices and visualization teams in Turkey, command-line rendering is useful for running repeated jobs with consistent output settings and managing animation frames. In particular, using an image sequence means you can focus on the problematic frame if rendering is interrupted, rather than restarting the entire scene.
However, your choice of Cycles device needs to be compatible with your hardware; do not assume that every option listed in the documentation is available on every system. Output paths, automatic saving, and video codec compatibility should also be tested during setup. Mistaking PPI/DPI for a quality setting and assuming still renders are saved automatically are common workflow pitfalls.
Frequently asked questions
How do you render an animation from the command line in Blender?
Use `-b` to run without the interface and `-a` to process animation frames. Specify the output location with `-o`.
How are frame numbers written in Blender render output?
Use `#` characters in the filename to set the zero-padded length of the frame number. If there is no `#`, Blender adds `####` to animation output for the frame number.
Should you save a Blender animation directly as a video?
The Blender manual recommends first rendering separate images such as PNG or OpenEXR. An image sequence can make it easier to resume from a frame if rendering is interrupted and try video-encoding options later.



