Skip to content

video/out/hwdec_cuda: use mp_msg for ffnvcodec logging - #18224

Merged
kasper93 merged 1 commit into
mpv-player:masterfrom
llyyr:fix/ffnvcodec-log-spam
Jul 6, 2026
Merged

video/out/hwdec_cuda: use mp_msg for ffnvcodec logging#18224
kasper93 merged 1 commit into
mpv-player:masterfrom
llyyr:fix/ffnvcodec-log-spam

Conversation

@llyyr

@llyyr llyyr commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

ffnvcodec falls back to fprintf(stderr) unless FFNV_LOG_FUNC and FFNV_DEBUG_LOG_FUNC are defined by the user
(https://github.com/FFmpeg/nv-codec-headers/blob/master/include/ffnvcodec/dynlink_loader.h#L80-L84). Define these callbacks so CUDA loader messages go through mpv's normal logging instead.

Fixes #18223

ffnvcodec falls back to fprintf(stderr) unless FFNV_LOG_FUNC and
FFNV_DEBUG_LOG_FUNC are defined by the user
(https://github.com/FFmpeg/nv-codec-headers/blob/master/include/ffnvcodec/dynlink_loader.h#L80-L84).
Define these callbacks so CUDA loader messages go through mpv's normal
logging instead.
@kasper93

kasper93 commented Jul 5, 2026

Copy link
Copy Markdown
Member

auto probing hwdec is the worse feature. LGTM tho.

@kasper93
kasper93 merged commit 8e88661 into mpv-player:master Jul 6, 2026
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Cannot load libcuda.so.1" noise while I have no Nvidia

3 participants