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 VIN port debug tool

Other Parts Discussed in Thread: TVP5158, AM5728

Hi,

Ti,there is a tvp5158 on the vin4a port of my custom am5728 board.I use the command to capture the video:

gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw,format=(string)YUY2, width=(int)720, height=(int)480' ! vpe num-input-buffers=8 ! queue ! kmssink --gst-debug=3

But it stop!What the reason would be?

And I want to know that whether any other way(somethings like dm8148 saLoopBack tool) to debug?I found that using the gst-launch-1.0 is not easy!

BR,

vefone

  • The software team have been notified. They will respond here.
  • Hello,

    You could check this wiki page:
    processors.wiki.ti.com/.../Processor_SDK_VIP_Driver

    Check dmabuftest demo.

    Could you try to increase  buffers?

    BR
    Margarita

  • Hi,

    Quote,I use "dmabuftest -s 36:480x272 -d /dev/video1 -c 720x480@YUYV",I can not see somethings on the display.

    I try "gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=4000 io-mode=4 ! 'video/x-raw,format=(string)YUY2, width=(int)720, height=(int)480' ! vpe num-input-buffers=8 ! queue ! kmssink --gst-debug=3",change the num-buffers to 4000,and it don't work too.

    BR,

    vefone

  • Hello,

    vefone said:
    gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=4000 io-mode=4 !

    Num-buffers property does not mean that you are increasing buffers. It means "capture 4000" frames.

    If it is not set it means that it will capture frames until ctrl+c.

    Could you try :

    gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=100 io-mode=4 ! 'video/x-raw,format=(string)YUY2, width=(int)720, height=(int)480' ! fakesink

    BR
    Margarita

  • Hi,

    Margarita,here are the result:

    BR,

    vefone

  • Hi,
    Margarita,are there any way to find what problem it is?

    Br,
    vefone
  • Hello,

    vefone said:
    Quote,I use "dmabuftest -s 36:480x272 -d /dev/video1 -c 720x480@YUYV",I can not see somethings on the display.

    Are you sure that 36 is the right connector ID?

    vefone said:
    gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=100 io-mode=4 !

    Could you try to set io-mode=2?

    BR
    Margarita

  • Hi,

    Margarita,I use the "modetest" to get the connector ID,here is the log:

    The resolution of my LCD is 480*272,is the connector ID right?

    After I set io-mode=2,the result is same as the "io-mode=4".

    Any idea? is there a v4l2 tools to test it?

    root@am57xx-evm:~# modetest
    trying to open device 'i915'...failed
    trying to open device 'radeon'...failed
    trying to open device 'nouveau'...failed
    trying to open device 'vmwgfx'...failed
    trying to open device 'omapdrm'...done
    Encoders:
    id crtc type possible crtcs possible clones
    31 0 TMDS 0x00000001 0x00000000
    35 38 TMDS 0x00000002 0x00000000

    Connectors:
    id encoder status name size (mm) modes encoders
    32 0 disconnected HDMI-A-1 0x0 0 31
    props:
    1 EDID:
    flags: immutable blob
    blobs:

    value:
    2 DPMS:
    flags: enum
    enums: On=0 Standby=1 Suspend=2 Off=3
    value: 0
    36 35 connected unknown-1 0x0 1 35
    modes:
    name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
    480x272 60 480 482 523 525 272 274 284 286 flags: nhsync, nvsync; type: preferred, driver
    props:
    1 EDID:
    flags: immutable blob
    blobs:

    value:
    2 DPMS:
    flags: enum
    enums: On=0 Standby=1 Suspend=2 Off=3
    value: 0

    CRTCs:
    id fb pos size
    34 0 (0,0) (0x0)
    0 0 0 0 0 0 0 0 0 flags: ; type:
    props:
    27 trans-key-mode:
    flags: enum
    enums: disable=0 gfx-dst=1 vid-src=2
    value: 0
    28 trans-key:
    flags: range
    values: 0 16777215
    value: 0
    29 background:
    flags: range
    values: 0 16777215
    value: 0
    30 alpha_blender:
    flags: range
    values: 0 1
    value: 0
    21 GAMMA_LUT:
    flags: blob
    blobs:

    value:
    22 GAMMA_LUT_SIZE:
    flags: immutable range
    values: 0 4294967295
    value: 256
    23 rotation:
    flags: bitmask
    values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
    value: 1
    24 zorder:
    flags: range
    values: 0 3
    value: 0
    38 44 (0,0) (480x272)
    480x272 60 480 482 523 525 272 274 284 286 flags: nhsync, nvsync; type: preferred, driver
    props:
    27 trans-key-mode:
    flags: enum
    enums: disable=0 gfx-dst=1 vid-src=2
    value: 0
    28 trans-key:
    flags: range
    values: 0 16777215
    value: 0
    29 background:
    flags: range
    values: 0 16777215
    value: 0
    30 alpha_blender:
    flags: range
    values: 0 1
    value: 0
    21 GAMMA_LUT:
    flags: blob
    blobs:

    value:
    22 GAMMA_LUT_SIZE:
    flags: immutable range
    values: 0 4294967295
    value: 256
    23 rotation:
    flags: bitmask
    values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
    value: 1
    24 zorder:
    flags: range
    values: 0 3
    value: 0

    Planes:
    id crtc fb CRTC x,y x,y gamma size possible crtcs
    33 0 0 0,0 0,0 0 0x00000001
    formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24
    props:
    5 type:
    flags: immutable enum
    enums: Overlay=0 Primary=1 Cursor=2
    value: 1
    23 rotation:
    flags: bitmask
    values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
    value: 1
    24 zorder:
    flags: range
    values: 0 3
    value: 0
    25 global_alpha:
    flags: range
    values: 0 255
    value: 255
    26 pre_mult_alpha:
    flags: range
    values: 0 1
    value: 0
    37 38 44 0,0 0,0 0 0x00000002
    formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24 NV12 YUYV UYVY
    props:
    5 type:
    flags: immutable enum
    enums: Overlay=0 Primary=1 Cursor=2
    value: 1
    23 rotation:
    flags: bitmask
    values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
    value: 1
    24 zorder:
    flags: range
    values: 0 3
    value: 0
    25 global_alpha:
    flags: range
    values: 0 255
    value: 255
    26 pre_mult_alpha:
    flags: range
    values: 0 1
    value: 0
    39 0 0 0,0 0,0 0 0x00000003
    formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24 NV12 YUYV UYVY
    props:
    5 type:
    flags: immutable enum
    enums: Overlay=0 Primary=1 Cursor=2
    value: 0
    23 rotation:
    flags: bitmask
    values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
    value: 1
    24 zorder:
    flags: range
    values: 0 3
    value: 2
    25 global_alpha:
    flags: range
    values: 0 255
    value: 255
    26 pre_mult_alpha:
    flags: range
    values: 0 1
    value: 0
    40 0 0 0,0 0,0 0 0x00000003
    formats: RG16 RX12 XR12 RA12 AR12 XR15 AR15 RG24 RX24 XR24 RA24 AR24 NV12 YUYV UYVY
    props:
    5 type:
    flags: immutable enum
    enums: Overlay=0 Primary=1 Cursor=2
    value: 0
    23 rotation:
    flags: bitmask
    values: rotate-0=0x1 rotate-90=0x2 rotate-180=0x4 rotate-270=0x8 reflect-x=0x10 reflect-y=0x20
    value: 1
    24 zorder:
    flags: range
    values: 0 3
    value: 3
    25 global_alpha:
    flags: range
    values: 0 255
    value: 255
    26 pre_mult_alpha:
    flags: range
    values: 0 1
    value: 0

    Frame buffers:
    id size pitch

    BR,
    vefone