10-26-2018, 11:50 PM
(This post was last modified: 10-26-2018, 11:55 PM by tylerjbrooks.
Edit Reason: removed graphic character; added CBR stuff
)
If I try to encode a 3840x2160 image to a 640x360 image I get this message:
error : cedarc <h264CheckCapability:2235>: error: scaler range is 0.25-8.0, but the request scaler[0.166667,0.170370]
Is there a way to increase the range?
I am setting up the encoder like this:
VENC_CHN_ATTR_S ve_attr_;
memset(&ve_attr_, 0, sizeof(VENC_CHN_ATTR_S));
ve_attr_.VeAttr.Type = PT_H264;
ve_attr_.VeAttr.MaxKeyInterval = 30;
ve_attr_.VeAttr.SrcPicWidth = 3840;
ve_attr_.VeAttr.SrcPicHeight = 2160;
ve_attr_.VeAttr.Field = VIDEO_FIELD_FRAME;
ve_attr_.VeAttr.PixelFormat = MM_PIXEL_FORMAT_YVU_SEMIPLANAR_420;
ve_attr_.VeAttr.Rotate = ROTATE_NONE;
ve_attr_.VeAttr.AttrH264e.bByFrame = TRUE;
ve_attr_.VeAttr.AttrH264e.Profile = 2;
ve_attr_.VeAttr.AttrH264e.MaxPicWidth =3840;
ve_attr_.VeAttr.AttrH264e.MaxPicHeight = 2160;
ve_attr_.VeAttr.AttrH264e.PicWidth = 640;
ve_attr_.VeAttr.AttrH264e.PicHeight = 360;
ve_attr_.RcAttr.mRcMode = VENC_RC_MODE_H264CBR;
ve_attr_.RcAttr.mAttrH264Cbr.mGop = 30;
ve_attr_.RcAttr.mAttrH264Cbr.mSrcFrmRate = 30;
ve_attr_.RcAttr.mAttrH264Cbr.fr32DstFrmRate = 30;
ve_attr_.RcAttr.mAttrH264Cbr.mBitRate = 8 * 1024 * 1024;
error : cedarc <h264CheckCapability:2235>: error: scaler range is 0.25-8.0, but the request scaler[0.166667,0.170370]
Is there a way to increase the range?
I am setting up the encoder like this:
VENC_CHN_ATTR_S ve_attr_;
memset(&ve_attr_, 0, sizeof(VENC_CHN_ATTR_S));
ve_attr_.VeAttr.Type = PT_H264;
ve_attr_.VeAttr.MaxKeyInterval = 30;
ve_attr_.VeAttr.SrcPicWidth = 3840;
ve_attr_.VeAttr.SrcPicHeight = 2160;
ve_attr_.VeAttr.Field = VIDEO_FIELD_FRAME;
ve_attr_.VeAttr.PixelFormat = MM_PIXEL_FORMAT_YVU_SEMIPLANAR_420;
ve_attr_.VeAttr.Rotate = ROTATE_NONE;
ve_attr_.VeAttr.AttrH264e.bByFrame = TRUE;
ve_attr_.VeAttr.AttrH264e.Profile = 2;
ve_attr_.VeAttr.AttrH264e.MaxPicWidth =3840;
ve_attr_.VeAttr.AttrH264e.MaxPicHeight = 2160;
ve_attr_.VeAttr.AttrH264e.PicWidth = 640;
ve_attr_.VeAttr.AttrH264e.PicHeight = 360;
ve_attr_.RcAttr.mRcMode = VENC_RC_MODE_H264CBR;
ve_attr_.RcAttr.mAttrH264Cbr.mGop = 30;
ve_attr_.RcAttr.mAttrH264Cbr.mSrcFrmRate = 30;
ve_attr_.RcAttr.mAttrH264Cbr.fr32DstFrmRate = 30;
ve_attr_.RcAttr.mAttrH264Cbr.mBitRate = 8 * 1024 * 1024;