CutCutCodec 1.6.2¶
Useful links: Binary Installers | Source Repository | Online Documentation |
Description¶
This video editing software has been designed for speed and to implement some effects that are hard to find elsewhere. The kernel is written in python and C, so it’s easy to integrate it in your own project. Although it allows you to fine-tune many parameters, it’s smart enough to find the settings that are best suited to your project.
This software is fast and highly configurable for the following reasons:
Based on PyAV, this software supports an incredible number of formats and codecs.
A complete test benchmark guarantees an excelent kernel reliability.
Powered by torch and written in C, this software efficiently exploits the CPU and GPU in order to make it very fast.
The code is parallelised to take advantage of all the CPU cores, making it extremely fast.
Examples¶
There are plenty of other examples in the documentation!
In the following stupid example, we blink the blue color and we add a red noise on the bottom.
import cutcutcodec
SETTINGS = [
{"encodec": "libsvtav1", "rate": 30, "shape": (480, 720)},
{"encodec": "libvorbis", "rate": 44100, "bitrate": 128000},
]
VIDEO_PATH = cutcutcodec.utils.get_project_root() / "media" / "video" / "intro.webm"
with cutcutcodec.read(VIDEO_PATH) as container:
video, audio = container.out_select("video")[0], container.out_select("audio")[0]
noise = cutcutcodec.generation.video.GeneratorVideoNoise().out_streams[0]
video = cutcutcodec.filter.video.equation.FilterVideoEquation(
[video, noise], "r0/2 + r1*(i+1)/2", "g0", "b0*sin(2*pi*0.5*t)",
).out_streams[0]
cutcutcodec.write([video, audio], "/tmp/my_video.webm", streams_settings=SETTINGS)
Features¶
Audio¶
- General properties
Supports a large number of channels (mono, stereo, 5.1, 7.1, …) with all sampling rate.
Automatic detection of the optimal sample frequency based on shannon theory.
- Generation
Audio-white-noise generation.
Generate any audio signal from any equation.
- Filters
Add multiple tracks.
Audio arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, …)
Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, …)
Denoising based on optimal Winer filtering.
Hight quality anti aliasing low pass filter (based on FIR).
Video¶
- General properties
Unlimited support of all image resolutions. (SD, FULL HD, 4K, 8K, …)
No limit on fps. (3000/1001 fps, 60 fps, 120 fps, …)
Automatic detection of the optimal resolution and fps.
Support for the alpha transparency layer.
Floating-point image calculation for greater accuracy.
- Generation
Video-white-noise generation.
Generate any video signal from any equation.
Mandelbrot fractal generation.
- Filters
Resize and crop (high quality, no aliasing).
Overlaying video tracks (with transparency control).
Apply a video arbitrary equation one several video streams.
All gamut and gamma colorspace conversion. (sRGB, BT709, BT2020, …)
- Metrics
cutcutcodec metric dis.mp4 ref.mp4 --ssim --vmaf > met.json Comparative quality fidelity metrics like PSNR, SSIM, VMAF and VIF.
Comparative quality sementic metrics like LPIPS.
Non comparative quality metrics like UVQ.
Non comparative complexity metrics like RMS_SOBEL, RMS_TIME_DIFF, SPATIAL_DCT and TEMPORAL_DCT.
- Metrics
Getting started¶
API documentation¶
Developer guide¶
Reference¶
The documentation was generated on 2026-05-29 10H29.