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.

SK-AM62P-LP: How to reduce CPU usage during video

Part Number: SK-AM62P-LP
Other Parts Discussed in Thread: AM62P

Tool/software:

Hi i'm using this pipeline

root@am62pxx-evm-lohr-recovery-mode:~# gst-launch-1.0 -v v4l2src device=/dev/video3 ! video/x-raw,format=UYVY,width=1280,height=720,framerate=30/1 ! videoconvert ! video/x-raw, width=1
280, height=720, framerate=30/1, format=NV12 ! waylandsink sync=false

but my CPU usage is too high.

How can I low the cpu usage?

Att.

  • Hi Sergio,

    could you please replace software 'videoconvert' with hardware accelerated plugin 'tiovxcolorconvert' . 

    color conversion tasks to dedicated hardware accelerators on TI SoCs, leading to significantly lower CPU utilization and higher performance compared to software-based conversions.

  • Hi, thank you for your quick response.

    when I run my pipeline with 'tiovxcolorconvert', I got this output 

    root@am62pxx-evm:~# gst-launch-1.0 -v \
    > v4l2src device=/dev/video3 ! video/x-raw,format=UYVY,width=1280,height=720,framerate=30/1 ! \
    > tiovxcolorconvert ! video/x-raw, width=1280, height=720, framerate=30/1, format=NV12 ! waylandsink sync=false
    WARNING: erroneous pipeline: no element "tiovxcolorconvert"

    root@am62pxx-evm:~# gst-inspect-1.0 tiovxcolorconvert
    No such element or plugin 'tiovxcolorconvert'

    How can I enable this tiovxcolorconvert?

    Best regards,

  • Hi Sergio,

    tiovxcolorconvert is not present on  AM62P. 

    Can you share the output when you don't use videoconvert and use kmssink as the display sink instead of waylandsink. 

    I guess, waylandsink is doing an additional videoconvert before displaying the contents.

    Best Regards,

    Suren

  • Hi Suren

    here is the output 

    root@am62pxx-evm:~# gst-launch-1.0 -v v4l2src device=/dev/video3 ! video/x-raw,format=UYVY,width=1280,height=720,framerate=30/1 ! videoconvert ! video/x-raw, width=1280, height=720, framerate=30/1, format=NV12 ! kmssink
    WARNING: erroneous pipeline: no element "kmssink"

  • What version of SDK are you testing with Sergio?

    kmssink driver-name=tidss sync=false 

    Also, I want you to remove the videoconvert from the pipeline, when using the above element (kmssink)

    Best Regards,

    Suren