如何在 GStreamer 上啟用 VDPAU?

如何在 GStreamer 上啟用 VDPAU?

目前,我在觀看 720 高清影片時遇到了一點延遲。我希望 VDPAU 能有所幫助。如何在基於 GStreamer 的視訊播放器上啟用它?

答案1

VDPAU 在官方 nVidia 二進位檔案中預設為啟用。如果你的卡支援VDPAU你只需要安裝它們並使用支援VDPAU的播放器

除此之外,視訊硬體加速應該透過libva安裝來實現vdpau-va-driver

sudo apt-get install libva1 vdpau-va-driver vainfo

Gstreamer 應該處理其餘的事情,或者如果您要使用像您這樣的播放器,vlc您應該有一個選項可以在播放器本身中啟用該功能。

要查看您的卡是否受支持,請執行命令vainfo

如果你得到這樣的輸出

libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/vboxvideo_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

你的卡沒有硬體加速。

另一方面,如果你得到這樣的東西

libva: libva version 0.32.0
     Xlib:  extension "XFree86-DRI" missing on display ":0.0".
     libva: va_getDriverName() returns 0
     libva: Trying to open /usr/lib/dri/fglrx_drv_video.so
     libva: va_openDriver() returns 0
     vainfo: VA API version: 0.32
     vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8
     vainfo: Supported profile and entrypoints
     VAProfileH264High               :  VAEntrypointVLD
     VAProfileVC1Advanced            :  VAEntrypointVLD

您的硬體支援影片加速並已啟用。

相關內容