site  contact  subhomenews

Shotcut video editor compiled in OE

July 31, 2023 — BarryK

A couple of months ago, I decided to use Kdenlive video editor, as I thought that it is the only one that supports voice-over directly from a microphone -- among the open-source free video editors that is. Posted about it:

Surprise, surprise, yesterday stumbled upon a YouTube video showing that it can be done in Shotcut. In fact, there are a few of them, such as these:

...that last one also has a web page:

That's great, so decided to compile it in OpenEmbedded/Yocto. The Shotcut developers have moved on to Qt6, so I grabbed the last source that uses Qt5 -- same version that Debian Bookworm is using.

Being Qt-based, not KDE-based, makes it much easier to compile in OE. This morning got stuck into it, and this is the build recipe:

# Recipe created by recipetool
# recipetool create -o

LICENSE = "GPL-3.0-only & LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
file://CuteLogger/LICENSE.LGPL;md5=fbc093901857fcd118f065f900982c24 \

SRC_URI = ""

SRC_URI[md5sum] = "f5e634ea42378775762b81fb9b607a38"
SRC_URI[sha256sum] = "bd17764cfaa0243f1f635d3697979c5771e519ba3de6ec541cbdcacf1905f521"

inherit cmake_qt5 pkgconfig gettext python3-dir python3native mime mime-xdg

DEPENDS = "mlt frei0r ffmpeg qtbase qtdeclarative qtscript qtsvg \
qttools qtx11extras qtxmlpatterns qtmultimedia qtwebsockets \
qtquickcontrols2 libsdl2 libsdl2-image libsdl2-mixer libsdl2-net \
libsdl2-ttf lame x264 x265 pulseaudio alsa-lib \
qt5-styleplugins qtimageformats desktop-file-utils \
qtbase-native qtdeclarative-native qttools-native qtxmlpatterns-native"



#ERROR: shotcut-22.12.21+ds-r3 do_package_qa: QA Issue: -dev package shotcut-dev contains non-symlink .so '/usr/lib/' [dev-elf]
ERROR_QA:remove = "dev-elf"
#ERROR: shotcut-22.12.21+ds-r3 do_package_qa: QA Issue: shotcut rdepends on shotcut-dev [dev-deps]
ERROR_QA:remove = "dev-deps"

SUMMARY = "Video editor"

Here is the Shotcut homepage:


In the next release of Easy, there will be a pre-install entry in the menu and in EasyApps; that "orange ball" icon thing that I introduced recently:

I'm very keen to have a native video editor, instead of those AppImages and Flatpacks. Hmmm, if it turns out that I will use it on a regular basis, might have a go at squeezing it, and it's dependencies, builtin to 'easy.sfs'.

All of the above is very nice, but I haven't actually tested if Shotcut works. Will do that very soon.

Shotcut runs, but unfortunately is badly broken, the timeline does not work. I had already reported this to the Shotcut developers back in January 2022, with a snapshot:

As it is a very active project, I had expected that bug to have been solved by now. But no. In fact, looking at recent issues, the timeline is still broken, such as this:

That is disappointing. Actually, looking at that snapshot posted to issue #1057, there is one improvement; now get the toolbar in the timeline, just cannot create any tracks.    

Tags: easy