no hevc harware decode hevc whith 1060 - vdpau - 367.44 or 370.28

Bug #1621776 reported by lucmontagne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-367 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

I installed nvidia-367 last week. All was fine.
Yesterday I have some update, may be because of release 370 and now, mpv/vdpau doesn't want to use the hardware decoding for hevc.
I tried with ffmpeg (-hwaccel vdpau) : the same. Whith "nvidia-smi dmon -i 0", no doubt about that.

I tried with the new nvidia-370 but no result for HW decoding HEVC for videos in main profile.
Now, the problem is the same with 367.44 or 370.28.
It was fine from the first install of 367 (and my new card) until 1/2 days ago.

The hardware encoding with ffmpeg and hevc_nvenc works fine. I can encode with hw but not decode !!

> Stream #0:0(eng): Video: hevc (Main 10), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
MPV out:
vd] Codec list:
[vd] lavc:hevc - HEVC (High Efficiency Video Coding)
[vd] Opening video decoder lavc:hevc
[vd] Probing 'vdpau'...
[vd] Trying hardware decoding.
[vd] Selected video codec: HEVC (High Efficiency Video Coding) [lavc:hevc]
[vd] Pixel formats supported by decoder: vaapi_vld vdpau yuv420p
[vd] Codec profile: Main 10 (0x2)
[vd] Pixel formats supported by decoder: vaapi_vld yuv420p
[vd] Codec profile: Main 10 (0x2)
[vd] Falling back to software decoding.
[vd] Detected 4 logical cores.
[vd] Requesting 5 threads for decoding.
AO: [pulse] 48000Hz 5.1(side) 6ch float
Using software decoding.

Ubuntu 16.04 / 370.28 / GeForce GTX 1060 3GB

$ dpkg -l |egrep "vdpau|nvidia|cuda|mpv|linux-generic" |grep ii
ii libcuda1-370 370.28-0ubuntu0~gpu16.04.1 amd64 NVIDIA CUDA runtime library
ii libvdpau-dev:amd64 1.1.1-3ubuntu1 amd64 Video Decode and Presentation API for Unix (development files)
ii libvdpau1:amd64 1.1.1-3ubuntu1 amd64 Video Decode and Presentation API for Unix (libraries)
ii linux-generic 4.4.0.38.40 amd64 Complete Generic Linux kernel and headers
ii mpv 2:0.19.0+git~xenial amd64 mplayer/mplayer2 based video player
ii nvidia-370 370.28-0ubuntu0~gpu16.04.1 amd64 NVIDIA binary driver - version 370.28
ii nvidia-opencl-icd-370 370.28-0ubuntu0~gpu16.04.1 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.2 amd64 Tools to enable NVIDIA's Prime
ii nvidia-settings 370.28-0ubuntu0~gpu16.04.1 amd64 Tool for configuring the NVIDIA graphics driver
ii vdpauinfo 1.0-1 amd64 Video Decode and Presentation API for Unix (vdpauinfo utility)

Regards

Tags: xenial
Revision history for this message
lucmontagne (lucmontagne) wrote :

I see better:

It is worker with profile main but don't with Main 10 :

==> Don't work

> Stream #0:0(eng): Video: hevc (Main 10), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
MPV out:
vd] Codec list:
[vd] lavc:hevc - HEVC (High Efficiency Video Coding)
[vd] Opening video decoder lavc:hevc
[vd] Probing 'vdpau'...
[vd] Trying hardware decoding.
[vd] Selected video codec: HEVC (High Efficiency Video Coding) [lavc:hevc]
[vd] Pixel formats supported by decoder: vaapi_vld vdpau yuv420p
[vd] Codec profile: Main 10 (0x2)
[vd] Pixel formats supported by decoder: vaapi_vld yuv420p
[vd] Codec profile: Main 10 (0x2)
[vd] Falling back to software decoding.

==> Work

> Stream #0:0(eng): Video: hevc (Main), yuv420p(tv), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
[vd] Codec list:
[vd] lavc:hevc - HEVC (High Efficiency Video Coding)
[vd] Opening video decoder lavc:hevc
[vd] Probing 'vdpau'...
[vd] Trying hardware decoding.
[vd] Selected video codec: HEVC (High Efficiency Video Coding) [lavc:hevc]
[vd] Pixel formats supported by decoder: vaapi_vld vdpau yuv420p
[vd] Codec profile: Main (0x1)
AO: [pulse] 48000Hz 5.1(side) 6ch s32
Using hardware decoding (vdpau).

Revision history for this message
lucmontagne (lucmontagne) wrote :

$ vdpauinfo
display: :0 screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library 370.28 Thu Sep 1 19:18:08 PDT 2016

Video surface:

name width height types
-------------------------------------------
420 8192 8192 NV12 YV12
422 8192 8192 UYVY YUYV

Decoder capabilities:

name level macbs width height
----------------------------------------------------
blablabla
HEVC_MAIN 153 262144 8192 8192
HEVC_MAIN_10 --- not supported ---
HEVC_MAIN_STILL --- not supported ---
HEVC_MAIN_12 --- not supported ---
HEVC_MAIN_444 --- not supported ---

Revision history for this message
xb5i7o (xb5i7o) wrote :

Hi can someone tell me if this problem is related to mine or should i report a new bug?

I am using:
Ubuntu 16.04
Open Source Nvidia 370.28

With me, in VLC the problem occurs a pixelated video at the start of the video or when you go to certain parts of the video, it will pixelate when skipping.
This happens on MKV files encoded with H.264 - MPEG-4 AVC (part 10) (avc1) play back in a choppy and pixelated manner.

Please see bug reported through VLC which was confirmed that it is NVIDIA issue and not a VLC issue.
https://trac.videolan.org/vlc/ticket/16877

Revision history for this message
Dave Chiluk (chiluk) wrote :
madbiologist (me-again)
tags: added: xenial
Revision history for this message
madbiologist (me-again) wrote :

I thought the GeForce GTX 1060 didn't support VDPAU at all. Anyway, as discussed at the links in comment #4, VDPAU doesn't support 10bit HEVC. I recommend that you use NVDEC (either by passing the NVDEC flag or the CUDA flag to mpv or ffmpeg). FFMpeg has support for NVDEC, mpv added NVDEC support in November 2016, and GStreamer added support in June 2017.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.