rockchip-va-driver
(DEPRICATED, now MPP is used in Rockchip Linux to support h264/hevc 4K.)
rockchip-va-driver
rockchip-va-driver is vaapi backend driver for rockchip platform(only support h264 and VP8 encode for now).
The binary version is also shipped with Rockchip Debian SDK.
Git repository:
https://github.com/rockchip-linux/rockchip-va-driver
Depending on:
1/ rockchip v4l2 video driver(with h264 encode supported)
2/ librkenc-h264e.so(https://github.com/rockchip-linux/v4l2_plugin_libs)
It has been merged into source code tree. It would be built at the same time
Usage:
decode+display:
export DISPLAY=:0.0
export LIBVA_DRIVER_NAME=rockchip
# gst-launch-1.0 filesrc location=/usr/local/test.mp4 ! \
# qtdemux ! vaapidecode ! video/x-raw,format=NV12 ! videoconvert ! xvimagesink
gst-launch-1.0 filesrc location=/usr/local/test.mp4 ! \
qtdemux ! vaapidecode ! vaapisink
encode:
LIBVA_DRIVER_NAME=rockchip \
gst-launch-1.0 filesrc location=[raw 1080p video file] ! \
videoparse format=nv12 width=1920 height=1080 ! \
vaapiencode_h264 ! filesink location=[output h264 video file]
LIBVA_DRIVER_NAME=rockchip \
gst-launch-1.0 videotestsrc num-buffers=200 ! \
videoparse format=nv12 width=1920 height=1080 ! \
vaapiencode_h264 ! matroskamux ! filesink location=[output h264 video into a new mkv files]