VLC crashes when doing a snapshot of some H265 video
Posted: 13 Nov 2020 08:32
Hello,
VLC crashes when doing a snapshot of a H265 video.
I read a TS file encoded using a Chineese HDMI H265 video capture dungle.
equipment : I7 Win10 and GTX1050Ti
If video codec _ hardware-accelarated deccoding is automatic or Direct3D or DirectX video acceleration => the video is "strange", displaying a video "3D like" : I see 2 frames side by side on the screen .(sound is good) If I take a snapshot, VLC player crashes.
using message info:
-automatic mode
mpeg4audio info: AAC channels: 2 samplerate: 48000
main error: buffer deadlock prevented
avcodec info: Using D3D11VA (NVIDIA GeForce GTX 1050 Ti, vendor 10de(NVIDIA), device 1c82, revision a1) for hardware decoding
avcodec error: hardware acceleration picture allocation failed
avcodec error: avcodec_send_packet critical error
-direct3D mode
direct3d11 error: SetThumbNailClip failed: 0x800706f4
mpeg4audio info: AAC channels: 2 samplerate: 48000
main error: buffer deadlock prevented
avcodec info: Using D3D11VA (NVIDIA GeForce GTX 1050 Ti, vendor 10de(NVIDIA), device 1c82, revision a1) for hardware decoding
avcodec error: hardware acceleration picture allocation failed
avcodec error: avcodec_send_packet critical error
direct3d11 error: SetThumbNailClip failed: 0x800706f4
- DirectX mode:
Trying to use 'HEVC Main profile' as input
dxva2 debug: NV12 is supported for output
dxva2 debug: Using decoder output 'NV12'
dxva2 warning: surface dimensions (1280x768) differ from avcodec dimensions (1280x720)
dxva2 debug: va_pool_SetupDecoder id 173 1280x720 count: 27
dxva2 debug: IDirectXVideoAccelerationService_CreateSurface succeed with 27 surfaces (1280x768)
dxva2 debug: we got 2 decoder configurations
dxva2 debug: configuration[0] ConfigBitstreamRaw 1
dxva2 debug: configuration[1] ConfigBitstreamRaw 1
dxva2 debug: IDirectXVideoDecoderService_CreateVideoDecoder succeed
main debug: using hw decoder module "dxva2"
avcodec info: Using DXVA2 (NVIDIA GeForce GTX 1050 Ti, vendor NVIDIA(10de), device 1c82, revision a1) for hardware decoding
qt debug: Logical video size: 1280x720
main debug: resized to 1280x720
main debug: VoutDisplayEvent 'resize' 1280x720
main debug: auto hiding mouse cursor
avcodec error: hardware acceleration picture allocation failed
avcodec error: avcodec_send_packet critical error
main debug: resized to 1280x697
main debug: VoutDisplayEvent 'resize' 1280x697
main debug: resized to 1280x720
main debug: VoutDisplayEvent 'resize' 1280x720
main debug: auto hiding mouse cursor
main debug: incoming request - stopping current input
main debug: killing decoder fourcc `hevc'
main debug: removing module "avcodec"
main debug: saving a free vout
main debug: reusing provided vout
main debug: removing module "hevc"
OK, I can work by setting hardware-accelarated deccoding to Disable => video is Ok and taking a snapshot works.
I I would prefer to stay in "automatic" mode
I don't know if this issue comes from VLC or from Nvidia hardware accelerator, but this situation makes me despair, because I develop a (free) software that uses libVLC to display the video and offer to take snapshot and LibVLC seems to play using by default the "automatic mode" for hardware acceleration , and if cannot change that, video displayed is bad and software crashes when wen take a snapshot, as VLC media player do itself in the same situation.
( I will post same subject in the LibVLC zone of the forum, perhaps it will be at a better place. I apologize if it's a bad idea)
thanks for help (with a solution I hope)
VLC crashes when doing a snapshot of a H265 video.
I read a TS file encoded using a Chineese HDMI H265 video capture dungle.
equipment : I7 Win10 and GTX1050Ti
If video codec _ hardware-accelarated deccoding is automatic or Direct3D or DirectX video acceleration => the video is "strange", displaying a video "3D like" : I see 2 frames side by side on the screen .(sound is good) If I take a snapshot, VLC player crashes.
using message info:
-automatic mode
mpeg4audio info: AAC channels: 2 samplerate: 48000
main error: buffer deadlock prevented
avcodec info: Using D3D11VA (NVIDIA GeForce GTX 1050 Ti, vendor 10de(NVIDIA), device 1c82, revision a1) for hardware decoding
avcodec error: hardware acceleration picture allocation failed
avcodec error: avcodec_send_packet critical error
-direct3D mode
direct3d11 error: SetThumbNailClip failed: 0x800706f4
mpeg4audio info: AAC channels: 2 samplerate: 48000
main error: buffer deadlock prevented
avcodec info: Using D3D11VA (NVIDIA GeForce GTX 1050 Ti, vendor 10de(NVIDIA), device 1c82, revision a1) for hardware decoding
avcodec error: hardware acceleration picture allocation failed
avcodec error: avcodec_send_packet critical error
direct3d11 error: SetThumbNailClip failed: 0x800706f4
- DirectX mode:
Trying to use 'HEVC Main profile' as input
dxva2 debug: NV12 is supported for output
dxva2 debug: Using decoder output 'NV12'
dxva2 warning: surface dimensions (1280x768) differ from avcodec dimensions (1280x720)
dxva2 debug: va_pool_SetupDecoder id 173 1280x720 count: 27
dxva2 debug: IDirectXVideoAccelerationService_CreateSurface succeed with 27 surfaces (1280x768)
dxva2 debug: we got 2 decoder configurations
dxva2 debug: configuration[0] ConfigBitstreamRaw 1
dxva2 debug: configuration[1] ConfigBitstreamRaw 1
dxva2 debug: IDirectXVideoDecoderService_CreateVideoDecoder succeed
main debug: using hw decoder module "dxva2"
avcodec info: Using DXVA2 (NVIDIA GeForce GTX 1050 Ti, vendor NVIDIA(10de), device 1c82, revision a1) for hardware decoding
qt debug: Logical video size: 1280x720
main debug: resized to 1280x720
main debug: VoutDisplayEvent 'resize' 1280x720
main debug: auto hiding mouse cursor
avcodec error: hardware acceleration picture allocation failed
avcodec error: avcodec_send_packet critical error
main debug: resized to 1280x697
main debug: VoutDisplayEvent 'resize' 1280x697
main debug: resized to 1280x720
main debug: VoutDisplayEvent 'resize' 1280x720
main debug: auto hiding mouse cursor
main debug: incoming request - stopping current input
main debug: killing decoder fourcc `hevc'
main debug: removing module "avcodec"
main debug: saving a free vout
main debug: reusing provided vout
main debug: removing module "hevc"
OK, I can work by setting hardware-accelarated deccoding to Disable => video is Ok and taking a snapshot works.
I I would prefer to stay in "automatic" mode
I don't know if this issue comes from VLC or from Nvidia hardware accelerator, but this situation makes me despair, because I develop a (free) software that uses libVLC to display the video and offer to take snapshot and LibVLC seems to play using by default the "automatic mode" for hardware acceleration , and if cannot change that, video displayed is bad and software crashes when wen take a snapshot, as VLC media player do itself in the same situation.
( I will post same subject in the LibVLC zone of the forum, perhaps it will be at a better place. I apologize if it's a bad idea)
thanks for help (with a solution I hope)