V4L2 driver for AJA PCI cards, updated fork. https://spacecruft.org/aja/ntv2-v4l2
  • C 99.8%
  • Makefile 0.2%
Find a file
2026-03-11 09:37:47 -06:00
driver Cleanup make for newer kernels 2026-03-11 09:37:33 -06:00
.gitignore Cleanup git ignores for newer kernels 2026-03-11 09:37:47 -06:00
LICENSE-GPLv2.txt GPLv2 License 2026-03-11 09:32:35 -06:00
README-upstream.md mv upstream README 2026-03-11 09:31:21 -06:00
README.md Add fork README 2026-03-11 09:32:11 -06:00

AJA V4L2 Driver

This repo contains a Linux kernel driver for AJA NTV2 video cards. It creates /dev/video* devices to access the card.

Build

Build and install, such as:

# Build driver
cd driver/
make
# Copy driver into kernel modules directory:
sudo cp -p ntv2video.ko /lib/modules/$(uname -r)/updates/
# Set module to load on boot
echo ntv2video | sudo tee /etc/modules-load.d/ntv2video.conf
sudo depmod -a
# Insert module
sudo modprobe ntv2video
# Check if all is good
sudo dmesg -T --color=always | grep -i ntv

Upstream

The manufacturer of this card discontinued development of this driver since kernel 5.6. The currently maintained libajantv2 driver by upstream creates a /dev/ajantv2 device. The ntv2-vl42 driver (the present repo) creates /dev/video* devices.

I find the /dev/video* devices to be easier to work with. The current /dev/ajantv2 device doesn't work with OBS Studio at present. I was able to patch OBS to get that to work, but it was kind of a pain. Also /dev/ajantv2 doesn't work with FFMPEG or other applications. So it is just easier to work with /dev/video* since that works with "everything". Hence this update.

Upstream (unmaintained) repo:

Upstream released the driver under the GPLv2 license.

See README-upstream.md for the original upstream README.

Update

This update has been AI slop coded by Jeff Moe.

This driver WORKSFORME with kernels 6.12 and 6.16 on Debian Trixie (stable/13) with AJA Corvid 88 PCI cards.