我在 Dell Latitude E5530 上运行 Ubuntu 12.10,但无法在 VLC 播放器中运行硬件加速视频解码。
我在打勾VLC的设置硬件加速选项,安装的所有libva
,libdrm
和vaapi
相关的软件包,但CPU使用率指示我,它仍然不活跃。播放 720p 视频期间的 CPU 使用率是 40-80%,我希望在我的机器上看到更低的使用率。
谁能给我一些关于如何让它工作的建议?
vainfo 的输出是:
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Intel i965 driver - 1.0.17
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : …
Run Code Online (Sandbox Code Playgroud) 我想知道我必须安装哪个软件包以及如何测试它是否正常工作?
我知道有很多类似的问题,但没有一个对我来说是完整和清楚的
曾经有一个 vaapi 构建的 mplayer但它似乎不再维护并且在 Vivid 中不起作用。
来自 repo 的默认 mplayer2 构建在 720p 播放期间使用 40% 的 CPU。和图腾一样。VLC 确实有一些硬件加速支持并使用 13%,但我更喜欢 mplayer 的 UI,它使用不到 5%。
目前是否可以在英特尔集成显卡上使用 mplayer 和硬件加速?
我可以找到为什么我无法使用 vlc 播放任何 mkv 文件,似乎存在绘图错误,是否有解决方法之类的?我有 optimus (intel+nvidia),我在最后一个 nvidia 驱动程序 358 上使用 bumblebee。
VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
[0000000001686148] core libvlc: Lancement de vlc avec l'interface par défaut. Utilisez « cvlc » pour démarrer VLC sans interface.
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
[00007f5994c75a08] avcodec decoder: Using OpenGL/VAAPI/libswscale backend for VDPAU for hardware decoding.
[00007f59986dbea8] adjust …
Run Code Online (Sandbox Code Playgroud) 我可以让 VLC 使用硬件解码
vlc --ffmpeg-hw video.mkv
Run Code Online (Sandbox Code Playgroud)
mplayer 是否有等效的标志?
我的 apt-get 目前正在抱怨未满足的依赖关系(并且在我修复它们之前拒绝执行任何操作):
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libavcodec53 : Depends: libva1 (> 1.0.12~) but 0.31.1-1+sds4 is installed
libva-dev : Depends: libva1 (>= 1.0.12) but 0.31.1-1+sds4 is installed
libva-glx1 : Depends: libva1 (> 1.0.12~) but 0.31.1-1+sds4 is installed
libva-tpi1 : Depends: libva1 (> 1.0.12~) but 0.31.1-1+sds4 is installed
vainfo : Depends: libva1 (> 1.0.12~) but 0.31.1-1+sds4 is …
Run Code Online (Sandbox Code Playgroud) 我正在关注一个关于如何让 VLC 使用 Core i3 集成图形芯片组中的 GPU的维基,但我被困在第一步,安装 VAAPI。
我使用“sudo apt-get install libva1 vainfo”安装了 libva1 和 vainfo,但是当我运行 vainfo 时,它说
libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Run Code Online (Sandbox Code Playgroud)
应该说
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
Run Code Online (Sandbox Code Playgroud)
根据维基。
/usr/lib/dri/i965_drv_video.so 在我的系统中不存在,但我使用 apt-get 安装了 libva1。
我使用的是 Ubuntu 15.10,并且我已经安装了此链接中显示的与 vaapi 相关的软件包How do I Enable Hardware Accelerated Video in VLC with Intel HD 4000 GPU?
我尝试播放 1080p 视频 (H264-MPEG-4 AVC)。在 gnome-system-monitor 上,我看到 vlc 使用了大约 16~20% 的 cpu。这是否意味着 vlc 上启用了硬件加速?我想知道是否有办法检查硬件加速是否正常工作
vlc 上与编解码器和视频输出相关的设置设置为自动
这是我的 vainfo 输出
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.38 (libva 1.6.0)
vainfo: Driver version: Intel i965 driver for Intel(R) CherryView …
Run Code Online (Sandbox Code Playgroud) vaapi ×8
vlc ×3
mplayer ×2
video ×2
11.10 ×1
15.04 ×1
apt ×1
command-line ×1
dependencies ×1
graphics ×1
hd-video ×1
mkv ×1
video-player ×1