目前在rockchip rk3568平台上想通过ffmpeg调用硬编码器h264_rkmpp进行编码,通过以下命令查看该编码器只支持drm_prime这种格式的数据帧,想要将一段yuv420p或者nv12的视频通过ffmpeg调用h264_rkmpp编码器应该如何进行数据帧格式的转换?
//查看h264_rkmpp编码器信息
$ ffmpeg -h encoder=h264_rkmpp
Encoder h264_rkmpp [h264 (rkmpp)]:
General capabilities: delay hardware
Threading capabilities: none
Supported hardware devices: (null)
Supported pixel formats: drm_prime