Due to issues with QtFrameGrabber,
commit 08533ca4e2
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Fri May 2 17:52:19 2025 +0200
tdf#166055 avmedia qt: Use GStreamer frame grabber by default
switched from using QtFrameGrabber by default to using
the Gstreamer-based grabber by default.
Since then, QtFrameGrabber is only used if either
of these is true:
1) explicitly enabled by setting the
SAL_VCL_QT_USE_QT_FRAME_GRABBER environment
variable
2) no GStreamer-based grabber is returned by
createPlatformFrameGrabber
The tdf#170681 scenario of dragging and dropping
an audio-only file from the gallery in Impress
shows that 2) is also reached then because the
preferred size of the audio-only file in
Player::createFrameGrabber is empty, and thus no
frame grabber is created.
This apparently (at least in some configurations) results in
the QtFrameGrabber problems like crashes that the
above-mentioned commit was supposed to avoid,
until they get addressed a different way.
Therefore, adjust the logic to only create a
QtFrameGrabber when explicitly enabled, i.e.
for 1), but no longer for 2).
Change-Id: Ic95303e812819a9c432543992773b334995ddd31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199356
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Audio / video Media Implementation.
Provides per-platform implementations of multimedia functionality. Currently no stream API is provided, only a URI based one, so streaming has to be wrapped around it via temp files.
Also provides (in source/framework/mediacontrol.cxx) an implementation
of the graphical media playback control that appears in the toolbar /
mediaobject bar when media is selected under the .uno:AVMediaToolBox
item.
avmedia / gstreamer
The avmedia component is implementation of manager service defined in
offapi/com/sun/star/media/. Radek has added implementation based on
gstreamer so that we can add audio and video files into impress
presentation on Linux with gstreamer.
The implementation is pretty straightforward, sometimes it has problems when gstreamer installation is incomplete.
In the beginning the media files were not embedded, Thorsten added support for that later.
Future Works
it might be worthwhile to revamp the avmedia UI.