This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Interlace Dec&Enc with DM8168(dvrRdk)



Hello,
I'm using DM8168 and DVRRDK4.1 now
we try to decode an interlaced MPEG2 video(576i), and then encode it as H264(no matter interlace or progressive).
I created a link like "DEC-DEI-ENC".I enable the de-interlace moudle in DEI, it works,the output is progressive.
But I can see that the output video loses vertical resolution.The image look softer.
I guess the de-interlace methods is "Blending", it may be hardly to improve? Am i right?

Then i try the "DEC-ENC", because i found the Interlace Support in DVRRDK4.1 is fine.
I set the related params like:
"
//host to m3
pChInfo->scanFormat = SYSTEM_SF_INTERLACED; //in ipcBitsOutHostPrm->inQueInfo

//dec
decPrm->chCreateParams[i].fieldMergeDecodeEnable = FALSE;
decPrm->chCreateParams[i].processCallLevel = VDEC_FIELDLEVELPROCESSCALL;

//enc
pLinkChPrm->fieldPicEncode = TRUE;
pLinkChPrm->fieldMergeEncodeEnable = FALSE;
"
It works.I can get the interlaced output file. But here is the problem when the video is played in pc(VLC):

1. The image shake up and down slightly but frequently.It's very strange.

2. Also i can see some "combing" in motion images.it's too obvious, i guess it related with the shaking.

Here is all the warning at the beginning, after this, there is no more warning:
"
[m3video] ENCLINK:HEAPID:2 USED:829440
[m3video] ENCLINK:HEAPID:3 USED:3502080
[m3video] 111251: ENCODE: Create ... DONE !!!
[m3video] 111252: IPC_BITS_OUT : Create in progress !!!
[m3video] 111253: IPC_BITS_OUT : Create Done !!!
[m3video] 111280:DECLINK::links_m3video/iva_dec/decLink_mpeg2.c:[298]::INTERNAL ERROR:-1
[m3video] ALGPROCESS FAILED:STATUS
[m3video] outArgs->viddecOutArgs.extendedError for channel 0 Error: 0x10000400
[m3video] 111280:WARN
[m3video] DECLINK:ERROR in Declink_mpeg2DecodeFrameBatch.Status[-1]
[m3video] 111296:DECLINK::links_m3video/iva_dec/decLink_mpeg2.c:[298]::INTERNAL ERROR:-1
[m3video] ALGPROCESS FAILED:STATUS
[m3video] outArgs->viddecOutArgs.extendedError for channel 0 Error: 0x10000400
[m3video] 111296:WARN
[m3video] DECLINK:ERROR in Declink_mpeg2DecodeFrameBatch.Status[-1]
[m3video] 111304:DECLINK::links_m3video/iva_dec/decLink_mpeg2.c:[298]::INTERNAL ERROR:-1
[m3video] ALGPROCESS FAILED:STATUS
[m3video] outArgs->viddecOutArgs.extendedError for channel 0 Error: 0x10000400
[m3video] 111304:WARN
"

It seems some little error happened in "field dec" or "field enc". Are there any params I set wrong?

Or Any other way to get nomal video after the transcoding?

Thank you,