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.

Running Gstreamer with Ducati on ubuntu server

Hi,

I Downloaded the ubuntu-12.04-preinstalled-server-armhf+omap4.img.gz as mentioned in the http://omapedia.org/wiki/Ubuntu_Pre-built_Binaries_Guide . I followed the instruction and added the ppa:tiomap-dev/release ppa and installed ubuntu-omap4-extras.

When tried to run 

gst-launch -e videotestsrc ! "video/x-raw-yuv, width=640, height=480,framerate=30/1" ! queue ! ffmpegcolorspace ! ducatih264enc ! h264parse ! qtmux ! filesink location=sample.mp4

I get the following error

Setting pipeline to PAUSED ...
libdce-x11.c:64: dce_auth_x11 info: attempting to open X11 connection
libdce-x11.c:67: dce_auth_x11 error: Could not open display
libdce-wayland.c:130: dce_auth_wayland info: attempting to open wayland connection
error: XDG_RUNTIME_DIR not set in the environment.
libdce-wayland.c:133: dce_auth_wayland error: Could not open display
libdce.c:447: init info: no X11/wayland, fallback to opening DRM device directly
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...

apparently it is trying to connect to Xserver. However, this is ubuntu server and Xserver is not insatlled/running.

Does that mean Gstreamer +Duacti will only work on Ubuntu desktop edition?

Note: I have updated all the packages and using the latest versions of them as of date.

  • hi,

    you need to make sure that the 'user' that is running this command is part of the group 'video'. libdce will attempt to use X or Wayland, otherwise it will directly access /dev/dri/card0 and that needs special permissions:

    $ ls -l /dev/dri/card0
    crw-rw----+ 1 root video 226, 0 Jan  2 20:22 /dev/dri/card0

    I was able to reproduce the same issue with a user not in this group, but adding the group fixed it.

    nicolas

  • Hi Nicolas,

    Thanks for the reply.

    You are right the user was not added to the group. Now I added the user to the group like this

     sudo usermod -a -G video  username

    For the same command am getting an error like this.

    Setting pipeline to PAUSED ...
    libdce-x11.c:64: dce_auth_x11 info: attempting to open X11 connection
    libdce-x11.c:67: dce_auth_x11 error: Could not open display
    libdce-wayland.c:130: dce_auth_wayland info: attempting to open wayland connection
    error: XDG_RUNTIME_DIR not set in the environment.
    libdce-wayland.c:133: dce_auth_wayland error: Could not open display
    libdce.c:447: init info: no X11/wayland, fallback to opening DRM device directly
    libdce.c:459: init error: could not get plugin ioctl base: -22
    ERROR: Pipeline doesn't want to pause.
    Setting pipeline to NULL ...
    Freeing pipeline ...

    I have bolded the line that got added newly. As you described, the libdce falls back to directly openning device, but throws ioctl error. Any suggestions?

  • Hi Nicolas,

    Its working now.

    I followed the instruction provided here.

    https://bugs.launchpad.net/ubuntu-omap4-extras-multimedia/+bug/1046226

    also check https://groups.google.com/forum/?fromgroups=#!topic/pandaboard/ZnFoQkvD3Pg.

    Now it s working. booloader was calling the kernel with outdated parameters.

    Quoting from the first link.

    You need in fact to edit as root the file /boot/boot.script
    update the bootargs line as follow:
    setenv bootargs ro elevator=noop mem=1G@0x80000000 root=UUID=4dd037b6-24e8-4602-9caa-f13574fb6709 fixrtc quiet splash

    You will then need to execute: sudo flash-kernel
    Finally reboot