h264_omx
The plug-in h264_omx supports H264 video hard decoding through
VPU.
Note: The plug-in does not support hard
encoding.
The following code block shows the special options supported by the plug-ins.
Option | Type | Explanation |
---|---|---|
-omx_pix_fmt |
string | Set the decoding pixel format for h264_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.264 file output to
NV21 1280 × 720 YUV.
ffmpeg -vcodec h264_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