Page 1 of 1

Choppy 4k playback on VLC 3.0.2 on Vega

Posted: 12 May 2018 22:02
by Nima304
Hey everyone,

This is a continuation from this thread: https://forum.videolan.org/viewtopic.ph ... 80#p470180

I am now on VLC 3.0.2, have updated my GPU drivers to the latest version (18.4.1), have tried setting my video output and input/codecs setting to D3D11, have tried disabling hardware acceleration, all while setting VLC to realtime priority through Task Manager, all to no avail. I've also tried pausing the playback for a few minutes in case it was a buffering issue, but the choppy playback continues regardless. The videos I'm trying to play are all x265 HVEC 10-bit at 2160p. My computer has no problems playing these using other video players like PotPlayer, so the issue is definitely with VLC. Any help would be appreciated.

Here are my specs:
CPU: 2xXeon E5-2667v4
RAM: 256GBs DDR4-2400
GPU: RX Vega 64 LC
Hard drive where video files are located: Samsung 850 PRO 2TB
OS: Windows 7 Ultimate x64

Here are the logs when trying to play one of these video files (this is with video output and input/codecs set to D3D11, verbosity set to 1, and vlc.exe set to realtime priority):
main error: module not functional
main error: failed to create audio output
main error: module not functional
main error: failed to create audio output
freetype warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe
direct3d11 warning: 10 bits swapchain failed, try 8 bits
direct3d11 warning: could not get a IDXGISwapChain3
direct3d11 error: Failed to allocate the staging texture
direct3d11 error: Failed to allocate format resources
direct3d11 error: Direct3D11 could not be opened
direct3d11 error: SetThumbNailClip failed: 0x800706f4
main error: video output creation failed
main error: failed to create video output
freetype warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe
direct3d11 warning: could not get a IDXGISwapChain3
chain error: Too high level of recursion (3)
main error: Failed to create video converter
freetype warning: DirectWrite initialization failed. Falling back to GDI/Uniscribe
direct3d11 error: SetThumbNailClip failed: 0x800706f4
direct3d11 warning: could not get a IDXGISwapChain3
avcodec warning: plane 0 not aligned: disabling direct rendering
main error: buffer deadlock prevented
main warning: picture is too late to be displayed (missing 299 ms)
main warning: picture is too late to be displayed (missing 283 ms)
main warning: picture is too late to be displayed (missing 246 ms)
main warning: picture is too late to be displayed (missing 433 ms)
main warning: picture is too late to be displayed (missing 400 ms)
main warning: picture is too late to be displayed (missing 368 ms)
main warning: picture is too late to be displayed (missing 335 ms)
main warning: picture is too late to be displayed (missing 299 ms)
main warning: picture is too late to be displayed (missing 296 ms)
main warning: picture is too late to be displayed (missing 265 ms)
avcodec warning: More than 11 late frames, dropping frame
main warning: picture is too late to be displayed (missing 231 ms)
avcodec warning: More than 11 late frames, dropping frame
main warning: picture is too late to be displayed (missing 196 ms)
avcodec warning: More than 11 late frames, dropping frame
main warning: picture is too late to be displayed (missing 161 ms)
avcodec warning: More than 11 late frames, dropping frame
main warning: picture is too late to be displayed (missing 126 ms)
main warning: picture is too late to be displayed (missing 96 ms)
avcodec warning: More than 11 late frames, dropping frame
main warning: picture is too late to be displayed (missing 30 ms)
Picture is too late to be displayed errors continue indefinitely.

Re: Choppy 4k playback on VLC 3.0.2

Posted: 14 May 2018 12:23
by InTheWings
that's not full logs.
the useful stuff is not there

Re: Choppy 4k playback on VLC 3.0.2

Posted: 15 May 2018 17:00
by Nima304
Here is the same test with verbosity 2:

https://pastebin.com/5beHHnnm

Re: Choppy 4k playback on VLC 3.0.2

Posted: 24 May 2018 02:38
by Nima304
Bumping in hopes of a reply.

Re: Choppy 4k playback on VLC 3.0.2

Posted: 24 May 2018 08:35
by InTheWings
main debug: looking for hw decoder module matching "d3d11va": 2 candidates
main debug: no hw decoder modules matched

Re: Choppy 4k playback on VLC 3.0.2

Posted: 03 Jun 2018 11:12
by Nima304
main debug: looking for hw decoder module matching "d3d11va": 2 candidates
main debug: no hw decoder modules matched
Right, so that looks like a bug, since it's looking for d3d11 modules and can't find any. The same issues occur with hardware acceleration disabled and set to auto. I've also tested with VLC 3.0.3 x64 and the same issue occurs.

Re: Choppy 4k playback on VLC 3.0.2

Posted: 05 Jun 2018 13:30
by robUx4
This might be due to a profile not supported by the GPU. Can you provide the file or at least the beginning of it ? Or alternatively the logs from MediaInfo ?

Or the result of DXVA Checker. It seems your GPU is using outdated drivers.

Re: Choppy 4k playback on VLC 3.0.2

Posted: 05 Jun 2018 16:10
by Nima304
This might be due to a profile not supported by the GPU. Can you provide the file or at least the beginning of it ? Or alternatively the logs from MediaInfo ?

Or the result of DXVA Checker. It seems your GPU is using outdated drivers.
The file is 54GBs so I can't really upload it anywhere, nor do I know how to cut it up and only upload the beginning of it. Here are the logs from MediaInfo:

Image

Not sure exactly what you want from DXVA Checker, so here's the decoder device page, let me know if you want anything else.

Image

As for drivers, I'm running relatively up-to-date. What I have installed is 18.4.1, with 18.5.2 being the latest version, but looking at the patch notes, those updates shouldn't have anything to do with decoding or playback. Given that PotPlayer can play this media file (as well as the rest of my 4k HEVC 10-bit files) just fine, it seems to be an issue with VLC, at least with its support of RX Vega GPUs. AMD has supported HEVC/H.265 up to 4k at 8 or 10-bit colour since the Radeon 400 series, according to this Wikipedia entry:

https://en.wikipedia.org/wiki/Unified_V ... oder#UVD_7

Re: Choppy 4k playback on VLC 3.0.2

Posted: 14 Jun 2018 06:10
by Nima304
Bump. I've updated my GPU drivers to 18.5.2 with no change.

Re: Choppy 4k playback on VLC 3.0.2

Posted: 17 Jun 2018 23:50
by Jean-Baptiste Kempf
Reset your preferences totally.

Re: Choppy 4k playback on VLC 3.0.2

Posted: 19 Jun 2018 09:40
by Nima304
Reset your preferences totally.
No change at all.

Re: Choppy 4k playback on VLC 3.0.2

Posted: 19 Jun 2018 09:56
by Jean-Baptiste Kempf
Can you reupload new logs?

Re: Choppy 4k playback on VLC 3.0.2

Posted: 19 Jun 2018 10:59
by Nima304
Can you reupload new logs?
Here you go:

https://pastebin.com/2iskCvh2

Re: Choppy 4k playback on VLC 3.0.2 on Vega

Posted: 19 Jun 2018 11:17
by robUx4
Can you try using only one thread for the ffmpeg codec ? In the advanced preferences > Input /Codecs > Video codecs > FFmpeg > Threads : 1 instead of 0

Re: Choppy 4k playback on VLC 3.0.2 on Vega

Posted: 20 Jun 2018 12:15
by Nima304
Can you try using only one thread for the ffmpeg codec ? In the advanced preferences > Input /Codecs > Video codecs > FFmpeg > Threads : 1 instead of 0
That actually helped a lot. I still get the "picture is too late to be displayed" message (especially at the beginning, but after the initial burst I fullscreened it, and they really slowed down), but it's a lot less frequent, and the video is actually watchable. New logs below.

https://pastebin.com/fqMdcB3f