You are not logged in.
Pages: 1
Hello everyone!
Yesterday I've noticed that if I run vlc with DRI_PRIME=1 var and open some video file to see it vlc immediately crashes with segfault. Here is the output of vlc:
[viktor ~]$ DRI_PRIME=1 vlc
VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
[0000000001e02158] core libvlc: Запуск vlc с интерфейсом по умолчанию. Используйте 'cvlc' для запуска vlc без интерфейса.
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
[00007f5bdda0ea38] avcodec decoder: Using Intel i965 driver for Intel(R) Sandybridge Mobile - 1.6.1 for hardware decoding.
Ошибка сегментирования (core dumped)
Running vlc without DRI_PRIME variable seems glad to me. Also running Quake III Arena, glxgears or glxinfo with DRI_PRIME=1 is perfect.
My OS is x86_64 Arch Linux with kernel 4.2.3-1, vlc is 2.2.1-8 with enabled VA-API video decoder via DRM, LibVA is also installed (libva 1.6.1-1, libva-intel-driver 1.6.1-1, libva-vdpau-driver 0.7.4-2), ATI driver is xf86-video-ati 1:7.5.0-2, Intel video driver is xf86-video-intel 1:2.99.917+478+gdf72bc5-2 and mesa is 11.0.3-1
Any help is appreciated!
Last edited by dviktor (2015-10-18 13:36:45)
Offline
Use vdpau for Radeon, not va-api (package mesa-vdpau). Also, you first need to export the driver, export VDPAU_DRIVER=radeonsi, otherwise it will tr to run it with Intel accel on Radeon card when you start it with DRI_PRIME.
Offline
Hmm. lspci gives:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Robson CE [Radeon HD 6370M/7370M] (rev ff)
I've tried this with VDPAU decoder enabled in vlc:
export VDPAU_DRIVER=r600
DRI_PRIME=1 vlc
Now I'm observing no segfault and even can hear sound but I've no video - just black screen. Using radeonsi is also leads to the same results
Also in output I see a lot of erorr messages:
vdpau_display vout display error: presentation queue display failure: An invalid handle value was provided. Either the handle does not exist at all, or refers to an object of an incorrect type.
Last edited by dviktor (2015-10-18 11:57:47)
Offline
Have you tried with different video? Free drivers generally have a lacking hardware acceleration, where one codec works, other won't.
What does DRI_PRIME=1 vdpauinfo say?
Should note that I gave up on both vdpau and vaapi, and am using opengl ouptut on Intel IGP, simply because neither of the two seems to be in a state where you can count on it to work.
Offline
[viktor ~]$ export VDPAU_DRIVER=r600
[viktor ~]$ DRI_PRIME=1 vdpauinfo
display: :0.0 screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0
Video surface:
name width height types
-------------------------------------------
420 16384 16384 NV12 YV12
422 16384 16384 UYVY YUYV
444 16384 16384 Y8U8V8A8 V8U8Y8A8
Decoder capabilities:
name level macbs width height
----------------------------------------------------
MPEG1 0 9216 2048 1152
MPEG2_SIMPLE 3 9216 2048 1152
MPEG2_MAIN 3 9216 2048 1152
H264_BASELINE 41 9216 2048 1152
H264_MAIN 41 9216 2048 1152
H264_HIGH 41 9216 2048 1152
VC1_SIMPLE --- not supported ---
VC1_MAIN --- not supported ---
VC1_ADVANCED 4 9216 2048 1152
MPEG4_PART2_SP --- not supported ---
MPEG4_PART2_ASP --- not supported ---
DIVX4_QMOBILE --- not supported ---
DIVX4_MOBILE --- not supported ---
DIVX4_HOME_THEATER --- not supported ---
DIVX4_HD_1080P --- not supported ---
DIVX5_QMOBILE --- not supported ---
DIVX5_MOBILE --- not supported ---
DIVX5_HOME_THEATER --- not supported ---
DIVX5_HD_1080P --- not supported ---
H264_CONSTRAINED_BASELINE --- not supported ---
H264_EXTENDED --- not supported ---
H264_PROGRESSIVE_HIGH --- not supported ---
H264_CONSTRAINED_HIGH --- not supported ---
H264_HIGH_444_PREDICTIVE --- not supported ---
HEVC_MAIN 186 9216 2048 1152
HEVC_MAIN_10 0 9216 2048 1152
HEVC_MAIN_STILL 0 9216 2048 1152
HEVC_MAIN_12 0 9216 2048 1152
HEVC_MAIN_444 0 9216 2048 1152
Output surface:
name width height nat types
----------------------------------------------------
B8G8R8A8 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
R8G8B8A8 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
R10G10B10A2 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
B10G10R10A2 16384 16384 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
Bitmap surface:
name width height
------------------------------
B8G8R8A8 16384 16384
R8G8B8A8 16384 16384
R10G10B10A2 16384 16384
B10G10R10A2 16384 16384
A8 16384 16384
Video mixer:
feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y
DEINTERLACE_TEMPORAL_SPATIAL -
INVERSE_TELECINE -
NOISE_REDUCTION y
SHARPNESS y
LUMA_KEY -
HIGH QUALITY SCALING - L1 -
HIGH QUALITY SCALING - L2 -
HIGH QUALITY SCALING - L3 -
HIGH QUALITY SCALING - L4 -
HIGH QUALITY SCALING - L5 -
HIGH QUALITY SCALING - L6 -
HIGH QUALITY SCALING - L7 -
HIGH QUALITY SCALING - L8 -
HIGH QUALITY SCALING - L9 -
parameter name sup min max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH y 48 2048
VIDEO_SURFACE_HEIGHT y 48 1152
CHROMA_TYPE y
LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y
After several reloading of .avi video files in vlc all seems good but when I'm scrolling a .mov file video file audio or video randomly stops. I'm finally stuck... I think that I will use Intel IGP with VA-API decoding method because it looks the most stable and bugless.
Should note that I gave up on both vdpau and vaapi, and am using opengl ouptut on Intel IGP...
How can I enable OpenGL output in vlc? Currently I'm using VA-API via DRM video decoding on Intel IGP and I see no option to choose OpenGL in vlc...
Offline
You don't select vaapi output at all, instead you select opengl.
(I'm using mplayer/mpv, by the way, not sure how vlc behaves lately)
Last edited by Xabre (2015-10-18 13:17:54)
Offline
there is no OpenGL output in vlc
Offline
Sure there is.
Online
oh, thank you! I've used to search it on the Codecs tab.
Offline
Pages: 1