bootlin / libva-v4l2-request

LibVA implementation for the Linux Video4Linux2 Request API
Other
77 stars 60 forks source link

Same behaviour running vlc with last tag release-2019.03 #17

Open villalvilla opened 5 years ago

villalvilla commented 5 years ago

Sorry to inform about it, but I'm experiencing the same troubles with vlc:

[005008c8] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[00488d40] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No existe el fichero o el directorio
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No existe el fichero o el directorio
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No existe el fichero o el directorio
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No existe el fichero o el directorio
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
[005008c8] alsa audio output error: cannot open ALSA device "default": No existe el fichero o el directorio
[005008c8] main audio output error: module not functional
[006f3930] main decoder error: failed to create audio output
[b2c0ea50] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f15a70] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[b3b104a8] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f15a70] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[b3f9b930] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f15a70] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))
[0074fa08] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f16be0] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))
[006688c0] main decoder error: buffer deadlock prevented
[b2c02dc8] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f49e80] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))
[b3b104a8] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f49e80] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))
[b3f2f6a0] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f16be0] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))
[008c0d00] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f416d8] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))
[b2c13fb0] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f416d8] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))
[b3b100b8] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f83110] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))
[b3f29bb8] xcb_x11 vout display error: shared memory allocation error: Function not implemented
[b3f396f8] main video output error: video output creation failed
[006688c0] main decoder error: failed to create video output
[mpeg2video @ 0xb3f01790] get_buffer() failed
[mpeg2video @ 0xb3f01790] thread_get_buffer() failed
[mpeg2video @ 0xb3f01790] get_buffer() failed (-1 (nil))

Anything I'm missing?

Thanks

paulkocialkowski commented 5 years ago

Looks like the issue is related to your setup, not to our tool:

[b2c0ea50] xcb_x11 vout display error: shared memory allocation error: Function not implemented and libEGL warning: DRI2: failed to authenticate libEGL warning: DRI2: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) are especially suspicious.

Make sure you're trying to use the video output we support (X11 via XCB) and not anything else (e.g. Xv).

villalvilla commented 5 years ago

Hi Paul,

Thanks for the feedback. Sorry for the noob question, but where should I select the video output? I'm reviewing my configuration and don't have nothing related to this...

villalvilla commented 5 years ago

If you mean vlan configuration, it was done, following your indications in your wiki:

 Tools > Preferences > Input / Codecs > Codecs > Hardware-accelerated decoding > VA-API video decoder
Tools > Preferences > Video > Display > Output > X11 video output (XCB) 

Something I'm missing in kernel/modules configuration? I've activated all the kernel extra configurations that you mentioned:

CONFIG_MEDIA_SUPPORT CONFIG_MEDIA_CONTROLLER CONFIG_V4L_MEM2MEM_DRIVERS CONFIG_VIDEO_SUNXI_CEDRUS

Thanks, Miguel

paulkocialkowski commented 5 years ago

It looks like it's not trying to use VAAPI at all. Are you running with a recent VLC version and userspace? Do you get correct formats enumerated with vainfo?

leeboby commented 5 years ago

When I compile libva-v4l2-request, note the error below:

Making all in src
make[1]: Entering directory '/root/libva-v4l2-request/src'
make  all-am
make[2]: Entering directory '/root/libva-v4l2-request/src'
/bin/bash ../libtool  --tag=CC   --mode=link gcc -I../include -I/usr/include/libdrm  -g -O2 -module - 
libtool: link: gcc -shared  -fPIC -DPIC  .libs/v4l2_request_drv_video_la-request.o .libs/v4l2_requesto
.libs/v4l2_request_drv_video_la-image.o: In function `copy_surface_to_image':
/root/libva-v4l2-request/src/image.c:159: undefined reference to `tiled_to_planar'
collect2: error: ld returned 1 exit status
Makefile:512: recipe for target 'v4l2_request_drv_video.la' failed
make[2]: *** [v4l2_request_drv_video.la] Error 1
make[2]: Leaving directory '/root/libva-v4l2-request/src'
Makefile:427: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/libva-v4l2-request/src'
Makefile:416: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
13723447689 commented 5 years ago

There is an error when compiling libva-v4l2-request,there is no cc85E1Qs.s in /tmp, please help me

root@orangepi3:~/libva-v4l2-request# make Making all in src make[1]: Entering directory '/root/libva-v4l2-request/src' make all-am make[2]: Entering directory '/root/libva-v4l2-request/src' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I..c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I/usr/include/libdrm -o /tmp/cc85E1Qs.s: Assembler messages: /tmp/cc85E1Qs.s:7: Error: character following name is not '#' Makefile:643: recipe for target 'v4l2_request_drv_video_la-image.lo' failed make[2]: [v4l2_request_drv_video_la-image.lo] Error 1 make[2]: Leaving directory '/root/libva-v4l2-request/src' Makefile:427: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/root/libva-v4l2-request/src' Makefile:416: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1