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.

mcvip - how to escape interlace

Other Parts Discussed in Thread: TVP5158

Hi All,

I have SDK 4, with MCVIP from SDK 3.  DM365(8) + TVP5158.

Data flow is following TVP5158->MCVIP->Resizer->H264Encoder->Other customers (Network, Storages, etc.)

All works fine DM365 encodes four CIF resolution streams, DM368 encodes four D1 streams. We're encoding only video yet, without audio.

So question is following: how to escape interlace? from TVP we have BT656 video - it is interlaced, we're trying to force IVIDEO_INTERLACED parameter for the encoder, but it is not helps. Any ideas, suggestions - are welcome.

PS: for CIF resolution we have workaround: we're capturing D1 image, but then resize it to CIF - so no interlace in that case.

  • Additional information - on DM368DVR-UD1 sample hardware I see on monitor (connected to the box) not interlaced video, but when I try to execute mcvip_test.out and watching encoded video - I see interlace. As I understand interlace added somewhere in encoder?

    My encoder parameters dump is:

    === Dump of IH264VENC_Params: ===
    --- profileIdc: 100
    --- levelIdc: 21
    --- Log2MaxFrameNumMinus4: 0
    --- ConstraintSetFlag: 0
    --- entropyMode: 1
    --- transform8x8FlagIntraFrame: 1
    --- transform8x8FlagInterFrame: 0
    --- enableVUIparams: 0
    --- meAlgo: 0
    --- seqScalingFlag: 1
    --- encQuality: 2
    --- enableARM926Tcm: 0
    --- enableDDRbuff: 0
    --- sliceMode: 0
    --- numTemporalLayers: 0
    --- svcSyntaxEnable: 0
    --- EnableLongTermFrame: 0
    --- outputDataMode: 1
    --- sliceFormat: 1
    === Dump of IVIDENC1_Params: ===
    --- encodingPreset: 1
    --- rateControlPreset: 2
    --- maxHeight: 576
    --- maxWidth: 704
    --- maxFrameRate: 120000
    --- maxBitRate: 5000000
    --- dataEndianness: 1
    --- maxInterFrameInterval: 1
    --- inputChromaFormat: 9
    --- inputContentType: 0
    --- reconChromaFormat: 9
    === Dump of IH264VENC_DynamicParams: ===
    --- sliceSize: 0
    --- airRate: 0
    --- intraFrameQP: 28
    --- interPFrameQP: 28
    --- initQ: 0
    --- rcQMax: 15
    --- rcQMin: 0
    --- rcQMaxI: 15
    --- rcQMinI: 0
    --- rcAlgo: 0
    --- maxDelay: 1000
    --- aspectRatioX: 1
    --- aspectRatioY: 1
    --- lfDisableIdc: 0
    --- enableBufSEI: 0
    --- enablePicTimSEI: 0
    --- perceptualRC: 1
    --- idrFrameInterval: 24
    --- mvSADoutFlag: 0
    --- resetHDVICPeveryFrame: 1
    --- enableROI: 0
    --- metaDataGenerateConsume: 0
    --- maxBitrateCVBR: 5000000
    --- interlaceRefMode: 0
    --- enableGDR: 0
    --- GDRduration: 0
    --- GDRinterval: 0
    --- LongTermRefreshInterval: 0
    --- UseLongTermFrame: 0
    --- SetLongTermFrame: 0
    --- CVBRsensitivity: 0
    --- CVBRminbitrate: 0
    --- LBRmaxpicsize: 0
    --- LBRminpicsize: 0
    --- LBRskipcontrol: 327684
    --- maxHighCmpxIntCVBR: 0
    --- disableMVDCostFactor: 0
    === Dump of IVIDENC1_DynamicParams: ===
    --- inputHeight: 576
    --- inputWidth: 704
    --- refFrameRate: 24000
    --- targetFrameRate: 24000
    --- targetBitRate: 500000
    --- intraFrameInterval: 24
    --- generateHeader: 0
    --- captureWidth: 704
    --- forceFrame: -1
    --- interFrameInterval: 0
    --- mbDataFlag: 0
    === END OF Dump ===

  • All, TVP5158 and DM365(8) - doesn't support deinterlace.