NVDEC H.264 decode errors on received screen shares #366

Open
opened 2026-11-12 23:02:04 +00:00 by charles · 0 comments
Owner

With NVENC/NVDEC compiled in (CUDA_HOME set, RTX 5090, driver on the desktop), screen_share_pattern_arrives_for_each_encodable_codec passes, but while the H.264 share is decoded by libwebrtc's NVIDIA decoder (webrtc-sys src/nvidia/h264_decoder_impl.cpp) it prints Decode Error occurred for picture N about ten times in a few seconds (pictures 3, 4, 13, 17, 29, 37, 49, 53, 97, 101). The test only waits until the pattern is seen once, so it does not catch dropped or failed frames.

Possibly related: Charles saw only a black screen in the native client while watching a share from someone's Electron app (2026-11-12, codec unknown; debug log to be captured).

To decide: measure the received frame rate/errors per codec with the NVIDIA decoder vs software (add a per-codec "frames received in N s" check to the interop test), and if NVDEC H.264 drops frames, register only the NVIDIA encoders (keep software decode) until fixed.

🤖 Generated with Claude Code

With NVENC/NVDEC compiled in (CUDA_HOME set, RTX 5090, driver on the desktop), `screen_share_pattern_arrives_for_each_encodable_codec` passes, but while the H.264 share is decoded by libwebrtc's NVIDIA decoder (`webrtc-sys` `src/nvidia/h264_decoder_impl.cpp`) it prints `Decode Error occurred for picture N` about ten times in a few seconds (pictures 3, 4, 13, 17, 29, 37, 49, 53, 97, 101). The test only waits until the pattern is seen once, so it does not catch dropped or failed frames. Possibly related: Charles saw only a black screen in the native client while watching a share from someone's Electron app (2026-11-12, codec unknown; debug log to be captured). To decide: measure the received frame rate/errors per codec with the NVIDIA decoder vs software (add a per-codec "frames received in N s" check to the interop test), and if NVDEC H.264 drops frames, register only the NVIDIA encoders (keep software decode) until fixed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#366
No description provided.