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.

Linux: dmabuftest not working with wayland

Other Parts Discussed in Thread: TVP5158

Tool/software: Linux

Hi all,

We are using the below command and it is not working.

dmabuftest -w 800x480 -d /dev/video0 -c 720x288@YUYV

 We get the following output & there is a crash.

dmabuftest -w 800x480 -d /dev/video0 -c 720x288@YUYV
Opening Display..
wayland display opened

wayland registries obtained

Segmentation fault (core dumped).

Can you please check this issue ? Is there any patches need to apply on kernel side or weston side ?

Regards,

Gokul

  • Hi Gokul,
    Looks like weston is configured for ivi-shell in your case. Can you confirm this from /etc/weston.ini ?,if it is ivi-shell then segmentation fault is expected.
    dmabuftest and all other applications in omapdrmtest still use desktop-shell as default shell , ivi-shell support is not integrated yet.

    Thanks
    Ram
  • Hi Ram,
    You are correct. we are using IVI-shell.
    I tried With Desktop-shell, it is working.

    Regards,
    Gokul
  • Hi Ram,

    We are trying via gstreamer with below command.


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


    I am getting the below output . But there is no data captured in display.

    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock


    Regards,
    Gokul
  • Hi Gokul,
    Node /dev/video0 is for vpe, for vip channels it starts from /dev/video1.
    Please change it to device to /dev/video1 and give a try
  • Hi Ram,

    Tried with /dev/video1 , it is not working. Is it possible to connect the source from VIP to display without VPE. ?

    What is the gstreamer command used ?

    Regards
    Gokul

  • Hi Gokul,
    Yes, vpe here is being used for YUY to NV12 conversion. If you don't use vpe output on display looks junk since waylandsink doesn't support YUY drm buffers.
    Are you seeing any errors in the pipeline? I have a set up for interlaced capture 720x240 NTSC with tvp5158,
    here the pipeline which works for me is
    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 ! waylandsink

    and on display bottom half of window is green. There is issue with v4l2src plugin.

    Ram
  • Hi Ram,

    We don't have /dev/video1 interface in my target . Only /dev/video0 is there.


    i tried with video1, I get the below output.

    Setting pipeline to PAUSED ...
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Cannot identify device '/dev/video1'.
    Additional debug info:
    /home/buildserver/work/jenkins/var/lib/jenkins/workspace/MMT-Advanced-Wintertest-Release/project/elina-distro/473A-build/tmp/work/cortexa15hf-vfp-neon-elina-linux-gnueabi/gstreamer1.0-plugins-good/1.6.3-r0/gst-plugins-good-1.6.3/sys/v4l2/v4l2_calls.c(606): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    system error: No such file or directory


    With Video0, i get the below output.

    root@mmt2020-a880:~# gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1000 io-mode=4 ! 'video/x-raw, format=(string)YUY2, width=(int)720, height=(int)480' ! vpe ! waylandsink

    Setting pipeline to PAUSED ...at=(string)YUY2, width=(int)720, height=(int)480'
    Pipeline is live and does not need PREROLL ... width=(int)720, height=(int)480' !
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock


    Regards,
    Gokul
  • Hi Gikul,
    What is the SDK you are using?