FFV1
FFV1 (FF Video Codec 1) is a lossless intra-frame video codec. Every frame is stored without any loss, at roughly half to a third of the size of uncompressed video. It is an open standard (RFC 9043) and widely used for archiving and as an intermediate format. Hybrid encodes it with ffmpeg's ffv1 encoder.
Base → Video: FFV1, then the FFV1 tab

What it does
FFV1 predicts every sample from its already coded neighbours (left, top, top-left, top-right) and stores only the difference, coded with an entropy coder that adapts to the surrounding samples. There is no quantization, so decoding gives back exactly the encoder's input. There is also no quality or bit rate setting: the options only trade speed, file size and error resilience against each other.
Lossless refers to what the encoder receives. If the source has to be converted first (for example 10-bit 4:2:0 to 8-bit 4:2:2), that conversion is not lossless; set Color space and Bit depth to what the source has.
Requirements
ffmpeg, which is part of Hybrid on every system. FFV1 goes into Matroska, AVI, MOV and NUT; Matroska is the usual choice.
Settings
| Control | ffmpeg option | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Coder | -coder | Golomb Rice, Range Coder | Golomb Rice | Entropy coder for the prediction errors. Golomb Rice (-coder 0) is a fast variable-length code. Range Coder (-coder 1) is an adaptive arithmetic coder: slower, but the files are smaller. Golomb Rice only exists for 8-bit video; with more than 8 bit ffmpeg uses the range coder whatever is selected.
|
| GOP size | -g | 1 – 10000 | 1 | Distance between key frames. FFV1 has no inter-frame prediction; with a GOP above 1 only the statistics of the entropy coder are carried over from frame to frame, which saves a little space. Frames inside a GOP then depend on the frames before them, so one damaged frame can ruin the rest of the GOP and seeking gets slower. Keep 1 for archiving. |
| Context | -context | small, large | small | Size of the context model that picks the statistics for each sample. small looks at the differences between the three nearest neighbours, large also at the samples two positions to the left and two above. large compresses slightly better and is slower. |
| Version | -level | 1, 3 | 1 | FFV1 bitstream version. Version 1 is the oldest and is read by every decoder. Version 3 adds slices that are coded independently (multi-threaded encoding and decoding), checksums and more robust headers; it is the version recommended for archiving. |
| Color space | -pix_fmt | rgb, i444, i422, i420 | i422 | Color format of the output: RGB, or YUV with 4:4:4, 4:2:2 or 4:2:0 chroma subsampling. |
| Bit depth | -pix_fmt | 8-bit, 10-bit, 16-bit | 8-bit | Bit depth of the output. Together with Color space it gives the pixel format, e.g. yuv422p, yuv420p10le or rgb48le. It should match the source: a higher depth wastes space, a lower one drops information.
|
| Interlacing | -flags +ildct+ilme | on/off | off | Encode the output as interlaced. |
| (field order) | -vf setfield | auto, top field first, bottom field first | auto | Field order that is flagged in the output. auto takes the scan order of the video that Hybrid feeds to the encoder. Only available with Interlacing on. |
| Slices | -slices | 4, 6, 9, 12, 16, 24, 30 | 4 | Number of independent slices each frame is split into. More slices allow more threads and limit the damage of a bit error to a smaller part of the frame, but cost a little compression. Only available with Version 3. |
| CRC | -slicecrc | on/off | off | Adds a checksum to every slice, so a decoder (or a later check of the archive) can detect damaged data instead of silently showing wrong pixels. Costs 4 bytes per slice. Only available with Version 3. |
The Configuration row at the bottom saves, loads and deletes named sets of these settings.
Example
Default settings on a 10-bit YUV 4:2:0 source (640x352, 25 fps); Hybrid converts the video to 8-bit 4:2:2 in the script, because that is what is set:
vspipe "encodingTempSynthSkript.vpy" - --outputindex 0 -c y4m --progress | ffmpeg -y -noautorotate -nostdin -threads 8 -color_primaries bt470bg -color_trc smpte170m -colorspace bt470bg -color_range tv -f yuv4mpegpipe -i - -an -sn -color_primaries bt470bg -color_trc smpte170m -colorspace bt470bg -color_range tv -pix_fmt yuv422p -fps_mode auto -r 25/1 -vcodec ffv1 -coder 0 -context 0 -g 1 -level 1 -metadata encoding_tool="Hybrid 2026.11.22.1" "test.mkv"
With Color space i420, Bit depth 10-bit, Version 3, 16 slices, CRC, large context and a GOP of 25 the encoder part becomes:
-pix_fmt yuv420p10le -strict -1 -fps_mode auto -r 25/1 -vcodec ffv1 -coder 0 -context 1 -g 25 -level 3 -slices 16 -slicecrc 1
How Hybrid calls it
- The filter script (Vapoursynth or AviSynth) is piped into ffmpeg; without a script ffmpeg reads the source itself.
- The script already delivers the color format and bit depth chosen on the tab, so ffmpeg does not convert again.
-coder,-context,-gand-levelare always written;-slicesand-slicecrconly with Version 3.- With Interlacing on Hybrid adds
-flags +ildct+ilmeand sets the field order with-vf setfield=tfforsetfield=bff. Progressive input is then turned into interlaced video at half the frame rate, see Interlace. - Color matrix, transfer, primaries and range of the video are passed to ffmpeg as
-colorspace,-color_trc,-color_primariesand-color_range. - The number of ffmpeg threads follows Hybrid's general thread setting.
Background
Versions
ffmpeg knows FFV1 versions 0, 1, 3 and the experimental version 4; Hybrid offers 1 and 3. Version 2 was never finalized. Version 3 is the one described as stable in RFC 9043 next to versions 0 and 1.
Archiving
The usual archive settings are version 3 with CRC, a GOP of 1 and enough slices for the number of CPU cores. The checksums make it possible to verify a file years later without having the original.