Hello,
Before buying, I want to ask:
Does the board support accelerated H265 video decoding ,
and accelerated pixel format conversion from YUV to RGB ?
Something like this [FFmpeg] Introduce FFmpeg-Rockchip for hyper fast video transcoding via CLI
Every source I found was many years old and only for H264 but no mention about CPU of Allwinner A527 like :
Hi, according to the datasheet and driver code, it can only do hardware accelerated decoding, but not yuv2rgb (not finished or not supported by hw).
#define V4L2_CID_SUNXI_G2D_OUT_ALPHA_MODE (V4L2_CID_CUSTOM_BASE + 4)
#define V4L2_CID_SUNXI_G2D_OUT_ALIGNMENT (V4L2_CID_CUSTOM_BASE + 5)
/* Rectfill specific ctrls */
#define V4L2_CID_SUNXI_G2D_RECTFILL_COLOR (V4L2_CID_CUSTOM_BASE + 6)
#define V4L2_CID_SUNXI_G2D_RECTFILL_COLOR_ALPHA (V4L2_CID_CUSTOM_BASE + 7)
/*
* TODO: Add all supported formats. For now only include formats that
* are supported by the G2D engine both as input and as output
*/
static struct g2d_fmt g2d_supported_fmts[] = {
{
.fourcc = V4L2_PIX_FMT_XBGR32,
.depth = 32,
.hw_id = G2D_FORMAT_BGRX8888,
},
};
#define NUM_SUPPORTED_FMTS ARRAY_SIZE(g2d_supported_fmts)
#define DEF_IMG_W 800
Thanks for the quick reply,
I’m not sure if I understand correctly,
but if yuv2bgr working then it’s also ok, I mean G2D_FORMAT_BGRX8888 .
And can you help me with FFMPEG … how to use/compile?
That G2D library currently only supports RGB2RGB. I’m sure the ffmpeg you linked is outdated and they no longer work with this chip. You need to wait for Allwinner to provide a demo.
Do you have any idea where Allwinner posts announcements, demos, … like this ‘ffmpeg’, ‘vpu’ … ?