Skip to content

NVIDIA Xid 65: Video Processor Exception (NVDEC)

Diagnose NVIDIA Xid 65 video processor exceptions in NVDEC and NVENC pipelines. Isolate corrupt video streams from driver bugs without unnecessary GPU RMAs.

Quick answer

NVIDIA Xid 65 indicates an exception in the GPU dedicated video encode or decode hardware engine (NVENC/NVDEC), not the CUDA tensor cores. In ML video training or multimodal ingestion, a corrupt MP4/H.264/HEVC bitstream or unsupported codec profile commonly triggers Xid 65; isolate the failing video file and confirm codec utilization before draining hardware.

Symptom
NVRM: Xid (PCI:0000:17:00): 65, pid=9184, name=ffmpeg, Video processor exception
Root cause
The fixed-function video engine hit an unrecoverable decode/encode error caused by a malformed input bitstream, driver codec regression, or rarely a defective NVDEC block.
Recommended fix
Confirm active hardware video engine usage with nvidia-smi --query-gpu=utilization.encoder,utilization.decoder --format=csv.
How Denpex helps
Denpex investigates NVIDIA Xid 65: Video Processor Exception (NVDEC) using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
Environment#xid#xid-65#nvdec#nvenc#video#dali

What this failure is

Xid 65 is the NVIDIA kernel driver event emitted when the hardware video processor engine (NVDEC/NVENC) encounters an exception.

Live diagnosis, no signup

Is this what broke your run? Paste your log.

You're reading about NVIDIA Xid 65: Video Processor Exception (NVDEC). Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.

Before uploading, review cloud data handling and local options.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

Why it happens (the mechanism)

Multimodal data loaders (NVIDIA DALI, TorchAudio/TorchCodec, FFmpeg NVDEC, Decord) feed raw compressed video bitstreams directly to fixed-function decode silicon. Truncated frames, malformed NAL units, or driver codec bugs stall the video channel and emit Xid 65.

What you'll observe

  • Hardware video decoding or encoding aborts and raises Xid 65 in host kernel logs.
  • DataLoader or inference preprocessing workers hang or crash on specific video shards.

Common symptoms and what they mean

Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.

SymptomPossible explanation
NVRM: Xid (PCI:0000:xx:00): 65, Video processor exception in dmesgThe fixed-function video engine hit an unrecoverable decode/encode error caused by a malformed input bitstream, driver codec regression, or rarely a defective NVDEC block.
Failure occurs repeatedly when processing a specific video dataset shard or media uploadThe fixed-function video engine hit an unrecoverable decode/encode error caused by a malformed input bitstream, driver codec regression, or rarely a defective NVDEC block.

Which systems are affected

  • Multimodal ML training and inference pipelines using NVDEC/NVENC
  • Video transcoding services running FFmpeg, GStreamer, or NVIDIA DALI on GPU

How to confirm this is the problem

Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.

  • ✓Verify Xid 65 in dmesg -T alongside decoder or encoder utilization.
  • ✓Run CPU software decode on the exact clip being processed when Xid 65 fired.
  • ✓Check whether switching to CPU decode clears the job failure.

Root cause

  • The fixed-function video engine hit an unrecoverable decode/encode error caused by a malformed input bitstream, driver codec regression, or rarely a defective NVDEC block.

The fix and how to prevent it

How to fix it

  • Confirm active hardware video engine usage with nvidia-smi --query-gpu=utilization.encoder,utilization.decoder --format=csv.
  • Log the active media filename per worker and validate the suspect video file using ffprobe or CPU software decode (ffmpeg -v error -i clip.mp4 -f null -).
  • Skip or re-encode malformed video clips before feeding them to NVDEC workers.
  • Test the same verified clean video file on a second GPU; escalate for driver update or hardware RMA only if clean streams fail on one serial.

Step-by-step remediation

  1. 1Check encoder and decoder utilization with nvidia-smi and identify which worker was decoding.
  2. 2Run ffmpeg -v error -i <file> -f null - on CPU to detect truncated frames or invalid NAL units.
  3. 3Test a verified clean video on a second GPU to rule out driver codec bugs before hardware escalation.

How to prevent it

  • Validate and transcode untrusted user or web-scraped video datasets during offline preprocessing.
  • Separate video decode worker logs so failing media shards are identified automatically.

Save this diagnosis and catch the next crash automatically

All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.

Or start a 30-day free Team trial (work email)

Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.
Already have an account? Sign in

Searchable error signature

search key
NVRM: Xid (PCI:0000:17:00): 65, pid=9184, name=ffmpeg, Video processor exception

Use this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.

Diagnose your own log automatically

The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.

Sign up free. Analyze your cluster logs

No credit card. Daily allowance follows verified trust tier. Instant access.

Why the recommended fix works

Testing the suspect media file with CPU software decoding immediately isolates bad dataset inputs from GPU driver or silicon defects.

Code examples

snippet
nvidia-smi --query-gpu=index,utilization.encoder,utilization.decoder --format=csv
ffmpeg -v error -i suspect_clip.mp4 -f null -

This snippet illustrates the entry-specific check. Verify the installed versions, permissions, target and workload context before using it. A command or API example is not proof of recovery.

Best practices by model family

Model / StackRecommendationNotes
Bad clip fails CPU ffprobeQuarantine and re-encode clipCorrupt dataset media must be cleaned in preprocessing, not sent to GPU RMA.
Clean clip fails on one GPUCheck driver notes then isolate GPUCompare across identical driver builds on another node before escalating hardware.

With the fix vs without the fix

DimensionWith the fixWithout the fix
First testCPU ffprobe/ffmpeg check on active media clipReplacing GPU hardware on first Xid 65
Pipeline hardeningPre-validated codecs and fallback handlingStreaming raw unverified clips into NVDEC

Diagnostic note

“Xid 65 guidance follows NVIDIA Xid catalog definitions for video processor exceptions. Example log line illustrates kernel event format.”

Visual fingerprint

Xid 65 bitstream vs hardware split
Xid 65 -> identify active clip -> test CPU ffmpeg decode -> clip corrupt? -> clean dataset | clip valid? -> test on 2nd GPU
Validate the input video bitstream on CPU before blaming GPU hardware for an NVDEC exception.

Xid 65 in context

Xid 65 identifies a driver-observed event. Preserve the full message, device identity and surrounding workload and host evidence before distinguishing application, driver and hardware causes. The code alone does not justify replacing a board.

Compare Xid event families

Diagnose this failure in VS Code

Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.

Install the free VS Code extension

Frequently asked questions

Questions engineers and on-call staff commonly ask about this failure.

Can a corrupt MP4 file trigger NVIDIA Xid 65?
Yes. Malformed bitstreams, truncated downloads, or unsupported codec profiles sent to NVDEC frequently trigger Xid 65 without any GPU hardware defect.
Does Xid 65 affect CUDA compute cores?
Xid 65 originates in the fixed-function video engine, though an unhandled channel exception can still terminate the worker process holding a CUDA context.

Don't just read the fix, diagnose your run

The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.