1cenc (OneColumnEncoder) is a Windows video encoding assistant built on .NET 9 / WPF. Rather than hiding encoding behind a black box, it automates common, repetitive, error-prone steps while keeping full control over external tools, scripts, encoder parameters, and command lines.
The design balances hardcore workflows with an intuitive UI — users can start encodes quickly and inspect or intervene in the underlying logic when needed.
1cenc uses a "single-column" main interface: tool import, upstream programs, encoders, dependencies, video sources, script sources, source validation, encoding settings, and start encoding are all laid out in workflow order on the main interface instead of nested menus.
Benefits:
- Common operations can be done directly on the main interface, reducing back-and-forth navigation.
- Tools, sources, check status, and output settings are visible at the same time, making the current encoding pipeline easier to understand.
- Selecting upstream programs, encoders, source files, and script sources mostly takes a single click — contrast with dropdown menus that need at least two clicks, two cursor movements, and smaller button areas.
The trade-off is a longer main interface that requires scrolling. To address this, the project provides ▶▶ / ▼▼ collapse mechanisms so users can collapse sections while keeping key status visible. First-time users should expand all sections and read through the full layout before collapsing to their preference.
1cenc is designed so encoding can begin without entering secondary configuration screens. After importing tools, selecting a source, analyzing it, and setting output, users can start encoding directly from the main interface.
Secondary windows handle:
- Encoder parameter fine-tuning
- Parallelism / NUMA / thread settings
- Filter and script editing
- Clip sampling
- Encoding monitoring
- App settings and cleanup
The Start Encode button is grayed out when conditions would inevitably cause task failure:
- Required tools not imported/selected: at minimum, an upstream program, an encoder, and ffprobe.
- No video source / queue / concat source imported.
- Source video corrupted to the point that ffprobe cannot analyze it — critical data missing.
- Upstream program and script source mismatch: e.g.,
vspiperequires.vpy,avs2yuv/avs2pipemodrequire.avs. avs2pipemodselected withoutavisynth.dlldependency (or vice versa — they must match).- Output directory not writable, insufficient disk space, or other hardware/system issues.
- Output file already exists: the overwrite guard shows an orange warning on the pre-encoding checklist card, graying out Start Encode. Users can bypass the checklist to unlock the button, but a cooldown-based secondary confirmation dialog (proportional to the overwritten file's size) appears after clicking Start.
Some warnings in source validation and pre-encoding checklists can be bypassed. The principle: errors block inevitably failing or high-risk processes; warnings notify the user but leave the final choice to them.
1cenc's normal UI elements use low-brightness, low-contrast colors to reduce visual strain during extended sessions. Status indicators use traffic-light logic:
- Red: error, usually blocks progress.
- Orange/Yellow: warning, can be bypassed.
- Cyan/Green: success, conditions satisfied.
Users can quickly scan the main interface to determine whether the workflow is ready, rather than reading each check item individually.
1cenc assumes users may understand encoding but may not want to memorize long command lines. All operations should be achievable with a mouse.
UI controls use:
- Cards: representing tools, sources, settings, and status.
- Dropdown menus: selecting tool import types, language, encoding modes, etc.
- Sliders: configuring CRF, ABR, keyframe intervals, scaling ratios, thread counts, and other continuous/stepped parameters.
- Toggles / Checkboxes: controlling filters, third-party parameters, parallelism preferences, and other boolean options.
- Copyable text: displaying paths, commands, logs, analysis JSON, etc. — right-click context menu to open or copy.
The final command is shown before starting an encode and can be reviewed in the encoding monitor — easy to inspect and reproduce.
1cenc supports four main source routes: single, queue, concat, and Repart.
Single source mode is the most common workflow: one video source or script source produces one output.
Available routes:
ffmpegreads the video source and outputs a Y4M pipe.vspipereads VapourSynth.vpyscripts.avs2yuv/avs2pipemodreads AviSynth.avsscripts.OneLineShotArgsreads SVFI-related source configuration for the SVFI route.
Single source mode supports clip sampling — extract a segment by time or frame number for quick quality verification.
Queue mode handles "a batch of independent video sources producing a batch of independent outputs." Typical use cases: TV series, BDRips, and other already-segmented streams with consistent formats.
Queue mode imports a folder. After import, ffprobe analyzes all candidate sources and filters out streams with inconsistent formats based on compatibility rules.
1cenc provides two strategies:
- Use the first video stream as reference, excluding files whose validation results differ too much.
- Weighted vote, then use the representative group as reference — suitable for BDMV directories mixing main features, intros, trailers, menu clips, etc.
- Source file count equals output file count; one-to-one automatic muxing.
- Tasks execute sequentially, not in parallel.
- Queue sidebar shows Pending, Encoding, Completed, Failed, Interrupted states.
- Generates
.avs/.vpyscripts for the queue. - Supports filtering out short segments by minimum duration.
- Does not support clip sampling.
- Does not support
OneLineShotArgs/ SVFI route.
Concat mode is for "multiple video fragments spliced into a single output." Its primary use case is handling BDMV main features split into multiple segments — multi-part sources or "playlist-based" discs.
Concat mode performs basic compatibility checks on import:
- At least two video files required.
- File extensions must match.
- Resolutions must match.
- Codec, pixel format, validation checklist signature, and frame rate differences produce warnings.
- VFR and frame-rate signature differences are treated as warnings, directing users to apply VFR→CFR repair in the filter editor.
Concat mode generates the ffmpeg concat demuxer filelist for script export and audio muxing, and can produce concat .avs / .vpy scripts. ffmpeg video encoding opens each fragment separately and stitches decoded frames with the concat filter, avoiding shared decoder context across mixed source variants. The filter editor allows reordering, removing fragments, and regenerating the filelist.
Audio handling splits by mode: generated AVS/VPY scripts handle video only; Disable stays video-only, Copy maps audio directly from the concat timeline, and AAC/Opus re-encode modes write a temp audio file first, then mux with the encoded video. For VFR sources or complex boundary fragments, audio duration may exceed video duration, so check and handle audio after concat encoding.
Repart mode treats an ordered set of strictly matching CFR video streams as one virtual frame timeline, then manually repartitions that timeline into independent episode outputs. It handles both joined sources containing several episodes and fragmented sources where one episode spans several files.
The dedicated partition-style window provides input and output sidebars, a proportional allocation map, synchronized time/frame fields, unallocated gaps, and adjacent-output merging. Chapter-folder import supports disc playlists: multi-entry MPLS sources combine into one virtual source, and mixed STREAM folders resolve to the dominant matching episode group instead of the first file. Each output is encoded independently; Repart can mux clipped source-timeline audio per the selected audio mux mode, while source subtitles, chapters, and metadata remain excluded.
The BD Playlist Selector modal handles playlist picking for chapter-folder import. BdPlaylistScanner clusters playlist candidates first, then BdPlaylistSelectModal lets the user choose which playlists to keep and in what order before chapter import continues.
Its UI is narrow in scope: clusters on the left, playlists from the selected cluster in the middle, and the final ordered list on the right. The ViewModel owns the selection state, final ordered list, and button states (add, remove, reorder, clear, cancel, confirm). The view only binds to that state; it does not perform scan, chapter read, or file resolution.
This keeps the import flow reusable: the same selection modal opens from Repart-related import paths, and the confirmed result is just the ordered playlist path list passed to the chapter reader.
Playlist structure matters:
- Normal: one playlist contains all episodes. For both movies and TV shows, the longest playlist is usually correct.
- Separated: one playlist per episode. For TV shows, matching playlists usually have similar durations.
- The third column exists for the separated case. Choosing a single playlist there imports only one episode, not the whole title set.
Container-level timing granularity is normalized, not part of the format signature. Repart's strict source signature compares actual video format fields (codec, profile, level, dimensions, pixel format, color metadata, frame rate, extradata) but deliberately excludes the per-stream time_base — the muxer's tick resolution, e.g. 1/24000 vs 1/96000 at the same 24000/1001 fps. That is a container detail rather than a video format property, so an encode batch that muxed identical episodes at different tick resolutions still forms one virtual timeline. This is safe because every upstream normalizes timing: ffmpeg resets each input's PTS and rebuilds a CFR PTS sequence from the plan frame rate, VapourSynth/AviSynth splice by frames, and the final MKV uses -video_track_timescale derived from the reference source.
Repart mode implements "concatenate into one virtual frame timeline, then split per output range" per upstream tool:
- ffmpeg: opens every source separately (
-i source1 -i source2 ...), maps eachv:0only, joins with theconcatfilter, then crops with frame-exacttrim=start_frame=first:end_frame=last+1and regenerates a CFR PTS sequence withsetpts. For a single source the concat stage is omitted. - vspipe: generates a splice script with all sources (
core.std.Splice) and slices with-s {first} -e {last}. - avs2yuv / avs2pipemod: generates a splice script (AviSynth
++UnalignedSplice); avs2yuv slices with-seek {first} -frames {count}, avs2pipemod with-trim={first},{last}.
Slicing uses measured original frame numbers from analysis, accumulated into global frame indices across sources, so output boundaries stay exact after concatenation. Each encoding start creates execution-specific concat filelists and virtual-source scripts, so a stale external script cannot invalidate planned frame offsets.
Repart mode has a hard constraint: imported video sources are never modified. Filter Scribe works on the temporary Repart stream in a concat-style workflow; its Repart source queue may be reordered, while imported files and committed frame boundaries remain unchanged. The reasons:
- The analysis stage builds the virtual timeline from each source's original frame rate, resolution, and per-frame timestamps.
- If any source is rewritten independently, sources can no longer be joined reliably and planned output ranges may shift.
- Source Reviser remains unavailable for an active Repart plan, but Filter Scribe is available through the Repart-specific concat-style workflow. It applies selected filters to the Repart stream while leaving imported source files and committed frame plan unchanged.
ffmpeg includes built-in video encoders, but 1cenc deliberately does not use them as the primary encoding route. Instead, it treats ffmpeg / vspipe / avs2yuv / etc. as upstream decoding and filtering tools, and independent programs like x264 / x265 / SVT-AV1 as downstream encoders.
The formal encoding pipeline:
Upstream program outputs Y4M -> Pipe -> External encoder -> Raw video stream -> Optional ffmpeg mux
Reasons:
- Encourages standalone or third-party modified encoders.
- Encourages latest encoder versions and self-compiled builds (higher quality, higher efficiency).
- Easier to leverage native encoder parameters and experimental options.
- More transparent for command-line encoders.
- Encoding commands can be displayed, copied, and reviewed directly.
- Encoders embedded in ffmpeg only show their version when encoding starts, requiring a dedicated command-line argument (inconvenient).
The trade-off is that adapting new encoders is more complex. Each requires handling tool import, version detection, parameter UI, presets, auto-parameter generation, output extension, and mux input format details.
1cenc automatically supplements certain encoding parameters based on ffprobe analysis:
- Total frame count:
--framesfor x264/x265,-nfor SVT-AV1. - Color matrix, transfer characteristics, primaries.
- Color range.
- Chroma location.
- Lookahead for x264/x265.
merangeandsubmefor x265.- In concat mode, uses the sum of all fragment frame counts instead of only the first fragment's count.
Not every parameter is exposed as a UI control. Commonly used parameters are sliders, presets, and toggles; more advanced or unstable options go to the custom parameters text box.
The tuning values behind the numerical auto parameters are exposed in the encoder configuration dialog's Auto Parameters section (one tab per encoder): the x264/x265 lookahead ratio (percent of frame rate) and the x265 merange (per resolution tier) / subme (per frame rate tier) values. Tier thresholds stay fixed; custom parameters still override auto-generated arguments. The panel opens on the tab that matches the encoder selected in the main window, falling back to the first tab when nothing is selected.
When total frame count is missing from video metadata, 1cenc leaves it unknown instead of synthesizing a value from duration and average frame rate. That avoids feeding guessed counts into encoder frame limits or the encoding monitor's progress display. In that case, frame-based progress is omitted.
The encoder first outputs the raw video stream:
- x264:
.mp4 - x265:
.hevc - SVT-AV1:
.ivf
If ffmpeg has been imported, the project generates a mux command to combine encoded video with selected source streams into an MKV. Single source and queue mode copy non-video streams from the original; concat and Repart mode read audio from the concat filelist timeline, with Copy limited to the first audio track and re-encode modes either muxing directly from the timeline or, for concat re-encode, writing a temp audio file first.
Muxing is a controllable step — the mux command and status are visible in the encoding monitor. For raw stream outputs like x265 / SVT-AV1, muxing makes it easier to add new streams or convert container formats, so it is checked by default.
Auto-mux inherits the timebase from the source, so video-based quality metrics (e.g. XPSNR, VMAF) can align without manually calculating the GCD of timebase fractions.
The mux subtitle editor preserves ffprobe-derived metadata for source subtitle streams, including language and stream duration, so source rows can show real track lengths. External subtitle imports are validated on ingest by parsing cue timestamps before they are accepted into the track list.
1cenc relies on ffprobe to read source video metadata. Source checks fall into two categories:
Hard issues:
- Metadata cannot be read.
- Not progressive scan.
- Bit depth exceeds supported range.
- 12-bit input (not currently supported by SVT-AV1).
- Other issues that make parameter generation or encoding clearly unreliable.
Soft issues:
- VFR / non-constant frame rate.
- SAR not 1:1 / non-square pixels.
- Missing color matrix.
- Missing transfer characteristics.
- Missing primaries.
- Chroma subsampling / chroma location may be unsuitable for the current encoder.
Hard issues generally block encoding start; soft issues prompt the user to use the filter editor or confirm and bypass.
The filter editor is an auxiliary module in 1cenc. It supports:
- One-click AviSynth(+)
.avsscript generation. - One-click VapourSynth
.vpyscript generation. - Batch script generation for queue mode.
- Multi-fragment concat script generation.
- ffmpeg filter parameter generation and hints.
- VFR→CFR conversion.
- SAR repair.
- Resolution scaling.
- Color space conversion.
- HDR→SDR conversion.
- hqdn3d denoise example.
- Subtitle burning example.
- Custom ffmpeg filter command-line parameters.
- Custom AviSynth(+), VapourSynth filter script lines.
For script sources, the project validates that the video path embedded in the script matches the current video source. Queue scripts are checked per file name and embedded path to prevent misalignment. Concat mode skips single-source path matching (scripts naturally contain multiple source paths) and relies on concat import and analysis for correctness.
Filter Scribe is available in Repart mode through a Repart-specific concat-style workflow. Its sidebar lists output episodes from the Repart plan, while the temporary AVS/VPY source or ffmpeg input is built internally from the Repart source list. Selected filters are applied without modifying imported files or committed frame boundaries. Source Reviser remains unavailable because changing source metadata would invalidate frame offsets.
Rare edge case: some long-GOP BDMV titles can make short seek-based frame verification miss the last frame near the title tail. The implementation widens the seek window first, falls back to ffmpeg, and only uses full ffprobe -count_frames as the last resort.
Encoder settings support CRF / ABR, presets, keyframe intervals, and some third-party parameter toggles for x264, x265, and SVT-AV1. Rather than exposing every encoder parameter as a form, the project builds presets aligned with each encoder developer's design intent.
The project also provides a single-frame A/B preview:
- Extracts a frame from the source video at a specified position.
- Encodes with ffmpeg's libx264 / libx265 / libsvtav1 / libvvenc for single-frame preview encoding.
- Decodes and compares with the original side by side.
- Supports different display modes: raw display, low gamut → BT.709, WCG → BT.709, HDR → SDR, etc.
- If SSIMULACRA2.1 and Butteraugli tools are bundled, computes image quality scores.
The preview is for quickly observing parameter impacts. Quality depends on whether single-frame encoding is better or worse than inter-frame redundancy, so it is not equivalent to the formal encoding pipeline.
1cenc relies heavily on Windows APIs for parallelism, making it explicitly Windows-only rather than cross-platform.
Parallelism settings include:
- Upstream NUMA node.
- Downstream encoder NUMA node.
- Whether to prefer physical cores.
- Encoder thread count limit.
- x264 thread parameters.
- x265 pools parameters.
- CPU Sets binding.
The project does not raise process priority. The design keeps the system responsive, avoiding a situation where an encoder hang drags down the entire system.
Pre-encoding checks also include:
- Whether AC power is connected.
- Whether the output directory is writable.
- Whether sufficient disk space is available.
- Whether an output file would be overwritten.
- Whether the L-SMASH plugin for the avs2yuv route is present.
- Whether current NUMA node CPU usage is high.
The overwrite check not only warns but delays the confirmation button based on the overwritten file's size to reduce accidental overwrites of large files.
The encoding monitor window handles running upstream and downstream processes, piping upstream stdout to the encoder stdin. It reads upstream and downstream stderr for log display and progress parsing.
Monitor features:
- Upstream / downstream log split panes.
- Log folding to avoid repeated line flooding.
- Save upstream / downstream stderr.
- View encoding command.
- Progress percentage when a reliable total frame count exists.
- Written frame count when a reliable total frame count exists.
- Current output size.
- Estimated output size when progress tracking is available.
- Elapsed time, remaining time, estimated completion time when progress tracking is available.
- Upstream / downstream memory usage.
- Working set peak, Page Fault, memory pressure.
- Manually interrupt upstream or encoder.
- Window can only be closed after encoding completes.
- Queue mode shows each task's status.
Queue tasks execute sequentially; on failure, subsequent tasks stop. After user interruption, there is an option to stop remaining queue tasks.
1cenc assumes no system paths are configured by default. Users import external tool paths, and the project saves each tool's path, version, and file size.
Supported importable tools:
- Upstream:
ffmpeg.exe,vspipe.exe,avs2yuv.exe,avs2pipemod.exe,one_line_shot_args.exe - Encoders:
x264.exe,x265.exe,svtav1encapp.exe - Analysis / Dependencies:
ffprobe.exe,avisynth.dll
On first launch, the project attempts to auto-discover some tools, such as VapourSynth's vspipe.exe and Steam-distributed SVFI's one_line_shot_args.exe.
Distribution packages can bundle common encoders and analysis tools, but the project encourages users to replace them with trusted newer or third-party modified versions.
All major persistent configuration is stored in the 1cenc folder under the application base directory:
appconfig.json: App settings, language, overwrite confirmation behavior.appdata.json: Tool paths, versions, sizes, source paths, output directory, main interface collapse states, etc.encodingconfig.json: Encoder parameter configuration.parallelismconfig.json: Parallelism and NUMA settings.
Queue source analysis generates timestamped JSON files in the 1cenc config directory:
queue_yyyy-MM-dd_HH-mm-ss.json: Accepted queue sources with their ffprobe JSON.queue_exc_yyyy-MM-dd_HH-mm-ss.json: Filtered or excluded sources.
The settings interface can clean queue_*.json files older than 7 days.
Concat mode generates concat_yyyy-MM-dd_HH-mm-ss.txt in the 1cenc/SourceQueues folder.
This file uses ffmpeg concat demuxer format, recording the current concat fragment order. It is regenerated when users reorder or delete fragments in the filter editor.
If the base name is taken, _1, _2, ... is appended before the extension. The path is fixed for the session; the file is rewritten on import, replacement, reorder, or removal, and again when encoding starts. When the fragment list becomes empty, the file is deleted instead of written.
Content is UTF-8 without BOM with CRLF line endings, one line per fragment in the current order:
file 'G:/media/part01.mkv'
file 'G:/media/part02.mkv'
Each path is written as an absolute path with \ converted to /, and any ' escaped as '\''. The same file list is also used as the audio source for ffmpeg concat muxing.
Each Repart encoding start generates a fresh repart_{timestamp}.txt in the 1cenc/SourceQueues folder, using the same ffmpeg concat demuxer format, encoding, and naming rules as the concat file list:
If the base name is taken, _1, _2, ... is appended before the extension. The path is fixed for the session; the file is rewritten on import, replacement, reorder, or removal, and again when encoding starts. When the fragment list becomes empty, the file is deleted instead of written.
file 'G:/media/episode01.mkv'
file 'G:/media/episode02.mkv'
It records the committed Repart plan's source order, one line per source. The Repart .vpy / .avs input script generated for the same run reuses this file list's base name, so the list and script share one repart_{timestamp} stamp and differ only by extension. This file list is also the audio source used by the Repart mux step, with -ss/-to limiting it to the current output's time range.
The filter editor and one-click script generation produce files at user-chosen locations:
.avs.vpy- Occasionally
.txtfor ffmpeg filter / filelist content
Default script file names use the source file name. Queue mode generates identically named scripts for each source.
When AviSynth and VapourSynth scripts use L-SMASH / LWLibav for video reading, the underlying plugin may generate index files (.lwi) in the video source directory. This is decoder plugin behavior, not a 1cenc configuration file.
In Settings → Source Index Cache, enabling "Put .lwi index in 1cenc/LSMASHCaches" makes generated scripts pass cachedir to LWLibavVideoSource / LWLibavSource, so new indexes are written to the 1cenc/LSMASHCaches folder instead. The folder is created automatically; disabling the option restores the default side-by-side behavior.
Single-frame preview creates a 1cenc-image-preview-* working directory under the system temp folder, cleaned up on window close.
When saving logs in the encoding monitor, the following files are written to the user-chosen output location:
upstream-stderr.txtdownstream-stderr.txt
- Windows only. The project depends on WPF, CPU Sets, NUMA, process and memory-related Windows APIs.
- Currently supports x264, x265, and SVT-AV1 as formal encoders.
- SVT-AV1 does not support 12-bit input.
- Queue, concat, and Repart modes do not support clip sampling.
OneLineShotArgs/ SVFI route does not support queue, concat, or Repart mode.- Repart mode requires CFR, reliable per-frame timestamps, identical video-stream formats, manual output boundaries, and ffmpeg for final MKV muxing.
- Concat mode audio muxing is available, but complex VFR or boundary-abnormal sources may require post-processing.
- No comprehensive automated tests — relies on functional validation and real long-queue testing.