(DEPRICATED, now MPP is used in Rockchip Linux to support h264/hevc 4K.)

libvdpau-rockchip

libvdpau-rockchip is vdpau backend driver for rockchip platform(only support h264 decode for now).

Git repository:

https://github.com/rkchrome/rockchip-vdpau-driver

Depending on:

1/ rockchip v4l2 video driver(with h264 decode supported)
2/ librkdec-h264d.so(https://github.com/rockchip-linux/v4l2_plugin_libs)
It has been merged into source tree and would be built at the same time.

Usage:

mpv
export VDPAU_DRIVER=rockchip
mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all [h264 video file]
Gstreamer
export LIBVA_DRIVER_NAME=vdpau
export VDPAU_DRIVER=rockchip
gst-launch-1.0 filesrc location=[h264 video file] ! qtdemux ! vaapidecode ! vaapisink
FFmpeg

FFmpeg can only call decode api in vdpau. Presentation api can't be used via FFmpeg.So it's not available to play video with FFmpeg.

Note:

if using drm and have root or CAP_SYS_ADMIN permission, then overlay video mode can be enabled by set OVERLAY env:

export OVERLAY=1
export VDPAU_DRIVER=rockchip
mpv --vo=vdpau --hwdec=vdpau --hwdec-codecs=all [h264 video file]