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.

Common formats

Whole numbers for sizes and inputs. Use a decimal point and no thousands separators, for example 59.94. Sizes up to 16,384 pixels, rates up to 1,000 fps, up to 16 inputs, headroom up to 100 percent. YUV 4:2:0 needs an even width and height, and YUV 4:2:2 an even width.

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.

Theoretical link capacity in MB/s, one direction, and the share of it the stream uses before any headroom
Generationx1x2x4x8x16
Gen 12.5 GT/s · 8b/10b 25099.5% usednarrowest fit50050% used1,00025% used2,00012% used4,0006.2% used
Gen 25 GT/s · 8b/10b 50050% usednarrowest fit1,00025% used2,00012% used4,0006.2% used8,0003.1% used
Gen 38 GT/s · 128b/130b 984.625% usednarrowest fit1,969.213% used3,938.56.3% used7,876.93.2% used15,753.81.6% used
Gen 416 GT/s · 128b/130b 1,969.213% usednarrowest fit3,938.56.3% used7,876.93.2% used15,753.81.6% used31,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.

GenerationLine rateEncodingPer lane, one direction
Gen 12.5 GT/s8b/10b250 MB/s
Gen 25 GT/s8b/10b500 MB/s
Gen 38 GT/s128b/130b984.6 MB/s
Gen 416 GT/s128b/130b1,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