Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
FREEDOM251

Freedom251 › Blog › Kernel development

Linux visl Explained: Test Stateless Video Codec APIs Without Decoder Hardware

By Freedom251 Team · · 9 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The Linux visl driver is a virtual V4L2 stateless-decoder test device. It lets a userspace client submit codec controls, queues and buffers so you can inspect API behavior without a physical decoder, but it does not decode pictures. Its capture buffers contain test-pattern diagnostics rather than reconstructed video frames.

What is the Linux visl driver?

visl (the Virtual Stateless Decoder Driver) is a Linux kernel media driver for developing and testing userspace implementations of the V4L2 stateless decoding API. The kernel presents it as a decoder-like video device, allowing an application to run its normal request, queue and dequeue loop even when the target machine has no supported decoder hardware. The authoritative description is in the Linux kernel visl documentation.

As an Amazon Associate I earn from qualifying purchases.

The driver is useful because a stateless client has to do more than feed compressed bytes to a device. It must parse the bitstream, assemble codec-specific parameter structures, place those structures in V4L2 controls, queue the appropriate buffers and react to device events. visl gives that client a repeatable endpoint for exercising those interactions and for inspecting what the kernel receives.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is a critical boundary: the driver does not implement a software codec and does not invoke a hardware decoder. The kernel documentation states, “No actual decoding of video frames is performed by visl.” Instead, its virtual test-pattern generator writes debugging information into capture buffers. A successful visl run therefore proves that your application is communicating with the V4L2 stateless interface in a way the virtual device accepts; it does not prove that an image was decoded.

#1 Best Overall
Guermok Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P 60FPS & 2K 30FPS | Capture Card for Streaming, Compatible with iPad Mac OS Windows, Quest 3, OBS, PS5/4, Switch2/1, Xbox, Camera (Silver)
  • 【1080P 60FPS Video Capture Card】 This HDMI game capture card is based on USB3.0 high speed transmission port, input resolution up to 4K@30HZ, output resolution up to 2K@30Hz or 1920×1080@60Hz. Type c and USB interface can meet most of the devices in daily life. Easily meet the online capture, real-time recording, online meetings, live gaming and other functions, so you have a better visual enjoyment. Note: For capture use only; requires capture software to function and is not intended for direct screen casting to a monitor or TV
  • 【Ultra Low Latency Screen Sharing】 HDMI capture card is made of good quality aluminum alloy with strong heat dissipation, allowing you to enjoy ultra low latency while live gaming or video recording or live streaming, avoiding blue screens and lag. This HDMI to USBC capture card supports easy recording of good quality audio or HD video and transferring it to your computer or streaming platform, allowing you to record 60 fps HD video directly on your hard drive and real-time preview
  • 【Plug and Play, Easy to Carry】 This HDMI 1080P video capture card does not require any additional drivers or external power supply, just plug and play for fast capture. The capture card is small and lightweight, so you can put it in your bag for emergencies, making it very portable for outdoor live streaming. It's also a great way to share content in game recording, video conference, video recorder and online teaching
  • 【Wide Compatibility USB Capture Card】 Easily streams to Facebook, Youtube or Twitch. With the connection, this HDMI to USB C/3.0 video capture devices can be working on several Operating Systems and various software: Windows 7/ 8/ 10, Mac OS or above, Linux, Android, Laptop, Xbox One, PS3/PS4/PS5, Camera, DVDs, Set Top Box, Webcame, DSLR, Switch/Switch 2, TV BOX, HDTV, Potplayer/VLC, ZOOM, OBS Studio etc.
  • 【Package Content & Note】 1x HD Audio Capture Card , 1x USB 3.0 to USB C Adapter (A-side 3.0, B-side 2.0), 1x user manual. Please note that you need to restart the OBS Studio software after the audio setup is complete, otherwise it will result in no sound output. When using an adapter, if the device is recognized as USB 2.0, try using the other side with the USB-C port. Simply flip the capture card and reconnect it to be recognized as USB 3.0

How stateful and stateless V4L2 decoding differ

Understanding the two V4L2 models explains why visl exists. Both models normally use a memory-to-memory device with two queues, but the client’s responsibilities are different.

Aspect Stateful decoder Stateless decoder
Input supplied by the application Complete chunks of the compressed bytestream Parsed codec data plus codec-specific controls accompanying the decode work
Who maintains codec parsing state The decoder is expected to derive the needed state from the bytestream The userspace client parses the stream and supplies the relevant metadata and parameters
V4L2 queue names OUTPUT for encoded input and CAPTURE for decoded output The same queue convention, with controls describing each decode operation
Typical implementation described by the kernel API Memory-to-memory decoder workflow Most often a hardware-accelerator workflow
What visl targets Not a stateful-decoder compatibility test A virtual device specifically for stateless API development and testing

The V4L2 stateful decoder interface documentation describes the stateful workflow in which the application supplies encoded buffers and receives decoded frames. The stateless codec control reference documents the controls used to carry parsed information.

What a stateless client must manage

A stateless client generally has to identify codec boundaries and parse syntax elements before submitting a decode request. Depending on the codec, that can include sequence, picture and slice information. For H.264, for example, the control API represents structures such as sequence parameter sets, picture parameter sets and slice parameters. The exact structures and flags are codec-specific and are defined by the kernel’s stateless control reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The application also has to maintain the relationship between the controls and the buffers they describe. A control set for one picture must be associated with the correct encoded data and destination surface. This explicit association is the reason a stateless client can expose bugs that a stateful client would hide inside the decoder.

Does visl actually decode video?

No. visl never reconstructs a video frame from compressed data. Its capture queue receives diagnostic output generated by the virtual test-pattern generator. The output can show that a request reached the driver, that controls were accepted and that queue processing occurred, but it is not a viewable rendition of the source movie.

Rank #2
Capture Card, USB Video Capture Card Device, Audio Video Converter Grabber for RCA to USB-Convert VHS Mini DV VCR Hi8 DVD to Digital, for PC TV Tape Player Camcorder, MAC Windows Vista Compatible
  • AV TO USB Converter: Capture videos and audios from VHS, VCR, Hi8, DV tapes to a PC, with the help of our USB Video Converter. Save room while digitizing your favorite old memories
  • Quality Capture Card: Our USB Video Capture Card converting anolog RCA composite input into HD 720P USB output and capturing audio without any sound card. Advanced signal processing technology provides you with great precision, colors, resolutions, and details.
  • Plug and Play: Automatically install the driver once you hook up this RCA to USB Converter to a PC. No external power is needed. User-friendly and easy to operate
  • Wide Compatibility: The Video Capture Card can work with video devices with RCA connector or S-Video connector, such as VHS, VCR, Hi8, camcorder, compatible with Windows and Mac OS. Support video formats like NTSC, PAL, and support brightness, contrast, hue, and saturation control
  • Note: The Video Converter is used with acquisition software. We recommend OBS Studio or PotPlayer for Windows, and QuickTime Player for Mac. They can be downloaded for free online. Please operate according to the steps in User Manual or contact us if you have any questions

Do not use a visl capture buffer to judge:

  • Pixel correctness, image quality or reference-frame handling.
  • Whether a physical decoder can decode the stream.
  • Decode throughput, latency, power use or thermal behavior.
  • Compatibility with a particular GPU, media accelerator or vendor kernel.

Those questions require a real decoder implementation and, for image-quality checks, a way to compare its reconstructed frames with a known reference. visl can complement that testing by isolating userspace/API behavior before hardware is available, but it cannot replace hardware validation.

Which codecs does visl support?

The current Linux kernel documentation under the latest path lists seven codec families. The list is documentation for the current kernel tree consulted on October 7, 2026, not a promise that every released or vendor kernel exposes all of them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Codec family listed by current visl documentation What to verify on a target system
FWHT That the target kernel’s visl build includes the FWHT format and controls
MPEG-2 The MPEG-2 control set and pixel formats exposed by that kernel
VP8 VP8 controls and the device’s advertised formats
VP9 VP9 controls, profile handling and formats
H.264 H.264 parameter controls and the stream features your client submits
HEVC HEVC controls, including the sequence-parameter information used in tracing examples
AV1 AV1 controls and any kernel-version-specific requirements

Before writing a version-specific claim into a test plan, check the documentation and media-device capabilities for the exact kernel you will run. The latest page can describe a newer API surface than an LTS or vendor kernel.

How to test a stateless client with visl

Use visl to validate the mechanics of your client, not its decoded pixels. A practical workflow is:

  1. Build or obtain a kernel with visl enabled. The virtual device must be present in the running kernel, and its media functionality must be available to the userspace environment. Confirm that the device appears through the normal V4L2/media-device discovery used by your application.
  2. Choose a codec supported by that kernel. Start with the codec whose controls your client already handles. Compare the target kernel’s advertised controls and formats with the definitions in the stateless control reference.
  3. Point the client at the virtual device. Run the same stateless decode loop you intend to use with hardware. The application should configure the OUTPUT queue for encoded input, configure the CAPTURE queue for the destination format, submit codec controls and queue buffers in its normal order.
  4. Feed a known bitstream. Use a small, reproducible stream that your parser can identify reliably. The purpose is to make control submissions and buffer ordering easy to compare between runs, not to obtain a playable file from visl.
  5. Observe events and completions. Record which controls are submitted for each buffer, which buffers are returned and how the client handles format or end-of-stream events. A client that only works with one physical driver often reveals assumptions here.
  6. Enable the relevant visl trace events. The driver documents codec-specific trace groups. Enable the group for the codec under test and inspect the resulting records to see the controls and values received by the virtual device. The documentation includes a HEVC sequence-parameter-set tracing example.
  7. Inspect debugfs when buffer contents matter. visl provides a debugfs interface for examining OUTPUT buffer data. Driver parameters determine whether bitstream buffers are retained and which frames are dumped; select those settings deliberately because retaining every buffer can produce substantial diagnostic data.
  8. Compare implementations. Run a known-good client and your developing client with the same stream and tracing configuration. Differences in control presence, array sizes, buffer references or queue sequencing are often easier to spot in visl logs than on hardware.

Keep the generated capture data as diagnostic reference material. It is not decoded video, and it should not be passed to a player as though it were the source stream’s picture output.

Rank #3
Video Capture Card, 4K USB3.0 HDMI to USB C, 1080P60FPS HDMI Capture Card for Streaming, Gaming, Video Recording Compatible with Switch, Xbox, PS4/5, OBS,iPad Mac OS Windows,Camera, Zoom(Silver)
  • 【4K HDMI Input, 2K@30Hz Recording】Powered by a true USB 3.0 high-speed interface, the capture card supports up to 4K@30Hz HDMI input and records at 2K@30Hz or 1080P@60Hz. Perfect for gamers, streamers, and professionals who need crisp, smooth video for live streaming, gameplay recording, or online meetings.
  • 【Ultra Low Latency Screen Sharing】Built with a premium aluminum alloy shell and advanced chipset for stable heat dissipation, ensuring ultra-low latency transmission. Capture high-quality video and dual-channel audio in real time—no lag, no frame drop—ideal for Twitch, YouTube, or OBS streaming.
  • 【Easy Plug and Play, Compact & Portable】No driver or external power required—just plug and play via USB 3.0 or Type-C connection to your Windows or macOS computer. Lightweight and compact design makes it easy to carry for outdoor streaming, live shows, or mobile recording setups.
  • 【Wide Compatibility & Multi-Device Support】Compatible with Windows 7 8 10 11, macOS, Linux,Android and supports most popular software such as OBS, Zoom, VLC, Twitch Studio, and more. Works seamlessly with PS4, PS5, Xbox, Switch, DSLR cameras, TV boxes, and other HDMI-output devices for streaming to YouTube, Twitch, etc.
  • 【What You Get】Includes: HDMI Capture Card, USB 3.0 to USB-C Adapter, User Manual. Tips: Make sure your tablet’s OTG function is enabled before connecting. Test your HDMI device with a monitor first to confirm video and audio output, then connect to the Video Capture Card for recording.

Tracing V4L2 codec controls

Tracing is visl’s most valuable capability for a userspace developer. A stateless request can contain many fields that are difficult to inspect from application logs alone. The driver’s per-codec trace events expose what reached the kernel, letting you check whether your parser’s result matches the control payload the API expects.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use codec-specific trace groups

Select the trace group that corresponds to the codec being tested. For HEVC, the kernel guide demonstrates tracing a sequence parameter set; equivalent codec-specific groups are available for the other supported families where documented. Capture the trace while submitting one or a few frames, then correlate each record with your application’s request identifier or buffer index.

Interpret differences carefully

  • A missing trace record can indicate that the request was never queued, that tracing was enabled for the wrong codec group or that the device rejected the operation earlier.
  • A field mismatch usually points to parser or structure-population logic, but confirm the kernel version before assuming the layout is identical.
  • Values that look unstable may be pointers, queue addresses or other diagnostic details rather than codec semantics.

When tpg_verbose is enabled, visl adds details such as pointers or queue status. Those details make the generated output less stable for the same input, so use verbose mode when investigating a specific failure and disable it when you need compact, repeatable logs.

What visl can prove—and what it cannot

A passing visl run can establish that your application can discover the virtual device, negotiate a supported format, submit the expected stateless controls, queue buffers and handle the resulting V4L2 events. It is especially useful for continuous integration, regression tests and development on machines without decoder hardware.

It cannot establish decode correctness, image quality, performance, power consumption or physical-hardware compatibility. Since no frame decoding occurs, a client can pass visl while still containing a bad motion-vector interpretation, an incorrect reference-frame lifetime or a hardware-specific synchronization bug. Conversely, a failure on visl may expose an API-contract problem even if a permissive hardware driver happened to accept the same client.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Audio Express AXHDCAP 4K HDMI Video Capture Card, Cam Link Card Game Audio Adapter HDMI to USB 2.0 Record Capture Device for Streaming, Live Broadcasting, Video Conference, Teaching, Gaming
  • [Enhanced 4K-1080P Video Capture Experience] Capture the Magic: Elevate your video recordings to new heights with our upgraded anti-static 1080P Video Capture Card. Immerse yourself in stunning visuals, supporting HDMI input at 4K 60FPS and USB output for capturing in 1080P, complete with rich stereo sound. Enjoy crystal-clear video recordings, dynamic gaming live streams, and professional conference broadcasts. Note: HDMI resolution: Max input can be 3840×2160@30Hz / Video output resolution: Max output can be 1920×1080@30Hz
  • [Seamless Real-Time Preview] Stay in the Moment: Our advanced ultra-low latency technology ensures seamless real-time transmission of video streams. Experience instant, lag-free previews, allowing you to capture every detail precisely. Effortlessly record video directly to your hard disk, all without compromising on quality or introducing any delays.
  • [Versatility and Broad Compatibility] Your Creative Hub: Connect your DSLR, camcorder, or action camera to a wide range of operating systems, including Windows, MacOS, and Linux. Unlock a world of possibilities with real-time streaming to popular platforms like Twitch, Youtube, OBS, Zoom, Potplayer, and VLC, giving you the tools to share your content effortlessly.
  • [Effortless Plug and Play] Simplicity Redefined: Say goodbye to complex installations. Our plug-and-play design eliminates the need for drivers or external power supplies. Seamlessly integrate high-definition acquisition into various scenarios, whether it's educational recordings, immersive gaming, precise medical imaging, captivating live streams, or professional broadcasting.
  • [Seize Every Detail with Precision] Unleash your creativity and attention to detail with our video capture card. Capture every nuance, every color, and every moment with precision, thanks to the enhanced capabilities of our technology. Whether you're a content creator, a gamer, or a professional, our capture card empowers you to seize the finest elements and bring them to life in your recordings and live streams.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Kernel-version and deployment cautions

Documentation and driver behavior are version-sensitive. The codec list above comes from the current latest visl guide, while the stateful decoder reference cited here is explicitly for Linux v6.1. A vendor kernel may backport controls, omit a codec, rename a trace event or carry local changes. Record the kernel release, configuration and media-device capabilities alongside test results.

Do not infer support merely from a header file on the build machine. The running kernel must expose the device and controls, and the application must negotiate formats actually reported by that device. Treat a capability query and a short traced run as the authoritative check for the environment in which your client will ship.

Common failure modes and useful checks

The application cannot find a decoder device

Check that visl is enabled and loaded in the running kernel, then inspect the media/V4L2 device inventory used by your discovery code. A userspace binary built with stateless support cannot create the virtual device if the kernel configuration does not include it.

Controls are rejected

Verify that the controls belong to the codec negotiated on the device and that their dimensions, flags and referenced buffers match the target kernel’s stateless control definitions. Trace the request to distinguish a parser-population error from a queue-ordering error.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Capture buffers contain unfamiliar patterns

This is expected. visl writes diagnostic test-pattern information rather than decoded pictures. Use traces and buffer metadata to assess the API transaction; use a real decoder for visual output.

Best Value
Sale
Capture Card, 4K HDMI Video Capture Card, Game Capture Card, 1080P 60FPS Video Capture Device, HDMI to USB 3.0 Capture Card for Streaming, Work with Camera/Xbox/PS4/PS5/PC/OBS
  • 【1080P HD High Quality】Capture resolution up to 1080p for video source and it is ideal for all HDMI devices such as PS4, PS3, Xbox One, Xbox 360, Wii U, DVDs, DSLR, Camera, Security Camera and set top box. Note: Video input supports 4K30/60Hz and 1080p120/144Hz. Does not support 4K120Hz/144Hz. Output supports up to 2K30Hz.
  • 【Plug and Play】No driver or external power supply required, true PnP. Once plugged in, the device is identified automatically as a webcam. Detect input and adjust output automatically. Won't occupy CPU, optional audio capture. No freeze with correct setting.
  • 【Compatible with Multiple Systems】suitable for Windows and Mac OS. High speed USB 3.0 technology and superior low latency technology makes it easier for you to transmit live streaming to Twitch, Youtube, Facebook, Twitter, OBS, Potplayer and VLC.
  • 【HDMI LOOP-OUT】Based on the high-speed USB 3.0 technology, it can capture one single channel HD HDMI video signal. There is no delay when you are playing game live.
  • 【Support Mic-in for Commentary】Rybozen capture card has microphone input and you can use it to add external commentary when playing a game. Please note: it only accepts 3.5mm TRS standard microphone headset.

Two runs produce different verbose output

Disable tpg_verbose or compare only stable fields. The documentation warns that extra pointers and queue-status details can vary even for identical input.

A client works on visl but fails on hardware

Move to hardware-specific testing. Check synchronization, supported profiles, memory layout, reference-frame management and timing behavior, none of which visl’s no-decode path can validate.

Where visl fits in a development strategy

Use visl early, when the primary risk is an incorrect userspace interpretation of the V4L2 stateless API. It is a low-dependency environment for testing control construction, queue transitions, event handling and diagnostic logging. Once those interactions are stable, run the same client against each physical decoder and add tests for reconstructed-frame correctness, format conversion, throughput and power.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The clean separation prevents a common testing mistake: treating acceptance by a virtual API device as evidence that a codec implementation is complete. visl verifies the conversation between userspace and the kernel interface. A real decoder verifies the conversation plus the codec’s actual frame reconstruction.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Kernel developmentLinuxmedia driversstateless decodingV4L2video codecsvisl

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.