diff --git a/src/gstducatimpeg4enc.c b/src/gstducatimpeg4enc.c index 1efe880..266cb62 100644 --- a/src/gstducatimpeg4enc.c +++ b/src/gstducatimpeg4enc.c @@ -231,6 +231,7 @@ gst_ducati_mpeg4enc_configure (GstDucatiVidEnc * videnc) GstCaps *caps; const char *s; gboolean ret = TRUE; + IMPEG4ENC_Params* mpeg4enc_params; if (!GST_DUCATIVIDENC_CLASS (parent_class)->configure (videnc)) return FALSE; @@ -241,6 +242,25 @@ gst_ducati_mpeg4enc_configure (GstDucatiVidEnc * videnc) videnc->dynParams->mvAccuracy = IVIDENC2_MOTIONVECTOR_HALFPEL; videnc->dynParams->interFrameInterval = 0; + mpeg4enc_params = (IMPEG4ENC_Params*)videnc->params; + mpeg4enc_params->useDataPartitioning = 0; + mpeg4enc_params->useRvlc = 0; + mpeg4enc_params->useShortVideoHeader = 0; + mpeg4enc_params->vopTimeIncrementResolution = 60; + mpeg4enc_params->nonMultiple16RefPadMethod = IMPEG4_PAD_METHOD_MPEG4; + mpeg4enc_params->pixelRange = IMPEG4ENC_PR_0_255; + mpeg4enc_params->enableSceneChangeAlgo = IMPEG4ENC_SCDA_DISABLE; + mpeg4enc_params->useVOS = 0; + mpeg4enc_params->enableMONA = 0; + mpeg4enc_params->enableAnalyticinfo = -1; + mpeg4enc_params->debugTraceLevel = 0; + mpeg4enc_params->lastNFramesToLog = 0; + + mpeg4enc_params->rateControlParams.rateControlParamsPreset = IMPEG4_RATECONTROLPARAMS_DEFAULT; + mpeg4enc_params->interCodingParams.interCodingPreset = IMPEG4_INTERCODING_DEFAULT; + mpeg4enc_params->intraCodingParams.intraCodingPreset = IMPEG4_INTRACODING_DEFAULT; + mpeg4enc_params->sliceCodingParams.sliceCodingPreset = IMPEG4_SLICECODING_DEFAULT; + state = videnc->input_state; caps = gst_caps_new_simple ("video/mpeg", "mpegversion", G_TYPE_INT, 4, @@ -264,7 +284,7 @@ gst_ducati_mpeg4enc_allocate_params (GstDucatiVidEnc * gint outargs_sz) { return GST_DUCATIVIDENC_CLASS (parent_class)->allocate_params (videnc, - sizeof (IVIDENC2_Params), sizeof (IVIDENC2_DynamicParams), + sizeof (IMPEG4ENC_Params), sizeof (IVIDENC2_DynamicParams), sizeof (IVIDENC2_Status), sizeof (IVIDENC2_InArgs), sizeof (IVIDENC2_OutArgs)); }