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.

DM365 vpfe can not adjust the start pixel and start line

Other Parts Discussed in Thread: TVP7002, TVP5150

Hello everyone,

Two questions:

1.

I use TVP7002 to interface with PC graphics input (1280x720@60Hz). Everything is ok except there are some black lines in vertical direction.

The horizontal direction is ok, TVP7002 use embeded sync to interface with DM365 vpfe.

I try to change the VBLK start line and VBLK duration registers, but  it seems that VBLK start line can not be a negative value like TVP5150, because my analogue input source my not be very accurate, so there  are always black lines in the top of video. 

I also try to ajust the VBLK duration register, but it does not any affect. that is value 0 is has the same result with value 250, why?

 

2.  

Due to the first problem, TVP7002's VBLK start line can not be a negative value like TVP5150, I change the interface  type between TVP7002 and DM365 vpfe from CCDC_BT1120 to CCDC_YCBCR_SYNC_16 and try adjust the right position from DM365 Vpfe ,

but I found that there is a black area in horzontal  and vertical of my capture video, it is worse than using CCDC_BT1120 .

I try to change the value of Start Pixel Horizontal (SPH) and Start Line Vertical - Field 0 (SLV0) SLV1, but does not  do any work too whatever value you set.

Can anyone help me? 

Thanks in advance.

  • b/y the way, I use dm365 sdk 2.10

  • As a test can you try adjusting the AVID start and stop values in the TVP7002? Adjust both settings by the same amount. This will effectively shift the image in the output stream of the TVP7002. (Use embedded sync mode for this to work correctly)

    If you adjust the image position and the black lines do not move then the issue is with the processor settings. If the black lines move then the issue is with the source video signal not being aligned correctly with the video standard.

    BR,

    Steve

  •  

    Hi, 

     

    we have the same problem with Spectrum Digital 365 EVM.

    use DVSDK4.0, encode sample to recode the video.

    a green line and 23 black lines in vertical.

     

    anyone got solution?

    thanks in advance

     

     

     

  • Hi,

    Are you using the continuous mode of capture with resizer chained in it or are you using in single shot mode? As Steve has mentioned, you can change the vertical start position by 23 lines and see if it removes the black lines. Based on the mode of capture operation, there will be different place to set the vertical start position.

    Regards,

    Anshuman

  • Hi  Anshuman, 

     

    Thanks for your reply.

     

    Do you mean VBLK filed 0 Start Line Offset (address 44h)?

    We use TVP7002 to decode component input of 720p60 .

    Using DVSDK4.0 sample code: ./encode -y 3 -v 720p.264 -b 2000000


    This register did some help but there still some unwanted lines remained.

     

     

    It's original value 05h, the screen shot as below

     

    Change it's value form 05h to 00h.

     

    Are there some other registers should be modified?

    thanks!

     

     

    Nick

  • Hi Nick,
     
    Which sync method do you use? Embedded sync or sperator VSYNC, HSYNC?
    I solve this problem change the sync way from embedded to sperator VSYNC, HSYNC.
     
    When you use the embedded sync, the VBLK start line offset can not be a negtive value, so even you set this value to zero , there are still black line on the top.
     
    But another chip TVP5054 can set VBLK start line offset to a negtive value, please refer the related datasheet.
     
    If you use the embedded sync way, I suggest you change to sperator synchronous method.
    Xiaoguang
  • Hi Nick,

    I was mentioning about the start position for the input on DM36x side. If you look at the DM365 VPFE user guide, i am asking you to change the SLV0 and SLV1 register to say 20. I believe it might be set to 0 currently. This register is set through the  capture driver (in your case TVP7002 driver).

    Regards,

    Anshuman

  • Hi Xiaoguang,

    we have the same problem with Spectrum Digital 365 EVM.

    Now I  change to sperator synchronous method, set Sync En bit of TVP7002 OUT Formatter reg to 0 ,

    and change the interface  type between TVP7002 and DM365 vpfe from CCDC_BT1120 to CCDC_YCBCR_SYNC_16 ,

    but it has the same result ,why?

    Can you help me? 

    Thanks in advance.

  • Hi  Anshuman

    I have the same problem on capture 1080i H264,on the top.

    I try to cropping the image and I get drop down on the fps 27.3.
    I try The TVP7002 reges and ISIF regs.
    I try to shifting the pointer on then buffer in the dmai and I correct the top shifting bat I do not get all the image.
    how do I need to solve the problem?
    thinks doron
    arcos-ATX
  • Hi Nick

    do you solve the problem?

    Doron

    Arcos-ATX