Skip to content

Configuration

Environment Variables

  • DB_HOST: MySQL/MariaDB server hostname
  • DB_USER: Database username
  • DB_PASSWORD: Database password
  • DB_NAME: Database name (default: encoder)
  • SECRET_KEY: Flask secret key for session management (set to a random, secure value)

Application Settings

Configuration is managed entirely through the web interface on the Config page:

Video Encoder Settings:

  • Watch Folders: Paths to monitor for video files

  • Target Resolution: Optional downscaling (480p, 720p, 1080p, 1440p, 2160p) - only scales down, never up

  • CRF (Quality): Compression quality from 18 (best) to 28 (fastest)

  • Preset: Encoding speed from ultrafast to veryslow

  • Temp Directory: Working directory for temporary files (default: /temp)

Audio Encoder Settings:

  • Watch Folders: Paths to monitor for audio files

  • Bitrate: MP3 output bitrate

  • Temp Directory: Working directory for temporary files (default: /temp)

Supported Formats:

  • Video input: H.264 only (for standard encoding) or H.265 (with target resolution specified)

  • Video output: MKV container with H.265 codec

  • Audio input: FLAC, WAV, M4A, OGG

  • Audio output: MP3 (chosen bitrate)