uridecodebin not found in installed gstreamer1.0 - uri

I am trying the examples from gstreamer SDC docs.
In particular this page, suggest to use URIDecodebin like this:
gst-launch-1.0 uridecodebin uri=file:///test.ogg ! ! audioconvert \
! audioresample ! autoaudiosink
But I get this error immediately:
ERROR: pipeline could not be constructed: no element "uridecodebin".
I followed this installation instruction for Ubuntu.
I got this stuff installed already:
i gstreamer1.0-alsa - GStreamer plugin for ALSA
i gstreamer1.0-clutter - Clutter PLugin for GStreamer 1.0
i gstreamer1.0-libav - libav plugin for GStreamer
i gstreamer1.0-nice - ICE library (GStreamer plugin)
i gstreamer1.0-plugins-bad - GStreamer plugins from the "bad" set
i gstreamer1.0-plugins-bad-faad - GStreamer faad plugin from the "bad" set
i gstreamer1.0-plugins-bad-videoparsers - GStreamer videoparsers plugin from the "bad" set
i gstreamer1.0-plugins-base - GStreamer plugins from the "base" set
i gstreamer1.0-plugins-base-apps - GStreamer helper programs from the "base" set
i gstreamer1.0-plugins-good - GStreamer plugins from the "good" set
i gstreamer1.0-plugins-ugly - GStreamer plugins from the "ugly" set
i gstreamer1.0-pulseaudio - GStreamer plugin for PulseAudio
i gstreamer1.0-tools - Tools for use with GStreamer
i gstreamer1.0-x - GStreamer plugins for X11 and Pango
i libgstreamer1.0-0 - Core GStreamer libraries and elements
i libgstreamer1.0-0:i386 - Core GStreamer libraries and elements
i phonon-backend-gstreamer1.0 - transitional package
How to get uridecodebin installed? Or is it deprecated and should be ignored?

You have two errors in your pipe
one is the wrong path file:///test.ogg (you need to have absolute path),
the part with two ! ! with no element in the middle..
This is working for me (expecting you will execute from the location of test.ogg):
gst-launch-1.0 uridecodebin uri=file://`pwd`/test.ogg ! audioconvert ! audioresample ! autoaudiosink
uridecodebin is certainly not deprecated..
you can check if you have it with command:
gst-inspect-1.0 uridecodebin - shell output details about the element

Related

'Building' has encountered a problem. An internal error occurred during. "Building"

I tried to create a Robot project , but I am getting this error : An internal error occurred during: "Building".
Unable to communicate with XML-RPC server
I tried some solution , but didn't work , and now when I press OK , I can't access to the libraries and the files inside the projects...enter image description here
My installation is:
Eclipse 2021-06 (4.20.0)
RED - Robot Editor 0.9.5.202007241017
Robot Framework 5.0 (Python 3.10.4 )
You need to check comparability of RED Editor and the Robot Framework. I think, RED doesn't support latest RF version. Check more: http://nokia.github.io/RED/help/whats_new/0_9_5.html
Also, check the URL that eclipse trying to communicate inside Help>>Available Software to update/install new software.
you need to downgrade the Robotframework to version 3 and lower, you can do that using that command
pip install robotframework==3.1.1 <version>

Crosscompile qt6 for raspberry pi 4

I have read this qt6 doc, so I start to play with this, but maybe the docs leaks some infos and the configure step fails quickly with this error:
CMake Error at cmake/QtBaseConfigureTests.cmake:21 (message):
Failed to compile architecture detection file.
Call Stack (most recent call first):
cmake/QtBaseConfigureTests.cmake:120 (qt_run_config_test_architecture)
cmake/QtBaseConfigureTests.cmake:133 (qt_run_qtbase_config_tests)
CMakeLists.txt:68 (include)
My cmake command is here:
'/usr/local/bin/cmake' '-DQT_HOST_PATH=/opt/qt6/6.0.1/gcc_64' '-DCMAKE_TOOLCHAIN_FILE=/home/mattia/raspi4-qt6/qt-cross/toolchain.cmake' '-DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON' '-DCMAKE_INSTALL_PREFIX=/usr/local/qt_v6.0.1' '-DCMAKE_STAGING_PREFIX=/home/mattia/raspi4-qt6/build/qt_v6.0.1' '-DQT_BUILD_EXAMPLES=FALSE' '-DQT_BUILD_TESTS=FALSE' '-DCMAKE_BUILD_TYPE=Release' '-DINPUT_opengl=es2' '-DINPUT_eglfs=ON' '-G' 'Ninja' '/home/mattia/raspi4-qt6/src/qtbase
While mine toolchaine.cmake is here:
cmake_minimum_required(VERSION 3.18)
include_guard(GLOBAL)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR armv8)
set(TARGET_SYSROOT /home/mattia/raspi4-qt6/sysroot)
set(CROSS_COMPILER /home/mattia/raspi4-qt6/tools/cross-pi-gcc-10.2.0-2/bin)
set(CMAKE_SYSROOT ${TARGET_SYSROOT})
set(CMAKE_C_COMPILER ${CROSS_COMPILER}/arm-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER ${CROSS_COMPILER}/arm-linux-gnueabihf-g++)
set(ENV{PKG_CONFIG_PATH} "")
set(ENV{PKG_CONFIG_LIBDIR} ${CMAKE_SYSROOT}/usr/lib/arm-gnueabihf/pkgconfig:${CMAKE_SYSROOT}/usr/share/pkgconfig)
set(ENV{PKG_CONFIG_SYSROOT_DIR} ${CMAKE_SYSROOT})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
The doc you linked worked properly for me. I added some more notes here: https://bugfreeblog.duckdns.org/2021/09/qt-6-on-raspberry-pi-on-eglfs.html. Maybe you can try with the toolchain I linked in the article.
I suppose that you are using Cygwin. I had same problem with cygwin, because ARM compiler not understand cygwin path /cygdrive/d/cygwin/home.....
For crosscompile qt6 on windows host use windows cmake and windows CMD. Cygwin is not needed..

JavaFx installaion returns Cannot perform operation. Computing alternate solutions, may take a while: 15/15

I am using
Windows 7 Ultimate edition
Java 10.0.2
Eclipse OXYGEN.3A (April 2018) Version: Oxygen.3a Release (4.7.3a)
When I try to install the JavaFx from the location http://download.eclipse.org/efxclipse/updates-released/1.2.0/site/
then I got the following
Cannot perform operation. Computing alternate solutions, may take a while: 15/15
Cannot complete the install because one or more required items could not be found.
Software being installed: e(fx)clipse - IDE - PDE 1.2.0.201501301049 (org.eclipse.fx.ide.pde.feature.feature.group 1.2.0.201501301049)
Missing requirement: JDT UI Tooling for JavaFX 1.2.0.201501301049 (org.eclipse.fx.ide.jdt.ui 1.2.0.201501301049) requires 'bundle org.eclipse.xtext.xbase.lib 2.7.1' but it could not be found
Cannot satisfy dependency:
From: e(fx)clipse - IDE - Basic 1.2.0.201501301049 (org.eclipse.fx.ide.basic.feature.feature.group 1.2.0.201501301049)
To: org.eclipse.fx.ide.jdt.ui [1.2.0.201501301049]
Cannot satisfy dependency:
From: e(fx)clipse - IDE - PDE 1.2.0.201501301049 (org.eclipse.fx.ide.pde.feature.feature.group 1.2.0.201501301049)
To: org.eclipse.fx.ide.basic.feature.feature.group 0.0.0
What requirement am I missing.
You do unterstand, that the version of e(fx)clipse you're attempting to install is basically years old!
For example check here - the updates-released section shows versions up to 3.3.0 with a fairly recent date feature_3.3.0.201805280700.
So either use this or use the marketplace entry (which seem to point to version 3.0.0) - drag and drop the install button into your running Eclipse instance or use the marketplace from within Eclipse itself (Help menu, as far as I recall or installable) and search for efxclipse.

How to support webp format images on imagemagick running on cloud functions for firebase?

I'm getting this error whenever I try to process an image with the webp format
Failed to blur image. { Error: Command failed: composite -gravity SouthWest /tmp/AppLogo.png /tmp/funny.webp /tmp/funny.webp
composite: delegate failed "dwebp" -pam "%i" -o "%o"' # error/delegate.c/InvokeDelegate/1310.
composite: unable to open image/tmp/magick-255i74iCxeR7SM': No such file or directory # error/blob.c/OpenBlob/2712.
If I should to install the right delegates for this format how should I write firebase Command CLI to do that for me ?Please help.
AskFirebase
The ImageMagick binary provided by Cloud Functions doesn't support webp, and that's not likely to change in the near future. Consider instead providing your own compiled ImageMagick and bundle it with your functions. Or, even better, use a node module that natively supports webp, such as Sharp (which also claims to be faster than ImageMagick). There is official sample code that uses this module.

Installing terminator on cygwin

After going through a lot of sites about best terminal for system admins I was trying to install on Cygwin. Unfortunately, I did not find any good site with instruction about how to do it.
Is anyone done this before? Please help me with steps and packages that I need to install.
Also is there any terminals I can try (like Cygwin)?
I don't know since what version, but now you can install terminator just from the Cygwin installer. And runs great
Regards
If you don't want to use cygwinports, you can actually install all of terminator's dependencies from the cygwin installer, except for terminator itself.
In the cygwin installer select and install:
python-dbus
python-gobject
python-gtk2.0
python-vte (under GNOME tab for some reason)
GConf2
Then, pull down the latest terminator tarball from https://launchpad.net/terminator/+download and extract it somewhere. In a administrator terminal just run python setup.py install and as long as you have a running X server just running terminator will work perfectly.
The sources about how to install terminator are a bit obscures. What I did, and may help you, was this: (although I'm still having segmentation faults errors)
Update your Cygwin to the latest
Open a Cygwin terminal and run: (if you have the x86 version use that. The idea of this step is to use Cygwin Ports)
cygstart -- /your/cygwin/path/setup-x86_64.exe -K http://cygwinports.org/ports.gpg
In the section Choose A Download Site:
Add "http://downloads.sourceforge.net/cygwin-ports"
Add " ftp://ftp.cygwinports.org/pub/cygwinports"
Select another mirror close to you
Check that you have a total of three URLs selected
It may show you warning about not loading the .ini configuration but ignore them (Note: I looked for different port URLs but the official ones threw me errors and I could not pass this step, that's why I used alternatives URLs)
First, you need to install the packages for the X Window:
http://x.cygwin.com/docs/ug/setup.html
Basically they are:
xorg-server (required, the Cygwin/X X Server)
xinit (required, scripts for starting the X server: xinit, startx, startwin (and a shortcut on the Start Menu to run it), startxdmcp.bat )
xorg-docs (optional, man pages)
Also search and select the terminator package
It takes quite a while before it finishes.
Go to Start->All Programs->Cygwin-X->X Win Server (windows tool bar)
A xterm window should open. Type:
terminator
You should know have terminator with Cygwin.
Note: After I run terminator I get this error:
/usr/lib/python2.7/site-packages/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::sm-connect after class was initialised
self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/lib/python2.7/site-packages/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised
self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/lib/python2.7/site-packages/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::display after class was initialised
self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
/usr/lib/python2.7/site-packages/terminatorlib/terminator.py:87: Warning: Attempt to add property GnomeProgram::default-icon after class was initialised
self.gnome_program = gnome.init(APP_NAME, APP_VERSION)
Warning: python-keybinder is not installed. This means the hide_window shortcut will be unavailable
Unable to bind hide_window key, another instance/window has it.
Segmentation fault (core dumped)
I've looking to fix this issue but sadly I couldn't find anything. If you use Cygwin x86 your outcome can be different.
Hope this can help you.

Resources