Solved hevc playback with hw decoding on nvidia using vdpau

Hello,

Has anyone been able to use hardware decoding with either mpv or mplayer for HEVC (h.265) videos on nvidia GTX 1070/1080 using vdpau?

Thank you.
 
mpv --gpu-context=x11 --gpu-hwdec-interop=vdpau-gl --hwdec=vdpau seems to produce the desired "Using hardware decoding (vdpau)." message. Although I'm not sure if it's actually worth it at twice the CPU load…
 
that did not work however.

[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: Using non-standard frame rate 59/1
(+) Video --vid=1 (*) (hevc 3840x2160 59.940fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
[vd] Container reported FPS: 59.940060
[vd] Codec list:
[vd] hevc - HEVC (High Efficiency Video Coding)
[vd] hevc_v4l2m2m (hevc) - V4L2 mem2mem HEVC decoder wrapper
[vd] Opening decoder hevc
[vd] Looking at hwdec hevc-vdpau...
[vd] Trying hardware decoding via hevc-vdpau.
[vd] Selected codec: hevc (HEVC (High Efficiency Video Coding))
[vd] Pixel formats supported by decoder: vaapi_vld vdpau yuvj420p
[vd] Codec profile: Main (0x1)
[ffmpeg] AVHWFramesContext: Unsupported sw format: yuvj420p
Failed to allocate hw frames.
[vd] Requesting pixfmt 'yuvj420p' from decoder.
[vd] Falling back to software decoding.
 

mpv --msg-level=vd=debug --gpu-context=x11 --gpu-hwdec-interop=vdpau-gl --hwdec=vdpau --hwdec-image-format=yuv420p worked.

[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: Using non-standard frame rate 59/1
(+) Video --vid=1 (*) (hevc 3840x2160 59.940fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
[vd] Container reported FPS: 59.940060
[vd] Codec list:
[vd] hevc - HEVC (High Efficiency Video Coding)
[vd] hevc_v4l2m2m (hevc) - V4L2 mem2mem HEVC decoder wrapper
[vd] Opening decoder hevc
[vd] Looking at hwdec hevc-vdpau...
[vd] Trying hardware decoding via hevc-vdpau.
[vd] Selected codec: hevc (HEVC (High Efficiency Video Coding))
[vd] Pixel formats supported by decoder: vaapi_vld vdpau yuvj420p
[vd] Codec profile: Main (0x1)
[vd] Requesting pixfmt 'vdpau' from decoder.
Using hardware decoding (vdpau).

thanks.
 
vdpauinfo to check whether it is supported ?
if you want to hardware decode, you need compile /usr/ports/graphics/mesadri driver by hand. and checked vdapu support option, I use vlc player with vdpau to get hardware decode. it works fine.
 
vdpauinfo to check whether it is supported ?
if you want to hardware decode, you need compile /usr/ports/graphics/mesadri driver by hand. and checked vdapu support option, I use vlc player with vdpau to get hardware decode. it works fine.
Thanks, but it's solved already as per above. I also marked the forum thread as "Solved".
 
Back
Top