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.

AM62A7-Q1: Diffrent result framerate

Part Number: AM62A7-Q1

Tool/software:

Hi,

+-----------------------------------------------------------------------------------+
|element                       latency      out-latancy      out-fps     frames     |
+-----------------------------------------------------------------------------------+
|v4l2src0                      0.48         50.20            19          325        |
|capsfilter0                   0.48         50.20            19          325        |
+-----------------------------------------------------------------------------------+
^CCtrl-C3 / 99:99:99.
t0:00:19.4 / 99:99:99./edgeai-gst-apps/scripts/gst_tracers# ps 0:00:17.9 / 99:99:99.
   1018 ttyS2    00:00:01 gst-launch-1.0
0:00:22.2 / 99:99:99..edgeai-gst-apps/scripts/gst_tracers# 0:00:19.6 / 99:99:99.
root@am62axx-evm:/opt/edgeai-gst-apps/scripts/gst_tracers# ls
README.md  parse_gst_tracers.py
[1]+  Killed                  GST_DEBUG_FILE=/run/trace.log GST_DEBUG_NO_COLOR=1 GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=element+pipeline)" gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw, format=UYVY, width=640, height=480 ! kmssink driver-name=tidss sync=false -ev
root@am62axx-evm:/opt/edgeai-gst-apps/scripts/gst_tracers# GST_DEBUG_FILE=/run/trace.log GST_DEBUG_NO_COLOR=1 GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=element+pipeline)" gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw, format=UYVY, width=640, height=480 ! kmssink driver-name=tidss sync=false -ev &^C
root@am62axx-evm:/opt/edgeai-gst-apps/scripts/gst_tracers# kmsprint 
Connector 0 (40) DPI-1 (connected)
  Encoder 0 (39) DPI
    Crtc 0 (38) 640x480@39.92 24.544 640/3/1/514/? 480/3/2/46/? 40 (39.92) 0x0 0x48
      Plane 0 (31) fb-id: 48 (crtcs: 0) 0,0 640x480 -> 0,0 640x480 (AR12 AB12 RA12 RG16 BG16 AR15 AB15 AR24 AB24 RA24 BA24 RG24 BG24 AR30 AB30 XR12 XB12 RX12 XR15 XB15 XR24 XB24 RX24 BX24 XR30 XB30 YUYV UYVY NV12)
        FB 48 640x480

We are currently using a panel and taking camera data as input and outputting it to the panel.

The input frame is confirmed to be 29~30fps, and the output frame is confirmed to be 19fps as above.

Can you tell me where the problem is?

Regards,

Kim

  • Hi Kim,

    Could you let us know what Camera sensor are you connecting to AM62A on your setup? 

    Also, I assume you are using the latest SDK (9.2) release in your testing.

    Best Regards,

    Suren

  • Hi

    Our camera is a thermal imaging camera that transmits data from the sensor to the Toshiba chip via TDA3X.

    We are receiving bt656(yuv422) data coming from a Toshiba chip.

    Testing is ongoing on 9.1 SDK.

    Regards,

    Kim

  • Kim,

    Could you add these to your pipeline and re-run. 

    io-mode=5 ! queue max-size-buffers=1 leaky=2  

    So modified pipeline would be like the one below:

    GST_DEBUG_FILE=/run/trace.log GST_DEBUG_NO_COLOR=1 GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=element+pipeline)" gst-launch-1.0 v4l2src device=/dev/video3  io-mode=5 ! queue max-size-buffers=1 leaky=2  ! video/x-raw, format=UYVY, width=640, height=480 ! kmssink driver-name=tidss sync=false 

    Best Regards,

    Suren

  • Hi

    I used the command you gave me, but it seems to be the same.
    When using the yavta command, it appears close to 30fps as shown in the log below.

    +-----------------------------------------------------------------------------------+
    |element                       latency      out-latancy      out-fps     frames     |
    +-----------------------------------------------------------------------------------+
    |queue0                        15.84        50.10            19          450        |
    |v4l2src0                      16.47        50.10            19          450        |
    |capsfilter0                   0.63         50.10            19          450        |
    +-----------------------------------------------------------------------------------+
    Ctrl-C:23.6 / 99:99:99.
    t0:00:29.8 / 99:99:99.edgeai-gst-apps/scripts/gst_tracers# 0:00:24.2 / 99:99:99.
    -sh: gre: command not found
    t0:00:32.4 / 99:99:99..dgeai-gst-apps/scripts/gst_tracers# 0:00:30.0 / 99:99:99.
       1015 ttyS2    00:00:02 gst-launch-1.0
    0:00:34.6 / 99:99:99..edgeai-gst-apps/scripts/gst_tracers# 0:00:32.5 / 99:99:99.
    root@am62axx-evm:/opt/edgeai-gst-apps/scripts/gst_tracers# GST_DEBUG_FILE=/run/trace.log GST_DEBUG_NO_COLOR=1 GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=element+pipeline)" gst-launch-1.0 v4l2src device=/dev/video3  io-mode=5 ! queue max-size-buffers=1 leaky=2  ! video/x-raw, format=UYVY, width=640, height=480 ! kmssink driver-name=tidss sync=false  &
    

    root@am62axx-evm:/opt/edgeai-gst-apps/scripts/gst_tracers# yavta -c1000 -fUYVY -s640x480 /dev/video3
    Device /dev/video3 opened.
    Device `j721e-csi2rx' on `platform:30102000.ticsi2rx' (driver 'j721e-csi2rx') supports video, capture, without mplanes.
    Video format set: UYVY (59565955) 640x480 (stride 1280) field none buffer size 614400
    Video format: UYVY (59565955) 640x480 (stride 1280) field none buffer size 614400
    8 buffers requested.
    length: 614400 offset: 0 timestamp type/source: mono/EoF
    Buffer 0/0 mapped at address 0xffff8472a000.
    length: 614400 offset: 614400 timestamp type/source: mono/EoF
    Buffer 1/0 mapped at address 0xffff84694000.
    length: 614400 offset: 1228800 timestamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xffff845fe000.
    length: 614400 offset: 1843200 timestamp type/source: mono/EoF
    Buffer 3/0 mapped at address 0xffff84568000.
    length: 614400 offset: 2457600 timestamp type/source: mono/EoF
    Buffer 4/0 mapped at address 0xffff844d2000.
    length: 614400 offset: 3072000 timestamp type/source: mono/EoF
    Buffer 5/0 mapped at address 0xffff8443c000.
    length: 614400 offset: 3686400 timestamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xffff843a6000.
    length: 614400 offset: 4300800 timestamp type/source: mono/EoF
    Buffer 7/0 mapped at address 0xffff84310000.
    0 (0) [-] any 0 614400 B 129.604070 129.604102 22.893 fps ts mono/EoF
    1 (1) [-] any 1 614400 B 129.637425 129.637450 29.981 fps ts mono/EoF
    2 (2) [-] any 2 614400 B 129.670791 129.670821 29.971 fps ts mono/EoF
    3 (3) [-] any 3 614400 B 129.704162 129.704192 29.966 fps ts mono/EoF
    4 (4) [-] any 4 614400 B 129.737530 129.737567 29.969 fps ts mono/EoF
    5 (5) [-] any 5 614400 B 129.770917 129.771028 29.952 fps ts mono/EoF
    6 (6) [-] any 6 614400 B 129.804284 129.804371 29.970 fps ts mono/EoF
    7 (7) [-] any 7 614400 B 129.837657 129.837747 29.964 fps ts mono/EoF
    8 (0) [-] any 8 614400 B 129.871018 129.871104 29.975 fps ts mono/EoF
    9 (1) [-] any 9 614400 B 129.904385 129.904472 29.970 fps ts mono/EoF
    10 (2) [-] any 10 614400 B 129.937752 129.937840 29.970 fps ts mono/EoF
    11 (3) [-] any 11 614400 B 129.971112 129.971172 29.976 fps ts mono/EoF
    12 (4) [-] any 12 614400 B 130.004490 130.004577 29.960 fps ts mono/EoF
    13 (5) [-] any 13 614400 B 130.037856 130.037942 29.971 fps ts mono/EoF
    14 (6) [-] any 14 614400 B 130.071223 130.071309 29.970 fps ts mono/EoF
    15 (7) [-] any 15 614400 B 130.104591 130.104677 29.969 fps ts mono/EoF
    16 (0) [-] any 16 614400 B 130.137964 130.138052 29.964 fps ts mono/EoF
    17 (1) [-] any 17 614400 B 130.171330 130.171416 29.971 fps ts mono/EoF
    18 (2) [-] any 18 614400 B 130.204693 130.204778 29.973 fps ts mono/EoF
    19 (3) [-] any 19 614400 B 130.238061 130.238146 29.969 fps ts mono/EoF
    20 (4) [-] any 20 614400 B 130.271426 130.271512 29.972 fps ts mono/EoF
    21 (5) [-] any 21 614400 B 130.304801 130.304890 29.963 fps ts mono/EoF
    22 (6) [-] any 22 614400 B 130.338169 130.338256 29.969 fps ts mono/EoF
    23 (7) [-] any 23 614400 B 130.371531 130.371616 29.974 fps ts mono/EoF
    24 (0) [-] any 24 614400 B 130.404899 130.404985 29.969 fps ts mono/EoF
    25 (1) [-] any 25 614400 B 130.438267 130.438352 29.969 fps ts mono/EoF
    26 (2) [-] any 26 614400 B 130.471633 130.471719 29.971 fps ts mono/EoF
    27 (3) [-] any 27 614400 B 130.505004 130.505089 29.966 fps ts mono/EoF
    28 (4) [-] any 28 614400 B 130.538370 130.538456 29.971 fps ts mono/EoF
    29 (5) [-] any 29 614400 B 130.571737 130.571821 29.970 fps ts mono/EoF
    30 (6) [-] any 30 614400 B 130.605095 130.605153 29.978 fps ts mono/EoF
    31 (7) [-] any 31 614400 B 130.638499 130.638608 29.937 fps ts mono/EoF
    32 (0) [-] any 32 614400 B 130.671843 130.671930 29.990 fps ts mono/EoF
    33 (1) [-] any 33 614400 B 130.705214 130.705307 29.966 fps ts mono/EoF
    34 (2) [-] any 34 614400 B 130.738576 130.738662 29.974 fps ts mono/EoF
    35 (3) [-] any 35 614400 B 130.771942 130.772096 29.971 fps ts m^C
    

    Regards,

    Kim

  • Kim, 

    As an experiment, can you run the gstreamer command with waylandsink as the display sink instead of kmssink and share the output?

    GST_DEBUG_FILE=/run/trace-way.log GST_DEBUG_NO_COLOR=1 GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=element+pipeline)" gst-launch-1.0 -v v4l2src device=/dev/video3 ! "video/x-raw, width=640, height=480, framerate=30/1" ! waylandsink sync=false

    Best Regards,

    Suren

  • Hi

    When using waylandsink, 30fps is confirmed, but an error occurs on the FB side and the video is not displayed on the panel.

    +-----------------------------------------------------------------------------------+
    |element                       latency      out-latancy      out-fps     frames     |
    +-----------------------------------------------------------------------------------+
    |capsfilter0                   0.17         31.36            31          17         |
    |videotestsrc0                 20.85        31.19            32          17         |
    |videoconvert0                 20.68        31.19            32          17         |
    +-----------------------------------------------------------------------------------+
    ^CCtrl-C6 / 99:99:99.
    st0:00:21.4 / 99:99:99.dgeai-gst-apps/scripts/gst_tracers# 0:00:17.4 / 99:99:99.
       1499 ttyS2    00:00:01 gst-launch-1.0
    0:00:29.4 / 99:99:99..edgeai-gst-apps/scripts/gst_tracers# 0:00:21.6 / 99:99:99.
    root@am62axx-evm:/opt/edgeai-gst-apps/scripts/gst_tracers# GST_DEBUG_FILE=/run/trace-way.log GST_DEBUG_NO_COLOR=1 GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=element+pipeline)" gst-launch-1.0 -v v4l2src device=/dev/video3 ! "video/x-raw, width=640, height=480, framerate=30/1" ! waylandsink sync=false &
    [3] 1535
    [2]   Killed                  GST_DEBUG_FILE=/run/trace-way.log GST_DEBUG_NO_COLOR=1 GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=element+pipeline)" gst-launch-1.0 -v v4l2src device=/dev/video3 ! "video/x-raw, width=640, height=480, framerate=30/1" ! waylandsink sync=false
    root@am62axx-evm:/opt/edgeai-gst-apps/scripts/gst_tracers# Setting pipeline to PAUSED ...
    [ 2883.133364] audit: type=1006 audit(1651236822.952:39): pid=1539 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=8 res=1
    [ 2883.146219] audit: type=1300 audit(1651236822.952:39): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffc04961b8 a2=4 a3=0 items=0 ppid=1 pid=1539 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=8 comm="(systemd)" exe="/lib/systemd/systemd" key=(null)
    [ 2883.172584] audit: type=1327 audit(1651236822.952:39): proctitle="(systemd)"
    [ 2883.479044] audit: type=1006 audit(1651236823.300:40): pid=1537 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=9 res=1
    [ 2883.491656] audit: type=1300 audit(1651236823.300:40): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffc04961b8 a2=4 a3=0 items=0 ppid=1 pid=1537 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=9 comm="(weston)" exe="/lib/systemd/systemd" key=(null)
    [ 2883.517152] audit: type=1327 audit(1651236823.300:40): proctitle="(weston)"
    Pipeline is live and does not need PREROLL ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)30/1, format=(string)YUY2, interlace-mode=(string)progressive, colorimetry=(string)2:4:16:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)30/1, format=(string)YUY2, interlace-mode=(string)progressive, colorimetry=(string)2:4:16:1
    /GstPipeline:pipeline0/GstWaylandSink:waylandsink0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)30/1, format=(string)YUY2, interlace-mode=(string)progressive, colorimetry=(string)2:4:16:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)30/1, format=(string)YUY2, interlace-mode=(string)progressive, colorimetry=(string)2:4:16:1
    Redistribute latency...
    [ 2884.265779] audit: type=1701 audit(1651236824.084:41): auid=1000 uid=1000 gid=1000 ses=9 pid=1537 comm="weston" exe="/usr/bin/weston" sig=11 res=1
    [ 2884.290952] audit: type=1334 audit(1651236824.112:42): prog-id=21 op=LOAD
    [ 2884.297860] audit: type=1334 audit(1651236824.116:43): prog-id=22 op=LOAD
    [ 2887.971917] detected fb_set_par error, error code: -16
    [ 2888.035352] audit: type=1334 audit(1651236827.856:44): prog-id=22 op=UNLOAD
    ^C00:05.4 / 99:99:99.
    st0:00:10.3 / 99:99:99.dgeai-gst-apps/scripts/gst_tracers# 0:00:05.5 / 99:99:99.
       1535 ttyS2    00:00:00 gst-launch-1.0
    0:00:13.3 / 99:99:99..edgeai-gst-apps/scripts/gst_tracers# 0:00:10.5 / 99:99:99.
    root@am62axx-evm:/opt/edgeai-gst-apps/scripts/gst_tracers# 
    

    Regards,

    KIM