Installation
Run directly
Add to flake
Usage
Basic encoding
Encode a video with default settings:High-quality encoding
Encode with HEVC (H.265) and high quality preset:Fast encoding
Prioritize speed over quality:Codec options
qsvenc supports multiple codecs:H.264/AVC
HEVC/H.265
VP9
AV1 (on supported hardware)
Quality settings
Quality preset:
best, higher, high, balanced, fast, faster, fastestConstant Quality Parameter (0-51, lower is better quality)
Intelligent Constant Quality (1-51, lower is better quality)
Target bitrate in Kbps
Advanced features
Two-pass encoding
Achieve better quality with two-pass encoding:Hardware decode
Use hardware decoding for the input:Crop and resize
Add filters
Batch encoding
Encode multiple files:Performance comparison
| Encoder | Speed (fps) | Quality | Power Usage |
|---|---|---|---|
| qsvenc (QSV) | 300-500 | Good | Low |
| x264 (CPU) | 30-60 | Excellent | High |
| x265 (CPU) | 10-20 | Excellent | High |
| nvenc (NVIDIA) | 400-600 | Good | Medium |
Performance varies based on CPU generation and model. Newer Intel CPUs with newer Quick Sync Video versions provide better quality and performance.
Hardware requirements
qsvenc requires:- Intel CPU with Quick Sync Video support (2nd gen Core or newer)
- Intel graphics drivers
/dev/dri/renderD128device access
Check QSV availability
Use cases
Live streaming encoding
Live streaming encoding
qsvenc can encode live streams with low latency:
Archive encoding
Archive encoding
High-quality archival with HEVC:
Preview generation
Preview generation
Fast preview encoding:
