Kodi Community Forum

Full Version: HEVC with AMD Raven Ridge
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,
Some of my hevc video doesnt work with latest git :

Debug Log : https://paste.ubuntu.com/p/hXpMJTk4W3/
Uname -r : 4.16.13-1-ck-zen
vainfo :
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Mesa Gallium driver 18.1.1 for AMD RAVEN (DRM 3.23.0, 4.16.13-1-ck-zen, LLVM 6.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
Mediainfo

General
Unique ID                                : 247335157046217602282074968427782478038 (0xBA1304BE165D934A894B80259CC018D6)
Complete name                            : /donnees/series/Naruto/Season.1/Naruto 010 The Forest Of Chakra.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 75.5 MiB
Duration                                 : 23 min 35 s
Overall bit rate                         : 447 kb/s
Movie name                               : Naruto 010 - GamePersia
Encoded date                             : UTC 2016-09-09 14:51:49
Writing application                      : mkvmerge v9.4.0 ('Knurl') 64bit
Writing library                          : libebml v1.3.4 + libmatroska v1.4.5

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : [email protected]@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 23 min 35 s
Bit rate                                 : 374 kb/s
Width                                    : 960 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.023
Stream size                              : 63.1 MiB (84%)
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : HE-AAC / LC
Format settings                          : Implicit
Codec ID                                 : A_AAC-2
Duration                                 : 23 min 35 s
Bit rate                                 : 72.0 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz / 24.0 kHz
Frame rate                               : 23.438 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 12.1 MiB (16%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 23 min 18 s
Bit rate                                 : 72 b/s
Count of elements                        : 322
Stream size                              : 12.4 KiB (0%)
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : :Opening Theme
00:01:42.000                             : :Episode

bibi
Quote:Width : 960 pixels Height : 720 pixels

^^ are you sure this is the case?
From the log :08:38:28.068 T:140364697073408 INFO: ffmpeg[7FA933E87700]: Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
But it fails with
ERROR: VAAPI::CheckSuccess - Error: invalid VASurfaceID(6)
The same video works with gemini lake.
The same video works with my gemini lake and my pi3...
If i understand well i have to change screen resolution to 1280.
Oups, almost double post Wink
Will try tomorrow to change screen width resolution to 1280
I fixed the display ratio, to notice that i didnt.post the good mediainfo datas...
Here the mediainfo for the video which doesnt work

diainfo Season.05/\[AnimeRG\]\ Naruto\ Shippuden\ -\ 101\ \[720p\]\ \[x265\]\ \[pseudo\].mkv
General
Unique ID : 188038294527060106570469682370288733322 (0x8D76DBB3CA1035D7B792F8E64D3ACC8A)
Complete name : Season.05/[AnimeRG] Naruto Shippuden - 101 [720p] [x265] [pseudo].mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 107 MiB
Duration : 23 min 10 s
Overall bit rate : 646 kb/s
Encoded date : UTC 2017-04-24 00:34:02
Writing application : mkvmerge v9.2.0 ('Photograph') 64bit
Writing library : libebml v1.3.3 + libmatroska v1.4.4
Attachments : OpenSans-Semibold.ttf

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : [email protected]@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 23 min 9 s
Bit rate : 542 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.025
Stream size : 89.8 MiB (84%)
Writing library : x265 2.0+2-70581d6cd065:[Windows][MSVC 1900][64 bit] 8bit
Encoding settings : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=3 / subme=5 / merange=22 / no-rect / no-amp / max-merge=2 / temporal-mvp / no-early-skip / rskip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / no-fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=240 / min-keyint=23 / scenecut=40 / rc-lookahead=240 / lookahead-slices=0 / bframes=16 / bframe-bias=0 / b-adapt=2 / ref=6 / limit-refs=0 / no-limit-modes / weightp / weightb / aq-mode=2 / qg-size=64 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=3 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / no-rd-refine / signhide / deblock=0:0 / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=crf / crf=24.0 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / vbv-maxrate=2500 / vbv-bufsize=720 / crf-max=35.0 / ipratio=1.40 / pbratio=1.30
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC-2
Duration : 23 min 10 s
Bit rate : 100 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Delay relative to video : 22 ms
Stream size : 16.6 MiB (15%)
Title : Japanese Stereo
Language : Japanese
Default : Yes
Forced : No

Text
ID : 3
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Duration : 22 min 57 s
Bit rate : 114 b/s
Count of elements : 303
Compression mode : Lossless
Stream size : 19.3 KiB (0%)
Language : English
Default : Yes
Forced : No
Does it work with mpv + vaapi?
Yep it works.It works as well in kodi without vaapi.
Here a sample : https://drive.google.com/open?id=1y8jdpM...o5RpP0JJBd
I explicitely wanted to know if it works in mpv with vaapi enabled. Could you post me a log with that. And yes: SW decoded stuff obviously works.

I will ping @FernetMenta  and @yol - they have capable AMD hardware to check your sample.
@fritsch ^^ (just in case)
Seen it. It's kodi's bug I was told.
fixed by this change: 14013 (PR)
Ok, will try tonight
It's fixed, thank you all.
Pages: 1 2