1
Encoding
Omarchy-Big-PC edited this page 2026-08-28 14:49:54 +01:00

Encoding

The C41 records HEVC video in AVI containers, which browsers cannot play. The player needs H.264/AAC MP4 copies.

The Encoding menu

Open Encoding at the bottom of the page and press Start. The server walks the source folder, converts every AVI that has no MP4 yet into media-mp4, preserving dated folder structure, four files in parallel. The panel shows completed/skipped/failed counts and finishes with a summary.

  • Existing MP4s are skipped, never re-encoded or overwritten.
  • Each file converts through a temporary name, so an interrupted encode never corrupts an existing clip or leaves a half-file in the index.
  • Originals are never modified.
  • You can keep using the player while encoding runs.

What it runs

ffmpeg -i input.avi -vf scale=854:-2 \
  -c:v libx264 -preset ultrafast -tune zerolatency -crf 32 \
  -pix_fmt yuv420p -c:a aac -b:a 64k -movflags +faststart output.mp4

On-the-fly playback

For a single AVI without an MP4 copy, the player transcodes on the fly at higher quality (CRF 28) when you play it. Fine for one clip, wasteful for hundreds. Use the Encoding menu for bulk.

Uploading AVI

AVI uploads land in the source folder. After uploading a batch, run the Encoding menu once and everything becomes playable.