Skip to content

Instantly share code, notes, and snippets.

@json-m
Last active September 15, 2020 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save json-m/a7a13250c49767619a46fb69773433ab to your computer and use it in GitHub Desktop.
Save json-m/a7a13250c49767619a46fb69773433ab to your computer and use it in GitHub Desktop.
root at summit in ~
# lspci -nn | ag VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics P630 [8086:3e96]
05:00.0 VGA compatible controller [0300]: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (rev 41)
root at summit in ~
# vainfo
libva info: VA-API version 1.8.0
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.8 (libva 2.8.0.pre0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.2.0 (07732244ae)
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointFEI
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
root at summit in ~
# ffmpeg -hide_banner -encoders | grep vaapi
V..... h264_vaapi H.264/AVC (VAAPI) (codec h264)
V..... hevc_vaapi H.265/HEVC (VAAPI) (codec hevc)
V..... mjpeg_vaapi MJPEG (VAAPI) (codec mjpeg)
V..... mpeg2_vaapi MPEG-2 (VAAPI) (codec mpeg2video)
V..... vp8_vaapi VP8 (VAAPI) (codec vp8)
V..... vp9_vaapi VP9 (VAAPI) (codec vp9)
root at summit in ~
# apk info ffmpeg
ffmpeg-4.3.1-r0 description:
Complete and free Internet live audio and video broadcasting solution for Linux/Unix
ffmpeg-4.3.1-r0 webpage:
https://ffmpeg.org/
ffmpeg-4.3.1-r0 installed size:
664 KiB
root at summit in ~
# ffmpeg -hide_banner -h encoder='vp8_vaapi'
Encoder vp8_vaapi [VP8 (VAAPI)]:
General capabilities: delay hardware
Threading capabilities: none
Supported hardware devices: vaapi
Supported pixel formats: vaapi_vld
vp8_vaapi AVOptions:
-low_power <boolean> E..V...... Use low-power encoding mode (only available on some platforms; may not support all encoding features) (default false)
-idr_interval <int> E..V...... Distance (in I-frames) between IDR frames (from 0 to INT_MAX) (default 0)
-b_depth <int> E..V...... Maximum B-frame reference depth (from 1 to INT_MAX) (default 1)
-rc_mode <int> E..V...... Set rate control mode (from 0 to 6) (default auto)
auto 0 E..V...... Choose mode automatically based on other parameters
CQP 1 E..V...... Constant-quality
CBR 2 E..V...... Constant-bitrate
VBR 3 E..V...... Variable-bitrate
ICQ 4 E..V...... Intelligent constant-quality
QVBR 5 E..V...... Quality-defined variable-bitrate
AVBR 6 E..V...... Average variable-bitrate
-loop_filter_level <int> E..V...... Loop filter level (from 0 to 63) (default 16)
-loop_filter_sharpness <int> E..V...... Loop filter sharpness (from 0 to 15) (default 4)
root at summit in ~
# ffmpeg -hide_banner -h encoder='vp9_vaapi'
Encoder vp9_vaapi [VP9 (VAAPI)]:
General capabilities: delay hardware
Threading capabilities: none
Supported hardware devices: vaapi
Supported pixel formats: vaapi_vld
vp9_vaapi AVOptions:
-low_power <boolean> E..V...... Use low-power encoding mode (only available on some platforms; may not support all encoding features) (default false)
-idr_interval <int> E..V...... Distance (in I-frames) between IDR frames (from 0 to INT_MAX) (default 0)
-b_depth <int> E..V...... Maximum B-frame reference depth (from 1 to INT_MAX) (default 1)
-rc_mode <int> E..V...... Set rate control mode (from 0 to 6) (default auto)
auto 0 E..V...... Choose mode automatically based on other parameters
CQP 1 E..V...... Constant-quality
CBR 2 E..V...... Constant-bitrate
VBR 3 E..V...... Variable-bitrate
ICQ 4 E..V...... Intelligent constant-quality
QVBR 5 E..V...... Quality-defined variable-bitrate
AVBR 6 E..V...... Average variable-bitrate
-loop_filter_level <int> E..V...... Loop filter level (from 0 to 63) (default 16)
-loop_filter_sharpness <int> E..V...... Loop filter sharpness (from 0 to 15) (default 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment