Open morialo3 opened 3 weeks ago
Closing. No response so I'll assume it ffmpeg
issue.
I doubt it is ffmpeg issue. It is probably that we create hwcontext during hwdec probe and they are not removed and this for some reason keeps dGPU alive.
Could you try --hwdec=vaapi
and --vaapi-device=
if this behaves better?
--vaapi-device=
this option only has any effect if you use vaapi-copy.
cuda is proved before vaapi, can you see if your issue reproduces with hwdec=cuda,vaapi
?
cuda is proved before vaapi, can you see if your issue reproduces with hwdec=cuda,vaapi?
The issue doesn't occur with those settings, here some logs, and video evidence:
https://github.com/user-attachments/assets/6a804521-99b6-4286-9701-eb369aa1bed7
I doubt it is ffmpeg issue. It is probably that we create hwcontext during hwdec probe and they are not removed and this >for some reason keeps dGPU alive.
Could you try --hwdec=vaapi and --vaapi-device= if this behaves better?
I don't usually touch this option; because of the ergonomic of -copy decoding, so I always avoid -copy decoding, also as per manual: "--vaapi-device=<device file|adapter name> Choose the DRM device for vaapi-copy. This should be the path to a DRM device file. (Default: /dev/dri/renderD128)"
Here from my setup:
ļ ļ ~ at ļ 18:26:03
āÆ ls -l /dev/dri/by-path
total 0
lrwxrwxrwx 1 root root 8 Nov 6 17:06 pci-0000:00:02.0-card -> ../card0
lrwxrwxrwx 1 root root 13 Nov 6 17:06 pci-0000:00:02.0-render -> ../renderD128
lrwxrwxrwx 1 root root 8 Nov 6 17:07 pci-0000:01:00.0-card -> ../card1
lrwxrwxrwx 1 root root 13 Nov 6 17:07 pci-0000:01:00.0-render -> ../renderD129
also:
ļ ļ ~ at ļ 18:41:15
āÆ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB] (rev a1)
If it worth the shot I'll gladly try it.
cuda is proved before vaapi, can you see if your issue reproduces with
hwdec=cuda,vaapi
?
Shouldn't it be hwdec=nvdec,vaapi
? It is not called cuda. @morialo3 could you try that?
Shouldn't it be hwdec=nvdec,vaapi? It is not called cuda. @morialo3 could you try that?
Here:
https://github.com/user-attachments/assets/bea624dd-3c15-4048-b6e6-448478cd2caf
log file: output-nvdec.txt
mpv Information
Other Information
Reproduction Steps
Just run:
in my case
vaapi
was shown as the decoder. But when I check the dGPU status through:the counter stops indicating that my dGPU is currently running. Now if I directly switch to
--hwdec=vaapi
, and ran the above command the dGPU is suspended.Expected Behavior
If
--hwdec=auto
andvaapi
is the decoding method, you expect the iGPU to be utilized, and dGPU is free to suspend/sleep.Actual Behavior
Actually I don't fully understand how
--hwdec=auto
works, so I don't know if this an expected behavior or not, but the dGPU should not be running if not used.Log File
output.txt
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.