hevc_omx

The plug-in hevc_omx supports both H.265 video hard encoding and hard decoding through VPU.

The following code block shows the special options supported by the plug-ins.
Table 1. hevc_omx Special Options
Option Type Explanation
-omx_pix_fmt string Set the decoding pixel format for hevc_omx decoder. The following formats are supported: yuv420p, nv12, nv21. (default "yuv420p")
-scale_width int Set the scaling width for OMX (Only zoom out is supported, ceil 8 (width/8) and minimum 1/8) (from 0 to INT_MAX) (default 0)
-scale_height int Set the scaling height for OMX (Only zoom out is supported, ceil 8 (height/8) and minimum 1/8) (from 0 to INT_MAX) (default 0)
The following code block shows an example of decoding a 1920 × 1080 H.265 file output to NV21 1280 × 720 YUV.
ffmpeg  -vcodec hevc_omx -omx_pix_fmt nv21 -scale_width 1280 -scale_height 720 -i 1080p_30FPS_AVC_420_omx.h264 -frames 100 ff_720p_AVC_i420.yuv -hide_banner -y -v verbose