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.
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.
What this failure is
Xid 65 is the NVIDIA kernel driver event emitted when the hardware video processor engine (NVDEC/NVENC) encounters an exception.
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.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
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.
| Symptom | Possible explanation |
|---|---|
| NVRM: Xid (PCI:0000:xx:00): 65, Video processor exception in dmesg | 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. |
| Failure occurs repeatedly when processing a specific video dataset shard or media upload | 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. |
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
- 1Check encoder and decoder utilization with nvidia-smi and identify which worker was decoding.
- 2Run ffmpeg -v error -i <file> -f null - on CPU to detect truncated frames or invalid NAL units.
- 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.
Searchable error signature
NVRM: Xid (PCI:0000:17:00): 65, pid=9184, name=ffmpeg, Video processor exceptionUse 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 logsNo 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
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 / Stack | Recommendation | Notes |
|---|---|---|
| Bad clip fails CPU ffprobe | Quarantine and re-encode clip | Corrupt dataset media must be cleaned in preprocessing, not sent to GPU RMA. |
| Clean clip fails on one GPU | Check driver notes then isolate GPU | Compare across identical driver builds on another node before escalating hardware. |
With the fix vs without the fix
| Dimension | With the fix | Without the fix |
|---|---|---|
| First test | CPU ffprobe/ffmpeg check on active media clip | Replacing GPU hardware on first Xid 65 |
| Pipeline hardening | Pre-validated codecs and fallback handling | Streaming 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 -> identify active clip -> test CPU ffmpeg decode -> clip corrupt? -> clean dataset | clip valid? -> test on 2nd GPU
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 familiesDiagnose 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 extensionFrequently asked questions
Questions engineers and on-call staff commonly ask about this failure.
Can a corrupt MP4 file trigger NVIDIA Xid 65?
Does Xid 65 affect CUDA compute cores?
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.