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.

Freeze at Video processing

Other Parts Discussed in Thread: TVP5146, AM3517

Hi

I have several urgent questions as below.


About Video

No.1
Is it possible to input 720x480x60fps(progressive mode) video  signal?

No.2
Is it possible to input NTSC format named "BTA T-1004"

No.3
Is it possible to cropping 720x480 => 480x360

No.4
Can we get IRQ signal of each NTSC field (Even,Odd)

No.5
Freeze at following condition.
    
    Frame buffer(/dev/fb0) VRAM4Mbyte 800x600x32bit for Qt apply.
    Frame buffer(/dev/fb1) VRAM8Mbyte 1660x1200x32bit for direct drawing.
    Video buffer(/dev/fb0) Capture 720x480x16bit  for Video input.
    Video buffer(/dev/fb1) Display 800x600x32bit  for Video output.
    
    if cpu process became 100% work, display became blackout and UART
    dose not work after about 10 minutes.

    It need hard reset to re-start cpu.

    Is there any ideas to avoid Freeze?!

   

About Video Sample code    
     
    SDK 05.03.02, sample code "saUserPtrLoopBack.c" is using
    3 frame buffer as below.
    /dev/video 0
    /dev/video 1
    /dev/video 2
    
    Any way to change configuration as below.
    /dev/video 0
    /dev/video 1


Thanks,
Misaizu.

  • Let me try to answer all your questions one-by-one -

        No.1
        Is it possible to input 720x480x60fps(progressive mode) video  signal?

    [Vaibhav] Yes, HW does support it.


        No.2
        Is it possible to input NTSC format named "BTA T-1004"

    [Vaibhav] NTSC format through Video decoder (TVP5146) in BT656 format is already support in TI PSP releases. I have to check on BTA T-1104, personnaly I am not aware of this.


        No.3
        Is it possible to cropping 720x480 => 480x360

    [Vaibhav] Yes, it is possible.


        No.4
        Can we get IRQ signal of each NTSC field (Even,Odd)

    [Vaibhav] Yes, ISP-CCDC capable of giving interrupt on every VS/HS signal.


        No.5
        Freeze at following condition.
            
            Frame buffer(/dev/fb0) VRAM4Mbyte 800x600x32bit for Qt apply.
            Frame buffer(/dev/fb1) VRAM8Mbyte 1660x1200x32bit for direct drawing.
            Video buffer(/dev/fb0) Capture 720x480x16bit  for Video input.
            Video buffer(/dev/fb1) Display 800x600x32bit  for Video output.
            
            if cpu process became 100% work, display became blackout and UART
            dose not work after about 10 minutes.

            It need hard reset to re-start cpu.

            Is there any ideas to avoid Freeze?!


    [Vaibhav] Does it only happen if you load the cpu to 100%? What happens, if you keep your system idle? I believe this 10 min is console timeout which is default Kernel setting. Can you try below options?

     - Pass in bootargs "consoleblank=0"

    OR

     - echo 0 > /sys/class/graphics/fb0/blank

       About Video Sample code      
            SDK 05.03.02, sample code "saUserPtrLoopBack.c" is using
            3 frame buffer as below.
            /dev/video 0
            /dev/video 1
            /dev/video 2
            Any way to change configuration as below.
            /dev/video 0
            /dev/video 1

    [Vaibhav] Not sure about your usecase here and I wouldn't recommend this, but you can do this. This is just a file at the end.

    Thanks,

    Vaibhav

  • Thank you Vaibhav.

    Please let me know a little more.

        No.1
        Is it possible to input 720x480x60fps(progressive mode) video  signal?

        [Vaibhav] Yes, HW does support it.

    [misaizu] We have AM3517_EVM. Can we try it on the AM3517_EVM.(720x480x60fps(progressive mode) video  signal)

        No.3
        Is it possible to cropping 720x480 => 480x360

        [Vaibhav] Yes, it is possible.

    [misaizu] Thank you.

        No.4
        Can we get IRQ signal of each NTSC field (Even,Odd)

        [Vaibhav] Yes, ISP-CCDC capable of giving interrupt on every VS/HS signal.

    [misaizu] Thank you.

        We use V4L2 Driver for Video Capture. In V4L2 drive, an interrupt occurs only to 1 time of timing in 2 times, Even and ODD.

        How to get an interrupt every Even and ODD on V4L2?

        No.5
        Sorry, it miswrote.

            Frame buffer(/dev/fb0) VRAM4Mbyte 800x600x32bit for Qt apply.
            Frame buffer(/dev/fb1) VRAM8Mbyte 1660x1200x32bit for direct drawing.
            Video buffer(/dev/video0) Capture 720x480x16bit  for Video input.
            Video buffer(/dev/video1) Display 800x600x32bit  for Video output.
            

            It does not freeze only by video.

            It is required for the application which performs write to the framebuffer0.

            If we don't use video capture, It  freeze as follows.

            Frame buffer(/dev/fb0) VRAM4Mbyte 800x600x32bit for Qt application.
            Frame buffer(/dev/fb1) VRAM8Mbyte 1660x1200x32bit for direct drawing.
            Frame buffer(/dev/fb2) VRAM4Mbyte 800x600x32bit for direct drawing.
           

            In this case, CPU load is not 100%

            We would like to avoid Freeze.

  • Hi

    I would like to update and confirm information more.

    No.1
        Is it possible to input 720x480x60fps(progressive mode) video  signal?

        [Vaibhav] Yes, HW does support it.

        [misaizu] We have EVM for AM3517. Is it possible to try this setting on EVM?  If yes, We want to know configuration.


    No.2 and No.3  Closed. Thank you Vaibhav-san

    No.4
        Can we get IRQ signal of each NTSC field (Even,Odd)

        [Vaibhav] Yes, ISP-CCDC capable of giving interrupt on every VS/HS signal.

        [misaizu] Could you give us more information because...
                          Input video signal of AM3517 is 60fps of Interlace signal, so ODD and Even field is one by one and 30 field per second each.
                          But IRQ signal is 30times per second only. I assume IRQ may activate for ODD (or Even) only.
                          We want to know configuration of resistor to get IRQ for 60times per second for each field.

    No.5
            Freeze at following condition.

            Frame buffer(/dev/fb0) VRAM4Mbyte 800x600x32bit for Qt apply.
            Frame buffer(/dev/fb1) VRAM8Mbyte 1660x1200x32bit for direct drawing.
            Video buffer(/dev/video0) Capture 720x480x16bit  for Video input.
            Video buffer(/dev/video1) Display 800x600x32bit  for Video output.

            If cpu process became 100% work, display became blackout and UART dose not work after about 10 minutes.
            It need hard reset to re-start cpu.       

            In case of using only video, It does not freeze.
           
            Other hand at following condition, it freeze without video capture.
            Frame buffer(/dev/fb0) VRAM4Mbyte 800x600x32bit for Qt application.
            Frame buffer(/dev/fb1) VRAM8Mbyte 1660x1200x32bit for direct drawing.
            Frame buffer(/dev/fb2) VRAM4Mbyte 800x600x32bit for direct drawing.
           
    In this case, CPU load is not 100%

    [Vaibhav] Does it only happen if you load the cpu to 100%? What happens, if you keep your system idle? I believe this 10 min is console timeout which is default Kernel setting. Can you try below options?

     - Pass in bootargs "consoleblank=0"

    OR

     - echo 0 > /sys/class/graphics/fb0/blank

    [Misaizu]
         It happen at load the cpu is less than 100%. It looks it may happen when the bus is busy not cpu.
         And some case, it freeze within several second. So I think it is not related to console timeout.

        We need some idea to avoid freeze.

    Thanks,
    Misaizu.