Model name : Intel(R) Core(TM) i5-3230M CPU 2.60GHzįlags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln ptsĪddress sizes : 36 bits physical, 48 bits virtual I expect VAAPI to be loaded by default, not VDPAU. My system is a laptop with hybrid graphics: an integrated Intel HD4000 and a dedicated Nvidia Geforce GT740M the X server runs on the former, but I can use the latter through bumblebee/bbswitch. ![]() The first question is mainly for the sake of curiosity, while an answer to the others should help me solving my problem. Why does the libvdpau-va-gl driver introduce such overhead in the decoding process? Why doesn't vlc even list vaapi among the video output modules? Why does avplay and mpv, with default configuration, both seem to fallback to software decoding, while at least the latter is capable of hardware acceleration? Does this behaviour imply some error in the driver detection process in libav? Why can't firefox use vaapi, even if it is enabled in both gstreamer and libav? These facts raised the following questions: Note: I used the same video for all the tests, it is a 720p, h264 encoded mp4. In about:support it still reports that h264 hardware h264 decoding is not enabled. firefox with libvdpau-va-gl takes around 50% cpu power (720p video), which is half than before but still not that good, not to mention 1080p videos playback performance. firefox does not directly support vaapi ( ) but it supports vdpau Returns nothing both methods are listed here: avconv -hwaccel vaapi -i file.mp4 throws Code: mpv does the same unless I launch it with -hwdec=vaapi, in which case I get the desired behaviour (720p video played with 2% cpu usage) avplay with no launch parameters doesn't accelerate the video decoding vdpau_display vout display error: video mixer surface width capabilities query failure: VDP_STATUS_NO_IMPLEMENTATION avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding. Libva info: Found init function _vaDriverInit_0_39 Libva info: Trying to open /usr/lib64/va/drivers/i965_drv_video.so ![]() Software VDPAU backend library initialized such vaapi driver for vdpau exists in the x11 overlay (libvdpau-va-gl) if I install it, vlc loads it but video playback is even worse: 100% cpu usage, a lot of stutter and this output: Code: vlc does not accelerate the video decoding (cpu usage around 18%) it tries to load a vdpau driver but it fails because it is not installed Trying to find a solution, I ended up noticing the following facts: driver to offload calculations to the gpu. The issue is that youtube videos played using the HTML5 video player on firefox 45.8.0 (and earlier versions) are processed by the cpu, I think (symptoms: high cpu usage and slowdowns during playback of hd videos/while running computationally intensive tasks).Īs far as I understand (please correct me if I'm wrong), firefox(?) and some media player softwares rely on libav/ffmpeg or gstreamer to accelerate video decoding, which in turn should use a vaapi/vdpau/ecc. I'd like to enable it mainly to watch videos on youtube using firefox, but the fix could affect also other programs, like vlc, mpv and anything relying on libav. I need some advices about setting up hardware acceleration for video decoding. Posted: Tue 11:31 pm Post subject: Vaapi acceleration issues Gentoo Forums :: View topic - Vaapi acceleration issues
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |