Hi Prem,
Thanks for the reply. when I say that improper output it means it is giving
some data output after every 30 frames.
using following printf i get the output shown below.
printf("Encoded framesize %d %d %d\n", outArgs.bytesGenerated,
outArgs.encodedFrameType, outArgs.inputFrameSkip);
Encoded framesize 1730 0 0
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 1740 0 0
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 0 0 1
Encoded framesize 1720 0 0
when i feed this 1740 bytes of data to decoder it produce a pink white
output screen & gives no error.
Below is the absolute value of parameters & these same values works properly
for H264 codec.
params.size = sizeof(VIDENC1_Params);
params.encodingPreset = XDM_DEFAULT;
params.rateControlPreset = IVIDEO_LOW_DELAY;
params.maxBitRate = 6000000;
params.dataEndianness = XDM_BYTE;
params.maxInterFrameInterval = 1;
params.inputChromaFormat = XDM_YUV_422ILE;
params.inputContentType = IVIDEO_PROGRESSIVE;
params.maxHeight = 576;
params.maxWidth = 720;
params.reconChromaFormat = XDM_CHROMA_NA;
params.maxFrameRate = 30000;
dynamicParams.size
= sizeof(VIDENC1_DynamicParams);
dynamicParams.inputHeight = 576;
dynamicParams.inputWidth = 720;
dynamicParams.targetBitRate = 1500000;
dynamicParams.intraFrameInterval = 30;
dynamicParams.generateHeader = XDM_ENCODE_AU;
dynamicParams.captureWidth = 0;
dynamicParams.forceFrame = IVIDEO_NA_FRAME;
dynamicParams.interFrameInterval = 1;
dynamicParams.mbDataFlag = 0;
dynamicParams.targetFrameRate = 25000;
dynamicParams.refFrameRate = 25000;
On Wed, Jul 21, 2010 at 2:52 PM, JayaKumar, PremKumar <[email protected]>wrote:
> Hi Yuvraj,
>
>
>
> When you say “not giving proper output”, does that mean that the output is
> corrupted? Guess there are no failures observed.
>
>
>
> Can you send the absolute values for all the params that you use instead of
> variables?
>
>
>
> Also, can you try explicitly setting the captureWidth value same as that of
> the inputWidth?
>
>
>
> Regards,
>
> Prem
>
>
> ------------------------------
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Yuvraj
> Pasi
> *Sent:* Wednesday, July 21, 2010 2:43 PM
> *To:* Jean-Paul Saman
> *Cc:* [email protected]
> *Subject:* Re: MPEG4 encoder not giving output
>
>
>
> Hi Jean, Thanks for the reply i did what u advised. No difference!!!
> any more suggestions.
>
> On Wed, Jul 21, 2010 at 1:08 PM, Jean-Paul Saman <[email protected]>
> wrote:
>
> On 07/21/2010 09:27 AM, Yuvraj Pasi wrote:
> > Hi,
> > We are using our custom made board based on DM6446 platform. we are
> > using dvsdk 2. My problem is that
> > MPEG4 encoder is not giving proper output while for same set of
> > parameter values it is working properly
> > with H264 encoder & giving proper encoded frame which I am able to
> decode.
> > I am using following settings for the parameter.
> >
> > params.size = sizeof(VIDENC1_Params);
> > params.encodingPreset = XDM_DEFAULT;
> > params.rateControlPreset = IVIDEO_LOW_DELAY;
> > params.maxBitRate = 6000000;
> > params.dataEndianness = XDM_BYTE;
> > params.maxInterFrameInterval = 1;
>
> Try setting params.maxInterFrameInterval = 0; this is needed for some
> encoders.
>
>
> > params.inputChromaFormat = XDM_YUV_422ILE;
> > params.inputContentType = IVIDEO_PROGRESSIVE;
> > params.maxHeight = D1_MAX_HEIGHT;
> > params.maxWidth = D1_MAX_WIDTH;
> > params.reconChromaFormat = XDM_CHROMA_NA;
> > params.maxFrameRate = 30000;//videnc->fps*1000;
> >
> > dynamicParams.size = sizeof(VIDENC1_DynamicParams);
> > dynamicParams.inputHeight = videnc->vsize.height;
> > dynamicParams.inputWidth = videnc->vsize.width;
> > dynamicParams.targetBitRate = videnc->maxbr;
> > dynamicParams.intraFrameInterval = 30;
> > dynamicParams.generateHeader = header;
> > dynamicParams.captureWidth = 0;
> > dynamicParams.forceFrame = IVIDEO_NA_FRAME;
> > dynamicParams.interFrameInterval = 1;
> > dynamicParams.mbDataFlag = 0;
> > dynamicParams.targetFrameRate = videnc->fps*1000;
> > dynamicParams.refFrameRate = videnc->fps*1000;
> >
> > Also when I check the outArgs it show the value of
> > outArgs.inputFrameSkip = 1.
> >
> > What am I missing here??
> >
> >
> > --
> > Thanks & regards
> > yuvraj pasi
> >
> >
> >
>
> > _______________________________________________
> > Davinci-linux-open-source mailing list
> > [email protected]
> > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>
>
> --
> Kind Regards,
>
> Jean-Paul Saman
> M2X BV
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>
>
>
>
> --
> Thanks & regards
> yuvraj pasi
>
--
Thanks & regards
yuvraj pasi
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source