docs: Update 2 files

This commit is contained in:
2025-10-12 20:37:39 +13:00
parent f4c69a1468
commit a8d2116808
2 changed files with 95 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
# Video Transcoding Benchmark
A simple CLI tool to benchmark video transcoding performance on your system. Measures how many simultaneous 1080p video streams can be transcoded in real-time or better.
A simple CLI tool to benchmark video transcoding performance on your system. Measures how many simultaneous 1080p H.264 → 720p H.265 transcodes can be performed in real-time or better.
## Features
@@ -68,8 +68,8 @@ python3 transcode_bench.py
This will:
1. Detect available hardware acceleration
2. Generate a 30-second 1080p test video
3. Run benchmarks to find the maximum number of simultaneous streams
2. Generate a 10-second 1080p H.264 test video
3. Run benchmarks to find the maximum number of simultaneous 1080p H.264 → 720p H.265 transcodes
4. Output the result
### Command-Line Options
@@ -136,14 +136,18 @@ Benchmark Score: 54
## How It Works
1. **Detection**: Scans for available hardware encoders in your FFmpeg build
2. **Test Video**: Generates a synthetic 1080p video with test patterns
3. **Binary Search**: Uses binary search to efficiently find the maximum number of streams that can be transcoded simultaneously while maintaining real-time performance (e30 FPS)
4. **Parallel Execution**: Runs multiple FFmpeg processes in parallel to simulate concurrent transcoding workloads
1. **Detection**: Scans for available hardware encoders in your FFmpeg build and tests both H.264 decode and H.265 encode capabilities
2. **Test Video**: Generates a synthetic 1080p H.264 video with test patterns
3. **Realistic Transcoding**: Each stream transcodes 1080p H.264 → 720p H.265 with:
- Hardware-accelerated H.264 decode
- CPU-based scaling (1080p → 720p)
- Hardware-accelerated H.265 encode
4. **Adaptive Binary Search**: Uses adaptive binary search to efficiently find the maximum number of streams, based on single-stream performance
5. **Parallel Execution**: Runs multiple FFmpeg processes in parallel to simulate concurrent transcoding workloads
## Interpreting Results
The "Benchmark Score" represents how many 1080p video streams your system can transcode simultaneously while maintaining real-time or better performance. This is useful for:
The "Benchmark Score" represents how many 1080p H.264 → 720p H.265 transcodes your system can perform simultaneously while maintaining real-time or better performance (≥30 FPS). This is useful for:
- Comparing hardware performance
- Capacity planning for video processing workloads