Capture link picker
A capture card moves every frame across its PCIe link before your software sees it. Put in the picture size, rate and pixel format, and see roughly how much link that takes.
Work out the link
Type the picture you will capture. The picker works out the uncompressed data rate and, for each PCIe generation, the narrowest of x1, x2, x4, x8 and x16 whose theoretical capacity meets it. Every result is an estimate.
This calculator needs JavaScript. Without it, the table below is a worked example only: 1,920 × 1,080 pixels, 60 frames per second, YUV 4:2:2 at 2 bytes per pixel, one input, no headroom.
- One frame
- 4.15 MB
- Data rate
- 248.8 MB/s
- In bits
- 1.99 Gbit/s
- Link must carry
- 248.8 MB/s
- Data per minute
- 14.9 GB
Estimate on theoretical link capacity, before link overhead and device limits. Narrowest of x1, x2, x4, x8 and x16 that meets it: Gen 1: x1, Gen 2: x1, Gen 3: x1, Gen 4: x1.
| Generation | x1 | x2 | x4 | x8 | x16 |
|---|---|---|---|---|---|
| Gen 12.5 GT/s · 8b/10b | 25099.5% usednarrowest fit | 50050% used | 1,00025% used | 2,00012% used | 4,0006.2% used |
| Gen 25 GT/s · 8b/10b | 50050% usednarrowest fit | 1,00025% used | 2,00012% used | 4,0006.2% used | 8,0003.1% used |
| Gen 38 GT/s · 128b/130b | 984.625% usednarrowest fit | 1,969.213% used | 3,938.56.3% used | 7,876.93.2% used | 15,753.81.6% used |
| Gen 416 GT/s · 128b/130b | 1,969.213% usednarrowest fit | 3,938.56.3% used | 7,876.93.2% used | 15,753.81.6% used | 31,507.70.8% used |
carries it narrowest fit, also named in words in the cell too narrow
How the estimate is made
data rate (bytes/s) = width × height × frames per second × bytes per pixel × inputs
lane rate (MB/s) = line rate (GT/s) × encoding efficiency ÷ 8 × 1,000
The link must carry the data rate plus the headroom you choose. The picker marks, for each generation, the narrowest of x1, x2, x4, x8 and x16 whose theoretical capacity is at least that figure. PCI-SIG also lists x12 and x32 widths; this tool does not use them. Percentages in the table are the stream's own use of the link, before headroom.
| Generation | Line rate | Encoding | Per lane, one direction |
|---|---|---|---|
| Gen 1 | 2.5 GT/s | 8b/10b | 250 MB/s |
| Gen 2 | 5 GT/s | 8b/10b | 500 MB/s |
| Gen 3 | 8 GT/s | 128b/130b | 984.6 MB/s |
| Gen 4 | 16 GT/s | 128b/130b | 1,969.2 MB/s |
Assumptions
- Uncompressed video at 8 bits per sample, progressive frames, no blanking. YUV 4:2:0 is 1.5 bytes per pixel, YUV 4:2:2 is 2, packed RGB is 3, RGB with a padding or alpha byte is 4.
- Rows and planes are taken as tightly packed, with no stride or plane padding, and the format you pick is the one sent across the PCIe link. Real drivers may pad rows. Sizes here are for the video data only and exclude audio, file and container overhead.
- Subsampled formats need even sizes: YUV 4:2:0 (NV12, YU12) an even width and height, YUV 4:2:2 (YUYV, UYVY) an even width. The picker rejects other sizes.
- This tool covers uncompressed capture over PCIe. It says nothing about compressed streams or other buses.
- MB means 1,000,000 bytes and GB means 1,000,000,000 bytes. Gbit/s is the data rate × 8.
- Capacities are theoretical line rates after encoding, in one direction. Packet headers and flow control are link overhead and use part of that, so real throughput is lower. The card, its driver and the rest of the system can add limits of their own. That is why you can add headroom; the picker does not assume a figure for it.
- A card and a slot can only run at speeds and widths both support, and an installed link may train below the maximum either one advertises. Some slots are wired with fewer lanes than their physical size. Check the speed and width actually negotiated on your machine rather than trusting the advertised maximums.
- This is not a statement about any product. Check the card's published specifications for its interface, its formats and its own limits.
Where the constants come from
- Applications (PG239 PCI Express PHY, Table 1), AMD: the 2.5, 5, 8 and 16 GT/s line rates for Gen 1 to Gen 4 and their 8b/10b and 128b/130b encodings.
- What bit rates does the PCIe 5.0 specification support and how does it compare to prior PCIe generations?, PCI-SIG: the lane widths (x1 to x32) by generation.
- SI Prefixes, BIPM: the decimal scales behind kB, MB and GB (1,000, 1,000,000 and 1,000,000,000 bytes).
- Planar YUV formats, The Linux Kernel documentation: the NV12 and YU12 (4:2:0) layouts.
- Packed YUV formats, The Linux Kernel documentation: the YUYV and UYVY (4:2:2) layouts.
- RGB Formats, The Linux Kernel documentation: the packed 24-bit and 32-bit RGB layouts.
- Single-planar format structure, The Linux Kernel documentation: width, height and line stride (bytes per line) of a video format.
- v4l2-dv-timings.h, Linux kernel source: the standard digital video sizes and rates behind the 720p, 1080p and 2160p presets.