Video Freezes / Glitches [avcodec error: hardware acceleration picture allocation failed]

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
VideoklipBG
New Cone
New Cone
Posts: 2
Joined: 03 Aug 2018 17:07

Video Freezes / Glitches [avcodec error: hardware acceleration picture allocation failed]

Postby VideoklipBG » 03 Aug 2018 18:26

When seeking rapidly through a long video there are no issues. But in a certain situations the picture completely freezes for about 5 seconds, scrambling and glitches occur for another 5-10 seconds, then the video continues to play fine.
I did some research after I noticed this and found a few very old bugs that have been marked as fixed back in 2015-2016. I couldn't find any recent suggestions or fixes about similar issues.

This doesn't happen randomly, though only in a certain situations. I can reproduce it almost every time:

1. Seek forward through a video
2. Quickly click pause (or hit space for convenience)
3. Immediately go a few seconds back, then unpause (resume)

- The video becomes completely frozen for about 5 seconds, then random colors / pixelation / scramble occurs and after a few more seconds continues to play fine. (The audio isn't affected at all when this issue occurs)

An error pops up in "Messages":

Code: Select all

[avcodec error: hardware acceleration picture allocation failed]

Also when the video is frozen and the glitches occur, there are a lot of errors for skipping frames:

Code: Select all

...avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?) avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?) avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)...

Image
Image
Image
Image


The game videos in the screenshots above are just examples. They were recorded / rendered with completely different softwares, some of them a long time ago.
This happens with many containers, formats, codecs but mainly with mp4 H.264 / H.265 HEVC

I have tested a lot of settings / combinations and found that this issue is related to the Hardware Acceleration (Decoding). When using Software Decoding (CPU) the freezes / glitches don't occur, but then the playback isn't very smooth.
It's not worth it to manually disable HW Decoding on a high-end system, just to solve this weird issue...

Messages (Error Verbosity): https://hastebin.com/xoboluzone
Messages (Debug Verbosity): https://hastebin.com/ebocimoluk
Full Debug Log: https://hastebin.com/setazubone

PC Specs:

CPU: Intel Core i7 6700K 4.00GHz
GPU: NVIDIA GeForce GTX 1070 (MSI Gaming X 8GB)
RAM: 2 x 8GB DDR4 2666MHz
SSD: Samsung PM961 PCI-E M.2 256GB (2800 MB/s Read, 1100 MB/s Write)
HDDs: 1 x 1TB 7200 RPM, 64MB Cache, 1 x 2TB 7200 RPM, 64MB Cache

Other:

Windows 10 Pro x64, Version 1803, Build 17134.48
VLC 3.0.3 x64

I really hope that there will be a solution to this problem. I will provide additional information if needed, thanks in advance!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Video Freezes / Glitches [avcodec error: hardware acceleration picture allocation failed]

Postby Jean-Baptiste Kempf » 03 Aug 2018 19:34

Can you share logs in D3D11 ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


YeetDabMcFapDab
New Cone
New Cone
Posts: 2
Joined: 22 Dec 2023 11:02

Re: Video Freezes / Glitches [avcodec error: hardware acceleration picture allocation failed]

Postby YeetDabMcFapDab » 22 Dec 2023 11:15

I have the EXACT same problem

CPU: AMD Ryzen 9 7945HX with Radeon Graphics, 2501 Mhz, 16 Core(s), 32 Logical Processor(s)
GPU: NVIDIA GeForce RTX 4070 Laptop GPU
RAM: 2 x 16GB
SSD: SAMSUNG MZVL2512HDJD-00BL2 512 GB
Windows 11 Home x64, Version 22H2 Build 22621.2861
VLC 3.0.20 x64

https://pastebin.com/40tbHhXY

happens with any hardware-accelerated decoding and any video output


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 93 guests