Skip to content
vidikoPublic

About

torcul: video encode service of Vidiko; uses VMAFx for quality (scoring, vmaf-tune auto, compare)

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torcul: video encode service and lossless track-policy CLI

Security policy CodeRabbit Sourcery

HISS-21 REUSE Conventional Commits

License

GitHub Sponsors Ko-fi

Video encoding and lossless track selection for media libraries.

torcul is Vidiko’s video encode service. Its planned job takes one source stream and returns a verified encode or a verdict to keep the original. Today the Rust CLI plans track selection, remuxes into staging and verifies the copy.

Pronounce torcul TOR-kul (/ˈtɔr.kʊl/). The name shortens Latin torcular, a wine or oil press, from torquere, “to twist”. Like the press, the encode service takes an input and aims to produce a smaller version of the same video stream. More in the name section of the documentation home.

📖 Documentation · Documentation source


🎯 Why torcul

Aspect How torcul handles it
Track selection Preview which audio and subtitle tracks to keep. The policy accounts for the original language and retains tracks of undetermined language with a warning. Track policy
Library originals Library files stay untouched until the language-check and apply slice lands. The CLI copies selected tracks into staging. The verifier checks packet payloads, timing and metadata against the source before recording the verdict. Verification · Staging record
Encode quality (planned) Auto mode will choose a codec, encoder and rate control against a quality target and size budget. If no candidate meets both, torcul keeps the original. Encode job design
Encoder workload (planned) A test encode will check hardware availability. Remux, CPU encode and GPU encode will run in bounded pools. The encode plan accounts for geometry and HDR metadata. Service design · Pipeline

🚀 Get started

On Unix, install the pinned Rust toolchain, Clang, pkg-config and the FFmpeg development libraries (libavformat, libavcodec and libavutil). The sample media generator needs Python 3 and the FFmpeg CLI with libx264. From the repository root, preview the track policy on the samples:

cargo build --locked
python3 -I tools/fixtures/track_fixtures.py target/fx
target/debug/torcul plan --meta target/fx/manifest.json \
  --json target/plan.json target/fx

The table shows the stream indices to keep or drop for each file. To stage and verify one of them, follow the track-policy CLI guide.

🧩 At a glance

The CLI reads stream indices from the media file. When the plan calls for a remux, it copies the selected streams into staging. Verification records the result beside the staged file. ADR-0002, first slice

%%{init: {'theme': 'base', 'themeVariables': {'fontFamily': 'ui-sans-serif, Segoe UI, Helvetica, Arial, sans-serif', 'fontSize': '15px', 'primaryColor': '#111a35', 'primaryTextColor': '#e2e8f0', 'primaryBorderColor': '#3b82f6', 'lineColor': '#3b82f6', 'edgeLabelBackground': '#111a35', 'tertiaryColor': '#0b1020'}}}%%
flowchart TD
  classDef input fill:#0b1020,stroke:#06b6d4,stroke-width:2px,color:#e2e8f0
  classDef step fill:#111a35,stroke:#3b82f6,stroke-width:2px,color:#e2e8f0
  classDef decide fill:#111a35,stroke:#8b5cf6,stroke-width:2px,color:#e2e8f0

  source["Media file + stream index"]:::input
  plan["Track-policy plan"]:::step
  remux["Remux into staging"]:::step
  verify{"Lossless verification"}:::decide
  output["Staged file +<br/>.torcul.json sidecar"]:::input

  source --> plan
  plan -->|Remux needed| remux
  remux --> verify
  verify -->|Pass| output
Loading

📚 Guides and reference

  • Track-policy CLI explains the metadata format, language rules, staging and verification.
  • Decision index lists the accepted records and their status.
  • ADR-0001 explains the choice of the VMAFx C interface for scoring.
  • ADR-0002 describes the media pipeline and the conditions for replacing a library file.

🤝 Contribute

Run make verify-all before submitting a change. The contributor guide covers tests and commit format. AGENTS.md defines repository standards. Report vulnerabilities privately through the security policy.

💖 Support

Support torcul through GitHub Sponsors or Ko-fi.

📈 Roadmap and releases

torcul has no release yet. Follow open issues or browse work in the 0.1.0 milestone.

Upstream and licence

The encode job contract began in ADR-3378 in VMAFx. torcul owns the service. Its planned integration calls the libvmafx C interface in process from Rust to score each candidate against the source, choose settings for a target score with vmaf-tune auto, and compare codecs and encoders. ADR-0001

torcul uses the European Union Public Licence 1.2. Per-file copyright and licence notices follow REUSE. REUSE configuration · Licence texts

Standards and governance

torcul declares the High-Integrity Systems Standard (HISS-21) in AGENTS.md. The make verify-all target in the Makefile is the repository gate.

Praetor manages this repository's declared governance policy. This managed block records adoption state; it is not a verification certificate.

Verification: make verify-all runs the repository's configured verification cascade.

HISS Audit: praetorctl audit enforces policy, generated-surface integrity, and the debt ratchet.

Context Sync: praetorctl compile-context --verify verifies every generated agent context against AGENTS.md.

Debt Baseline: .standards-baseline.json anchors the debt ratchet at 0 recorded infractions; audit forbids growth.

About

torcul: video encode service of Vidiko; uses VMAFx for quality (scoring, vmaf-tune auto, compare)

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages