Configuration Reference
Complete reference for Fluxion configuration options.
Configuration File
Fluxion uses fluxion.cfg for project-wide settings.
File Location
The config file is searched in this order:
- Current directory (
./fluxion.cfg) - Project root
- User home directory (
~/.fluxion/fluxion.cfg)
Configuration Sections
[CLI]
Command-line interface settings:
ini
[CLI]
quality = high
preview = true
save_last_frame = false
verbosity = INFO
write_to_movie = trueOptions:
quality: low, medium, high, 4kpreview: true/false - Open video after renderingsave_last_frame: true/false - Save final frame as PNGverbosity: DEBUG, INFO, WARNING, ERRORwrite_to_movie: true/false - Write to file
[output]
Output file settings:
ini
[output]
format = mp4
codec = h264
pixel_format = yuv420p
video_dir = ./media/videos
images_dir = ./media/images
text_dir = ./media/textsOptions:
format: mp4, mov, gif, pngcodec: h264, h265, vp9pixel_format: yuv420p, yuv444p, rgb24video_dir: Output directory for videosimages_dir: Output directory for images
[camera]
Camera settings:
ini
[camera]
background_color = #000000
frame_rate = 60
pixel_width = 1920
pixel_height = 1080Options:
background_color: Hex color or nameframe_rate: Frames per secondpixel_width: Width in pixelspixel_height: Height in pixels
[style]
Default style settings:
ini
[style]
font = Arial
font_size = 48
stroke_width = 4
fill_opacity = 1.0Python Configuration
Override settings in code:
python
from fluxion import config
# Quality
config.quality = "high"
config.pixel_width = 1920
config.pixel_height = 1080
config.frame_rate = 60
# Output
config.preview = True
config.write_to_movie = True
config.save_last_frame = True
# Paths
config.media_dir = "./output"
config.video_dir = "./output/videos"
config.images_dir = "./output/images"
# Background
config.background_color = WHITE
config.background_opacity = 1
# Logging
config.verbosity = "DEBUG"Quality Presets
Low Quality
python
config.quality = "low"
# 480p, 15fpsMedium Quality (Default)
python
config.quality = "medium"
# 720p, 30fpsHigh Quality
python
config.quality = "high"
# 1080p, 60fps4K Quality
python
config.quality = "4k"
# 2160p, 60fpsCustom Quality
python
config.pixel_width = 2560
config.pixel_height = 1440
config.frame_rate = 120Performance Settings
python
# Cache settings
config.max_files_cached = 100
# Disable preview for faster rendering
config.preview = False
# Write directly to file
config.write_to_movie = TrueEnvironment Variables
Set via environment:
bash
export FLUXION_QUALITY=high
export FLUXION_PREVIEW=false
export FLUXION_OUTPUT_DIR=./rendersCommand Line Flags
Override config with flags:
bash
# Quality
fluxion -ql scene.py # Low
fluxion -qm scene.py # Medium
fluxion -qh scene.py # High
fluxion -qk scene.py # 4K
# Preview
fluxion -p scene.py # Preview
# Save last frame
fluxion -s scene.py
# Custom resolution
fluxion --resolution 2560,1440 scene.py
# Frame rate
fluxion --frame_rate 120 scene.py