Problem to run HEVC 10 bit on UBUNTU Linux with NVIDIA 1070

Hi
I’m glad to joint to your group to improve my knowledge.

I install ubuntu 16.04 LTS, after upgrade ubuntu, I install the latest driver of GTX 1070, everything was ok.
When I want to run HEVC (X265) movies by MPV, It can’t run it by HardWare Accelerator, only it can handle X264 movies by H/W Accelerator.
What’s the problem. It’s depend on software? or something else. I try another driver like 367.35 but the results was the same.We know that this card can support HEVC on windows.
System spec:
VGA Strix GTX 1070
Ram 16 trident Z DDR 3200
MAINBOARD Asus maximus viii ranger
Any help appreciated.

This is result of playing HEVC 10 bit:
mpv —hwdec=vdpau —vo=vdpau 4k2.m3u
Playing: 4k2.m3u

Playing: http://192.168.1.7:8001/1:0:1:1F5:1964:13E:820000:0:0:0:

[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/audio] aac: Sample rate index in program config element does not match the sample rate index configured by the container.
[ffmpeg/audio] aac: decode_pce: Input buffer exhausted before END element found
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0

Reza Afsharian:
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Error parsing NAL unit #2.
(+) Video —vid=1 (hevc)
(+) Audio —aid=1 —alang=und (aac)
[ffmpeg/audio] aac: Sample rate index in program config element does not match the sample rate index configured by the container.
[ffmpeg/audio] aac: decode_pce: Input buffer exhausted before END element found
Error decoding audio.
AO: [pulse] 48000Hz stereo 2ch float
[ffmpeg/video] hevc: Could not find ref with POC -16
Using software decoding.
Using conversion filter.
VO: [vdpau] 3840x2160 yuv420p
[vo/vdpau] Compositing window manager detected. Assuming timing info is inaccurate.
AV: 00:00:59 A-V: 0.000 Cache: 0s+0KB
Invalid audio PTS: 59.285333 -> 95301.893689
[ffmpeg/video] hevc: Could not find ref with POC 5
[ffmpeg/video] hevc: Could not find ref with POC 4
[ffmpeg/video] hevc: Could not find ref with POC 0
AV: 26:28:22 A-V: 0.000 Cache: 0s+0KB
[ffmpeg/video] hevc: The cu_qp_delta 37 is outside the valid range [-32, 31].
AV: 26:28:37 A-V: 0.000 Cache: 0s+0KB
[ffmpeg/demuxer] mpegts: PES packet size mismatch