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.

Graphics overlay on Video in DM814x (Matrix GUI application upon saLoopBack Video Playback)

Hi I would like to have matrix GUI application upon saLoopBack

I understand that saLoopBack cannot be used with Qt Application because both uses /dev/fbo

Hence by previous post suggestion I changed in saLoopBack to open /dev/fb1 device

I get this error

root@dm814x-evm:/usr/bin# ./saLoopBack
VPSS_GRPX : please stop grpx0 before continue.
Driver Name: ti81xxvin
Driver bus info: TI81xx Platform
Driver is capable of doing capture
VPSS_DCTRL: failed to disable the venc.
VPSS_DCTRL: failed to disable hdmi venc
saLoopBack:
Mode set is 720P60
VPSS_DCTRL: stop venc before changing mode
Driver Name:
Driver bus info: Ð@@`
=============================================================
Capture Format:
=============================================================
fmt.type = 1
fmt.width = 1280
fmt.height = 720
fmt.pixelformat = 1448695129
fmt.bytesperline = 2560
fmt.sizeimage = 1843200
=============================================================
=============================================================
Display Format:
=============================================================
fmt.type = 2
fmt.width = 1280
fmt.height = 720
fmt.pixelformat = 1448695129
fmt.bytesperline = 2560
fmt.sizeimage = 1843200
=============================================================
Segmentation fault
root@dm814x-evm:/usr/bin#

What changes are to be done in saLoopBack to support use /dev/fb1? I want Graphcis to be on top of video?

  • Hello,

    You should stop the graphics plane before to run it.

    You should load load-hd-v4l2-firmware.sh the as well.

    Best Regards,

    Margarita

  • I did load the v4l2 firmware and I had already got saLoopBack working

    My issue is , I wanted saLoopBack to use /dev/fb1 instead of /dev/fb0

    Hence I changed the code in setupbuffers to use /dev/fb1 instead of /dev/fb0

    That gave me the above error and Segmentation Fault.

    I read from VPSS User Guide, that we need to add memory for graphics pipeline 1 and 2 while performing insmod of ti81xxfb.ko

    Could that be an issue? Generally How much memory could be allocated for Graphics pipeline 1

  • Hello,

    Note:

    HDMI Kernel module is required to view the output from On-Chip HDMI, see next section.

    Application need develop their own software component to support the external display device connected with DVO2 VENC.

    Add debug=1 to enable the debug function of vpss.ko,ti81xxfb.ko, and ti81xxvo.ko

    Application need assign the memroy size when loading ti81xxfb.ko if accessing /dev/fb1 and /dev/fb2 nodes

       $ insmod ti81xxfb.ko vram=0:XXM,1:YYM,2:ZZM

    Best Regards,

    Margarita

  • Thanks. Now Iam able to bring up graphics overlay in /dev/fb1 , maintaining saLoopBack to use fb0
    The following were the changes made in load-hd-firmware.sh
    configure_fb1_hdmi()
    {
    echo "Configuring fb1 to HDMI"
    #Enable fb1
    echo 1 > /sys/devices/platform/vpss/graphics1/enabled
    #Divert fb1 to HDMI
    echo 1:hdmi > /sys/devices/platform/vpss/graphics1/nodes
    #Disable HDMI DIsplay
    #echo 0 > /sys/devices/platform/vpss/display0/enabled
    #Reshuffle the display order. Give fb1 highest
    echo 1:0/1/3/2 > /sys/devices/platform/vpss/display0/order
    #Enable HDMi Display
    #echo 1 > /sys/devices/platform/vpss/display0/enabled
    }

    And then allocated 4MB for /dev/fb1

    In saLoopBack I have set the same resolution as incoming Video to get a proper UI