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.

AM572x problem using VPE for deinterlacing

Other Parts Discussed in Thread: AM5728

Hi

I am getting 2 interlaced field while capturing from adv7180 decoder, interfaced with vina port of sitara am5728 processor.

Fig 1.: Input image

I am using VPE (vpetestm2m ) for de-interlacing and expecting 1 complete frame as output but the output  frame is same as input.

fig 2. output image

can anyone please tell me what is wrong ?

I am running vpetestm2m lke this

./vpetestm2m input.yuv 864 624 yuy2 output.yuv 864 624 yuy2 1 3

  • I will forward this to the software team.
  • Hi Abhishek,

    since you have two frames in the input file you need to pass src-height equal to the half of the input image height (it is the height of the each of two frames). The test based on input format, frame width and height and filesize calculates how many frames are in input file.

    Regards,
    Yordan
  • Abhishek,

    Please use capturevpedisplay application for capture - deinterlace - display usecase.

    As said before, for DEI, you need to:-

    - Request interlaced capture from VIP

    - Pass field size in the S_FMT (as per v4l2 standard)

    - Set the FIELD_ALTERNATE in the VPE source (V4L2_TYPE_OUTPUT) S_FMT ioctl

    You will find all of this being done in the capturevpedisplay application.

    I hope this helps.

    Regards,

    Nikhil D

  • Hi Yordan & Nikhil,

    This is Single frame of size (864*624*2) but showing two different fields (864*624 each). Our requirement is to get complete interlaced frame without two separate fields i thought  VPE can do it but i feel  i misunderstood it. Can you suggest how can i get complete interlaced frame without two seperate fields. Earlier in dm8148 processor  we have done the same thing by changing in HDvpss firmware.

    Will we have to do the same thing here or any other option is there ?

    Thanks

    Abhishek

      

  • Hi nikhil,

                    I am trying to build auto-make  project having capturevpedisplay but i am getting following error. I am using 02.00.01.07 SDK version.

    [linux-devkit]:~/MARS/VIPcapture/glsdk-omapdrmtest> make
    make  all-recursive
    make[1]: Entering directory `/home/uurmi/MARS/VIPcapture/glsdk-omapdrmtest'
    Making all in util
    make[2]: Entering directory `/home/uurmi/MARS/VIPcapture/glsdk-omapdrmtest/util'
      CC       libutil_la-display-kms.lo
    libtool: Version mismatch error.  This is libtool 2.4.6, but the
    libtool: definition of this LT_INIT comes from libtool 2.4.2.
    libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6
    libtool: and run autoconf again.
    make[2]: *** [libutil_la-display-kms.lo] Error 63
    make[2]: Leaving directory `/home/uurmi/MARS/VIPcapture/glsdk-omapdrmtest/util'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/uurmi/MARS/VIPcapture/glsdk-omapdrmtest'
    make: *** [all] Error 2

    These are the steps till now i followed.

    1. Download glsdk-omapdrmtest-glsdk_7.x.tar.gz from https://git.ti.com/glsdk/omapdrmtest/commits/glsdk_7.x

    2. tar -xvf glsdk-omapdrmtest-glsdk_7.tar.gz

    3. cd glsdk_omapdrmtest


    4. [linux-devkit]:~/MARS/VIPcapture/glsdk-omapdrmtest> autoconf --version
    autoconf (GNU Autoconf) 2.69
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+/Autoconf: GNU GPL version 3 or later
    <gnu.org/.../gpl.html>, <gnu.org/.../exceptions.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Written by David J. MacKenzie and Akim Demaille.

    5.[linux-devkit]:~/MARS/VIPcapture/glsdk-omapdrmtest> aclocal --version
    aclocal (GNU automake) 1.14.1
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv2+: GNU GPL version 2 or later <gnu.org/.../gpl-2.0.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    Written by Tom Tromey <tromey@redhat.com>
           and Alexandre Duret-Lutz <adl@gnu.org>.


    6.[linux-devkit]:~/MARS/VIPcapture/glsdk-omapdrmtest> libtoolize --version
    libtoolize (GNU libtool) 2.4.6
    Written by Gary V. Vaughan <gary@gnu.org>, 2003

    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    7. autoreconf --force --install & ./configure --host=arm-none-linux-gnueabihf & make

     

    Thanks & Regards

    Abhishek

  • Hello,

    It looks like libtool version mismatch.

    libtoolize --version
    libtoolize (GNU libtool) 2.4.2
    Written by Gary V. Vaughan <gary@gnu.org>, 2003

    Copyright (C) 2011 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    BR
    Margarita
  • Hi Abhishek,

    What do you mean by "Our requirement is to get complete interlaced frame without two separate fields"
    Do you mean deinterlaced frame? Or Progressive frame?
    This is exactly what VPE does, converting interlaced fields into progressive (deinterlacing)
    After processing by VPE, you shall have 864 * 1248 as the size of output frame.

    BTW, the size of the field doesn't look right, is this really a field?

    Regards,
    Nikhil D
  • Hi Nikhil,

                 1. 864x624 is the size of complete frame which having 2 identical fields of 864x324 size each (hope it is clear now). So according to you the the input of VPE should be a field only (in my case should be 864x324 ) ? and it will give progressive frame of size 864x624 correct?
     

    2. Yes we want progressive frame.

    Thanks & Regrds

    Abhishek

  • Hi,

          Thanks for your kind support. I am able to use vpe for denterlacing but lot of noise is visible on the monitor screen when I am using vpe for de-nterlacing. Initially i suspect video connector but that is not the problem.

    Is there any way to remove that noise and what is the reason of noise while using vpe?

    Thanks & regards

    Abhishek

  • Hi,

    THe noise is not expected using VPE

    Can you please specify the GLSDK release? and also attach the VPE output frame.

    You can maybe dump the input video(from VIP) to a file, use testvpe to convert file2file and view it offline.

    This should confirm if really it is a problem with VPE