libmlt/libmlt.spec

333 lines
11 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libmlt
#
Accepting request 774855 from home:alois:branches:multimedia:libs - Update to version 6.20.0 Framework * Added consumer scaling: + mlt_profile_scale_width() + mlt_profile_scale_height() + Mlt::Profile::scale_width() + Mlt::Profile::scale_height() + support for a double "scale" property to melt and the xml producer * Fixed mlt_properties_set() with an invalid expression. * Added new functions that do not evaluate expressions: + mlt_properties_set_string() + Mlt::Properties::set_string() * Improved the service-caching heuristic in mlt_multitrack. * Fixed possible crashes in mlt_playlist get_frame() and mlt_filter_process(). Modules * Added the rubberband module with a rbpitch filter. * Added pitch compensation to timewarp producer. * Added the invert_scale property to the affine filter and transition. * Added the reverse property to shape filter. * Added support for text keyframes to the text and qtext filters. * Added support for the CSRT and MOSSE algorithms in opencv.tracker filter. * Fixed a crash on empty algo property in the opencv.tracker filter. * Changed vorbis module to no longer be deprecated. * Improved colorspace conversions in the avformat module. * Fixed audio artifacts on initial seek to in point in avformat producer. * Fixed the colorspace of the cached image in avformat producer. * Fixed white video flashes on property changes in the qtext filter. * Fixed a crash in the rotoscoping filter with large spline deviations. * Fixed a crash in the sdi consumer if the driver is not loaded. * Improved support for a video clip as luma producer to the luma transition. * Fixed a crash in the matte transition. * Fixed a crash when using invert property =1 in the composite transition. Other * Added more avformat consumer presets: + intermediate/DNxHR-HQ + intermediate/ProRes HQ + ALAC + FLAC * Fixed some parameters in the XDCAM and D10 avformat presets. * Fixed link failure on some CPU architectures. - Refreshed libmlt-fixluma.patch - Update to version 1.2.0 * This version adds support for MLT v6.20.0's preview scaling. * For the MLT integration, if the resource starts with "plain:" webvfx does automatic scaling per the zoom level. This works fine for content that is simply produced or overlayed by the filter. However, content that uses the webvfx JavaScript extension will not operate with zoom unless the service property mlt_resolution_scale is set to 1. New properties mlt_profile_scale_width and mlt_profile_scale_height as real numbers that reflect the new MLT consumer scale property used to do low-res preview scaling. Content script can access this via webvfx.getNumberParameter() to scale its parameters and elements. - Refreshed webvfx-versioned-libdir.patch and webvfx-nobrowser.patch OBS-URL: https://build.opensuse.org/request/show/774855 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=109
2020-02-18 05:30:03 +00:00
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 690153 from home:alois:branches:multimedia:libs - Update to version 6.14.0 * This version is mostly fixes plus a few API additions and filters. Framework: * Added mlt_profile_lumas_dir(). * Added mlt_frame_get_unique_properties(). * Added mlt_playlist_reorder() and Mlt::Playlist::reorder(). * Added some new convenience constructors to mlt++ + Producer(mlt_profile profile, const char *id, const char *service = NULL) + Consumer(mlt_profile profile, const char *id , const char *service = NULL) + Transition(mlt_profile profile, const char *id, const char *arg = NULL) + Filter(mlt_profile profile, const char *id, const char *service = NULL) + Tractor(mlt_profile profile, char *id, char *arg = NULL) * Added Mlt::Transition::connect(Service&). * Added unit tests for mlt_playlist. * Fixed a crash on invalid transition track values in mlt_transition. * Fixed a deadlock regression in v6.12.0 of mlt_consumer when starting from a paused state (producer speed=0). Modules: * The avformat module now requires at least FFmpeg v2.4 or Libav 12. * Added mask_start and mask_apply filters to the core module. * Added qtext filter to qt module. * Changed dynamictext and timer filters to use qtext. * Fixed number of digits for seconds in timer filter. * Added mlt_image_format property to color producer. * Improved color accuracy of libswscale RGB->YUV conversion. * Fixed frei0r producer not working with tractor. * Fixed decklink consumer stalling on dropped frames. * Generate lumas for 16:9, 9:16 (vertical), and square aspect ratios. * Fixed crash in qimage when alpha_size is zero. * Fixed the mlt_consumer channels property not being passed to multi consumer. * Fixed the shape filter for full range color and crashes. * Converted the shape filter to use mlt_animation. * Added a use_mix property to the shape filter. * Fixed invert=1 and mix=100 gives wrong image in shape filter. * Fixed a possible free null pointer in the linsys sdi consumer. * Fixed using destroyed temporary object in qimage. * Fixed a possible null pointer dereference in the spot_remover filter. * Fixed memory leak on swr_convert() failure in swresample filter. * Fixed possible null pointer dereference in affine when not using rect. * Fixed loading image sequence on Windows in qimage. * Fixed some null pointer crashes using Movit opengl services. * Fixed sdl2 consumer crashes during initialization on Linux or BSD. * Fixed distorted image using melt_file. * Fixed qimage build on Qt version < 5.5. * Added offset property to the timer filter. * Changed the boxblur hori & vert properties' minimum to 0. * Fixed crash in duplicate frame on rotated videos. * Added automatic scaling and padding to avfilter. * Fixed field order when encoding progressive as interlace. * Fixed frei0r plugins to use the number of slices from the threads property. * Fixed over compositing with transparent clips in luma transition. * Added sliced processing to dissolve-with-alpha using the threads property. * Added createdate keyword to dynamictext filter. * Fixed possible crash changing audio_index in avformat producer. * Fixed small memory leaks in xml consumer, jackrack, and timewarp producer. * Fixed compiling opencv module with OpenCV > 3. Other: * Added vertical video profiles: + vertical_hd_30 + vertical_hd_60 * Mlt++ now requires C++11 compiler support. * Added --disable-windeploy to configure to keep bin & lib folders on Windows. * Added support for consumer in & out to melt. * Fixed color accuracy of lossless/Ut Video preset and use pix_fmt yuv422p. * Fixed x264 lossless preset to use crf=0. * Fixed compiling with mingw32. * Fixed build with Python 3. OBS-URL: https://build.opensuse.org/request/show/690153 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=103
2019-03-31 08:21:45 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Dan Dennedy asked to disable it since it's buggy and unmaintained (see e.g. http://www.kdenlive.org/mantis/view.php?id=3070)
%bcond_with vdpau
%define _name mlt
%define libname lib%{_name}
Accepting request 853526 from home:alois:branches:multimedia:libs - Update to version 6.24.0 Framework: * Trigger a `property-changed` event on `mlt_properties_pass_list`. * Fixed using a video transition with a video clip on an audio track. * Reduce the amount of service caching to 2X #tracks to reduce memory usage. Modules: * Added the `pillar_echo` filter to the plus module. * Added a `qtcrop` filter to the qt module. * Added `html`, `resource`, `overflow-y`, and `_hide` properties to the `qtext` filter for rich text. * Added the filter `choppy` to the core module. * Added slice threading to the `brightness` filter. * Fixed compiling with OpenCV 4. * Fixed the colors when using `mlt_image_format=rgb24a` with `avformat` consumer. * Fixed a possible crash in the `timewarp` producer on sources with non-integer frame rates. * Fixed a regression in version 6.22 with multiple affine filters at the same time. * Fixed possible abort or deadlock on recursive pthread mutexes in `avformat` producer. * Fixed a crash in `crop` filter with large `center_bias` value when `use_profile` is 1. * Fixed a white video frame appearing on threaded rendering in `freeze` filter. * Fixed MLT XML DRD to permit empty playlists, which may occur on empty tracks in a multitrack. * Fixed initializing QApplication in the `qimage` producer. * Fixed interpolation when scaling with the `affine` rect and geomety properties. * Fixed high memory usage with high factors of pitch shifting in the `rbpitch` filter. * Fixed a crash on files with more than 32 streams in the `avformat` producer. Other: * Added the Python binding to the CMake build. * Added the `sdl` (v1) module to the CMake build. * Removed minrate and maxrate from the `webm` avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/853526 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=116
2020-12-07 09:53:52 +00:00
%define lversion 6.24.0
%define soname 6
%define _name_pp %{_name}++
%define libname_pp lib%{_name_pp}
%define soname_pp 3
Name: %{libname}
Accepting request 853526 from home:alois:branches:multimedia:libs - Update to version 6.24.0 Framework: * Trigger a `property-changed` event on `mlt_properties_pass_list`. * Fixed using a video transition with a video clip on an audio track. * Reduce the amount of service caching to 2X #tracks to reduce memory usage. Modules: * Added the `pillar_echo` filter to the plus module. * Added a `qtcrop` filter to the qt module. * Added `html`, `resource`, `overflow-y`, and `_hide` properties to the `qtext` filter for rich text. * Added the filter `choppy` to the core module. * Added slice threading to the `brightness` filter. * Fixed compiling with OpenCV 4. * Fixed the colors when using `mlt_image_format=rgb24a` with `avformat` consumer. * Fixed a possible crash in the `timewarp` producer on sources with non-integer frame rates. * Fixed a regression in version 6.22 with multiple affine filters at the same time. * Fixed possible abort or deadlock on recursive pthread mutexes in `avformat` producer. * Fixed a crash in `crop` filter with large `center_bias` value when `use_profile` is 1. * Fixed a white video frame appearing on threaded rendering in `freeze` filter. * Fixed MLT XML DRD to permit empty playlists, which may occur on empty tracks in a multitrack. * Fixed initializing QApplication in the `qimage` producer. * Fixed interpolation when scaling with the `affine` rect and geomety properties. * Fixed high memory usage with high factors of pitch shifting in the `rbpitch` filter. * Fixed a crash on files with more than 32 streams in the `avformat` producer. Other: * Added the Python binding to the CMake build. * Added the `sdl` (v1) module to the CMake build. * Removed minrate and maxrate from the `webm` avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/853526 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=116
2020-12-07 09:53:52 +00:00
Version: 6.24.0
Release: 0
Summary: Multimedia framework for television broadcasting
Accepting request 617995 from home:alois:branches:multimedia:libs - Update to version 6.8.0 * This version improves support for multi-channel audio and adds some new manipulation functions to the mlt_animation API. Framework: * Added support for musl C library. * Added functions for audio channel layouts: + mlt_channel_layout_name() + mlt_channel_layout_id() + mlt_channel_layout_channels() + mlt_channel_layout_default() * Added channel_layout property to mlt_consumer. * Added mlt_channel_layout enum. * Disabled memory pooling by default and require compile macro USE_MLT_POOL to re-enable it. * Fixed reliability of keyframed properties serializing properly. * Fixed parsing non-animated string as an animation. * Added more functions to mlt_animation: + mlt_animation_key_set_type() + mlt_animation_key_set_frame() + Mlt::Animation::key_set_type() + Mlt::Animation::key_set_frame() Modules: * Fixed some crashes in qimage producer especially with alpha channel. * Fixed >2 channel audio output in the SDL consumers. * Fixed >2 channel audio output in the rtaudio consumer on Windows. * Fixed vorbis encoding with FFmpeg v3.4+. * qimage and qtext are now higher priority than gtk2 pixbuf and pango by the loader producer. * Added support for more channel counts to decklink consumer. * Added swresample filter based on libswresample from FFmpeg. This is now the preferred channel count normalizing filter used by the loader producer. * Fixed the strange "Undefined constant" and "Unable to parse option value" log messages in the the avformat consumer. * Fixed GIF and DPX writing in avformat consumer. * Reduced the memory usage of the affine transition and filters. * Fixed a crash in kdenlivetitle producer. * Fixed a crash in the rotoscoping filter. * Fixed frame rate reported in Matroska and WebM files produced by the avformat consumer. * Added sdl2_audio consumer. * Fixed alpha channel support for more pixel formats in the avformat producer. * Converted the affine transition to use mlt_rect and mlt_animation. * Fixed LADSPA plugins with mono channel audio. Other: * Fixed a melt command line parsing bug when argument supplied to -transition. * Fixed melt with SDL2 on Windows not using stdio and stderr. * Improved speed of the vp9 avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/617995 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=93
2018-06-20 10:37:34 +00:00
License: GPL-3.0-or-later
Group: Development/Libraries/C and C++
URL: http://www.mltframework.org
Accepting request 617995 from home:alois:branches:multimedia:libs - Update to version 6.8.0 * This version improves support for multi-channel audio and adds some new manipulation functions to the mlt_animation API. Framework: * Added support for musl C library. * Added functions for audio channel layouts: + mlt_channel_layout_name() + mlt_channel_layout_id() + mlt_channel_layout_channels() + mlt_channel_layout_default() * Added channel_layout property to mlt_consumer. * Added mlt_channel_layout enum. * Disabled memory pooling by default and require compile macro USE_MLT_POOL to re-enable it. * Fixed reliability of keyframed properties serializing properly. * Fixed parsing non-animated string as an animation. * Added more functions to mlt_animation: + mlt_animation_key_set_type() + mlt_animation_key_set_frame() + Mlt::Animation::key_set_type() + Mlt::Animation::key_set_frame() Modules: * Fixed some crashes in qimage producer especially with alpha channel. * Fixed >2 channel audio output in the SDL consumers. * Fixed >2 channel audio output in the rtaudio consumer on Windows. * Fixed vorbis encoding with FFmpeg v3.4+. * qimage and qtext are now higher priority than gtk2 pixbuf and pango by the loader producer. * Added support for more channel counts to decklink consumer. * Added swresample filter based on libswresample from FFmpeg. This is now the preferred channel count normalizing filter used by the loader producer. * Fixed the strange "Undefined constant" and "Unable to parse option value" log messages in the the avformat consumer. * Fixed GIF and DPX writing in avformat consumer. * Reduced the memory usage of the affine transition and filters. * Fixed a crash in kdenlivetitle producer. * Fixed a crash in the rotoscoping filter. * Fixed frame rate reported in Matroska and WebM files produced by the avformat consumer. * Added sdl2_audio consumer. * Fixed alpha channel support for more pixel formats in the avformat producer. * Converted the affine transition to use mlt_rect and mlt_animation. * Fixed LADSPA plugins with mono channel audio. Other: * Fixed a melt command line parsing bug when argument supplied to -transition. * Fixed melt with SDL2 on Windows not using stdio and stderr. * Improved speed of the vp9 avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/617995 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=93
2018-06-20 10:37:34 +00:00
Source0: https://github.com/mltframework/mlt/archive/v%{version}.tar.gz#/%{_name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE libmlt-0.8.2-vdpau.patch reddwarf@opensuse.org -- Make VDPAU support work without the devel package
Patch1: libmlt-0.8.2-vdpau.patch
# PATCH-FIX-UPSTREAM libmlt-fixluma.patch aloisio@gmx.com -- add LD_LIBRARY_PATH so that luma can run
Patch2: libmlt-fixluma.patch
BuildRequires: fdupes
Accepting request 617995 from home:alois:branches:multimedia:libs - Update to version 6.8.0 * This version improves support for multi-channel audio and adds some new manipulation functions to the mlt_animation API. Framework: * Added support for musl C library. * Added functions for audio channel layouts: + mlt_channel_layout_name() + mlt_channel_layout_id() + mlt_channel_layout_channels() + mlt_channel_layout_default() * Added channel_layout property to mlt_consumer. * Added mlt_channel_layout enum. * Disabled memory pooling by default and require compile macro USE_MLT_POOL to re-enable it. * Fixed reliability of keyframed properties serializing properly. * Fixed parsing non-animated string as an animation. * Added more functions to mlt_animation: + mlt_animation_key_set_type() + mlt_animation_key_set_frame() + Mlt::Animation::key_set_type() + Mlt::Animation::key_set_frame() Modules: * Fixed some crashes in qimage producer especially with alpha channel. * Fixed >2 channel audio output in the SDL consumers. * Fixed >2 channel audio output in the rtaudio consumer on Windows. * Fixed vorbis encoding with FFmpeg v3.4+. * qimage and qtext are now higher priority than gtk2 pixbuf and pango by the loader producer. * Added support for more channel counts to decklink consumer. * Added swresample filter based on libswresample from FFmpeg. This is now the preferred channel count normalizing filter used by the loader producer. * Fixed the strange "Undefined constant" and "Unable to parse option value" log messages in the the avformat consumer. * Fixed GIF and DPX writing in avformat consumer. * Reduced the memory usage of the affine transition and filters. * Fixed a crash in kdenlivetitle producer. * Fixed a crash in the rotoscoping filter. * Fixed frame rate reported in Matroska and WebM files produced by the avformat consumer. * Added sdl2_audio consumer. * Fixed alpha channel support for more pixel formats in the avformat producer. * Converted the affine transition to use mlt_rect and mlt_animation. * Fixed LADSPA plugins with mono channel audio. Other: * Fixed a melt command line parsing bug when argument supplied to -transition. * Fixed melt with SDL2 on Windows not using stdio and stderr. * Improved speed of the vp9 avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/617995 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=93
2018-06-20 10:37:34 +00:00
%if 0%{?suse_version} >= 1500
BuildRequires: gcc-c++
%else
BuildRequires: gcc7
BuildRequires: gcc7-c++
#!Buildignore: libgcc_s1
%endif
BuildRequires: ladspa-devel
BuildRequires: pkg-config
BuildRequires: python3-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(frei0r)
BuildRequires: pkgconfig(gdk-2.0)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(libdv)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libquicktime)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(movit)
#!BuildIgnore: opencv-qt5-devel
Accepting request 617995 from home:alois:branches:multimedia:libs - Update to version 6.8.0 * This version improves support for multi-channel audio and adds some new manipulation functions to the mlt_animation API. Framework: * Added support for musl C library. * Added functions for audio channel layouts: + mlt_channel_layout_name() + mlt_channel_layout_id() + mlt_channel_layout_channels() + mlt_channel_layout_default() * Added channel_layout property to mlt_consumer. * Added mlt_channel_layout enum. * Disabled memory pooling by default and require compile macro USE_MLT_POOL to re-enable it. * Fixed reliability of keyframed properties serializing properly. * Fixed parsing non-animated string as an animation. * Added more functions to mlt_animation: + mlt_animation_key_set_type() + mlt_animation_key_set_frame() + Mlt::Animation::key_set_type() + Mlt::Animation::key_set_frame() Modules: * Fixed some crashes in qimage producer especially with alpha channel. * Fixed >2 channel audio output in the SDL consumers. * Fixed >2 channel audio output in the rtaudio consumer on Windows. * Fixed vorbis encoding with FFmpeg v3.4+. * qimage and qtext are now higher priority than gtk2 pixbuf and pango by the loader producer. * Added support for more channel counts to decklink consumer. * Added swresample filter based on libswresample from FFmpeg. This is now the preferred channel count normalizing filter used by the loader producer. * Fixed the strange "Undefined constant" and "Unable to parse option value" log messages in the the avformat consumer. * Fixed GIF and DPX writing in avformat consumer. * Reduced the memory usage of the affine transition and filters. * Fixed a crash in kdenlivetitle producer. * Fixed a crash in the rotoscoping filter. * Fixed frame rate reported in Matroska and WebM files produced by the avformat consumer. * Added sdl2_audio consumer. * Fixed alpha channel support for more pixel formats in the avformat producer. * Converted the affine transition to use mlt_rect and mlt_animation. * Fixed LADSPA plugins with mono channel audio. Other: * Fixed a melt command line parsing bug when argument supplied to -transition. * Fixed melt with SDL2 on Windows not using stdio and stderr. * Improved speed of the vp9 avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/617995 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=93
2018-06-20 10:37:34 +00:00
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavdevice)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libpostproc)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pangoft2)
BuildRequires: pkgconfig(samplerate)
BuildRequires: pkgconfig(sdl2)
BuildRequires: pkgconfig(sox)
BuildRequires: pkgconfig(vidstab)
BuildRequires: pkgconfig(vorbisfile)
%if %{with vdpau}
BuildRequires: pkgconfig(vdpau)
# VDPAU support requires it
BuildRequires: pkgconfig(x11)
%endif
%description
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers. The functionality of the system is
provided via an assortment of tools, XML authoring components, and an
plug-in based API.
%package -n %{libname}%{soname}
Summary: C library API for the MLT multimedia framework
Group: System/Libraries
%description -n %{libname}%{soname}
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This subpackage contains the C library API for MLT.
%package devel
Summary: Development files for MLT's C language API
Group: Development/Libraries/C and C++
Requires: %{libname}%{soname} = %{version}
%description devel
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This subpackage contains the headers to make use of the MLT C API.
%package -n %{libname_pp}%{soname_pp}
Summary: C++ library API for the MLT multimedia framework
Group: System/Libraries
%description -n %{libname_pp}%{soname_pp}
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This subpackage contains the C++ library API for MLT.
%package -n %{libname_pp}-devel
Summary: Development files for MLT's C++ language API
Group: Development/Libraries/C and C++
Requires: %{libname_pp}%{soname_pp} = %{version}
Requires: %{libname}-devel = %{version}
%description -n %{libname_pp}-devel
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This subpackage contains the headers to make use of the MLT C++ API.
%package -n melt
Summary: Multimedia framework for television broadcasting
Group: Productivity/Multimedia/Video/Editors and Convertors
Provides: melt%{soname} = %{version}
Obsoletes: melt%{soname} < %{version}
Requires: %{libname}%{soname}-data = %{version}
Requires: %{libname}%{soname}-modules = %{version}
%description -n melt
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
The functionality of the system is provided via an assortment of
tools, XML authoring components, and an plug-in based API.
%package -n %{libname}%{soname}-modules
Summary: Modules for the MLT multimedia framework
Group: Productivity/Multimedia/Video/Editors and Convertors
Recommends: frei0r-plugins
Provides: mlt(%{soname})(avformat)
%if %{with vdpau}
# I would recommend it, but to the best of my knowledge nobody but nvidia provides a backend
Suggests: %(rpm -qf $(readlink -e %{_libdir}/libvdpau.so) --qf '%{NAME}')
%endif
%description -n %{libname}%{soname}-modules
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
The functionality of the system is provided via an assortment of
tools, XML authoring components, and an plug-in based API.
%package -n %{libname}%{soname}-data
Summary: Architecture-independent data files for the MLT multimedia framework
Group: Productivity/Multimedia/Video/Editors and Convertors
BuildArch: noarch
%description -n %{libname}%{soname}-data
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
%package -n python3-%{_name}
Summary: Python bindings for the MLT multimedia framework
Group: Development/Languages/Python
BuildRequires: python3-devel
BuildRequires: swig
Requires: %{libname_pp}%{soname_pp} >= %{version}
Requires: %{libname}%{soname} >= %{version}
Provides: python3-%{_name}%{soname}
%description -n python3-%{_name}
MLT is a multimedia framework for television broadcasting. It
provides a toolkit for broadcasters, video editors, media players,
transcoders and web streamers.
This package contains python bindings.
%prep
Accepting request 617995 from home:alois:branches:multimedia:libs - Update to version 6.8.0 * This version improves support for multi-channel audio and adds some new manipulation functions to the mlt_animation API. Framework: * Added support for musl C library. * Added functions for audio channel layouts: + mlt_channel_layout_name() + mlt_channel_layout_id() + mlt_channel_layout_channels() + mlt_channel_layout_default() * Added channel_layout property to mlt_consumer. * Added mlt_channel_layout enum. * Disabled memory pooling by default and require compile macro USE_MLT_POOL to re-enable it. * Fixed reliability of keyframed properties serializing properly. * Fixed parsing non-animated string as an animation. * Added more functions to mlt_animation: + mlt_animation_key_set_type() + mlt_animation_key_set_frame() + Mlt::Animation::key_set_type() + Mlt::Animation::key_set_frame() Modules: * Fixed some crashes in qimage producer especially with alpha channel. * Fixed >2 channel audio output in the SDL consumers. * Fixed >2 channel audio output in the rtaudio consumer on Windows. * Fixed vorbis encoding with FFmpeg v3.4+. * qimage and qtext are now higher priority than gtk2 pixbuf and pango by the loader producer. * Added support for more channel counts to decklink consumer. * Added swresample filter based on libswresample from FFmpeg. This is now the preferred channel count normalizing filter used by the loader producer. * Fixed the strange "Undefined constant" and "Unable to parse option value" log messages in the the avformat consumer. * Fixed GIF and DPX writing in avformat consumer. * Reduced the memory usage of the affine transition and filters. * Fixed a crash in kdenlivetitle producer. * Fixed a crash in the rotoscoping filter. * Fixed frame rate reported in Matroska and WebM files produced by the avformat consumer. * Added sdl2_audio consumer. * Fixed alpha channel support for more pixel formats in the avformat producer. * Converted the affine transition to use mlt_rect and mlt_animation. * Fixed LADSPA plugins with mono channel audio. Other: * Fixed a melt command line parsing bug when argument supplied to -transition. * Fixed melt with SDL2 on Windows not using stdio and stderr. * Improved speed of the vp9 avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/617995 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=93
2018-06-20 10:37:34 +00:00
%setup -q -n %{_name}-%{version}
%patch1
%patch2 -p1
# To complement libmlt-0.8.0-vdpau.patch.
# When vdpau support is not compiled it will break the code. Doesn't matter because the code will not be used anyway.
VDPAU_SONAME=$(objdump -p $(readlink -e %{_libdir}/libvdpau.so) | grep SONAME | sed 's/.*SONAME.* //' | tr -d '\n')
sed "s/__VDPAU_SONAME__/${VDPAU_SONAME}/" -i src/modules/avformat/vdpau.c
%build
test -x "$(type -p gcc-7)" && export CC=gcc-7
test -x "$(type -p g++-7)" && export CXX=g++-7
Accepting request 853526 from home:alois:branches:multimedia:libs - Update to version 6.24.0 Framework: * Trigger a `property-changed` event on `mlt_properties_pass_list`. * Fixed using a video transition with a video clip on an audio track. * Reduce the amount of service caching to 2X #tracks to reduce memory usage. Modules: * Added the `pillar_echo` filter to the plus module. * Added a `qtcrop` filter to the qt module. * Added `html`, `resource`, `overflow-y`, and `_hide` properties to the `qtext` filter for rich text. * Added the filter `choppy` to the core module. * Added slice threading to the `brightness` filter. * Fixed compiling with OpenCV 4. * Fixed the colors when using `mlt_image_format=rgb24a` with `avformat` consumer. * Fixed a possible crash in the `timewarp` producer on sources with non-integer frame rates. * Fixed a regression in version 6.22 with multiple affine filters at the same time. * Fixed possible abort or deadlock on recursive pthread mutexes in `avformat` producer. * Fixed a crash in `crop` filter with large `center_bias` value when `use_profile` is 1. * Fixed a white video frame appearing on threaded rendering in `freeze` filter. * Fixed MLT XML DRD to permit empty playlists, which may occur on empty tracks in a multitrack. * Fixed initializing QApplication in the `qimage` producer. * Fixed interpolation when scaling with the `affine` rect and geomety properties. * Fixed high memory usage with high factors of pitch shifting in the `rbpitch` filter. * Fixed a crash on files with more than 32 streams in the `avformat` producer. Other: * Added the Python binding to the CMake build. * Added the `sdl` (v1) module to the CMake build. * Removed minrate and maxrate from the `webm` avformat consumer preset. OBS-URL: https://build.opensuse.org/request/show/853526 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=116
2020-12-07 09:53:52 +00:00
# Until boo#1179650 is fixed
%ifarch ppc64le
export CFLAGS="-I%{_includedir}/eigen3"
%endif
# WARNING: building opencv module causes multicore issues - boo#1068792
%configure --disable-opencv \
--enable-sdl2 \
%ifnarch %{ix86} x86_64
--disable-mmx \
--disable-sse \
--disable-sse2 \
%endif
--enable-debug \
--enable-gpl --enable-gpl3 \
--enable-lumas \
%ifarch i586
--disable-mmx \
%endif
%if %{with vdpau}
--avformat-vdpau \
%endif
--enable-extra-versioning \
--swig-languages=python
make %{?_smp_mflags}
%install
%make_install
install -Dpm 0644 docs/melt.1 %{buildroot}%{_mandir}/man1/melt%{soname}.1
ln -s melt%{soname}.1 %{buildroot}%{_mandir}/man1/melt.1
install -Dpm 0644 src/swig/python/_%{_name}.so '%{buildroot}%{python3_sitearch}/_%{_name}.so'
install -Dpm 0644 src/swig/python/%{_name}.py '%{buildroot}%{python3_sitearch}/%{_name}.py'
# Get the modules that need data
for MODULE in %{buildroot}%{_libdir}/mlt-%{soname}/libmlt*.so; do
echo $MODULE
MODULEDIR=%{_datadir}/mlt-%{soname}/$(echo $MODULE | sed 's|%{buildroot}%{_libdir}/mlt-%{soname}/libmlt\(.*\).so|\1|')
echo $MODULEDIR
if [ -e %{buildroot}$MODULEDIR ]; then
echo Done $MODULEDIR
echo $MODULEDIR >> module_data.dirs
fi;
done
# Pure data modules
for MODULE in feeds lumas; do
echo %{_datadir}/mlt-%{soname}/$MODULE >> module_data.dirs
done
# Remove the unversioned symbolic links
rm -f %{buildroot}%{_libdir}/mlt
rm -f %{buildroot}%{_datadir}/mlt
# remove dupes
%fdupes -s %{buildroot}%{_datadir}/mlt-6
%post -n %{libname}%{soname} -p /sbin/ldconfig
%postun -n %{libname}%{soname} -p /sbin/ldconfig
%post -n %{libname_pp}%{soname_pp} -p /sbin/ldconfig
%postun -n %{libname_pp}%{soname_pp} -p /sbin/ldconfig
%files -n %{libname}%{soname}
%defattr(0644, root, root, 0755)
%{_libdir}/lib%{_name}.so.%{soname}
%{_libdir}/lib%{_name}.so.%{lversion}
%files devel
%defattr(0644, root, root, 0755)
%{_libdir}/lib%{_name}.so
%{_includedir}/%{_name}
%{_libdir}/pkgconfig/%{_name}-framework.pc
%files -n %{libname_pp}%{soname_pp}
%defattr(0644, root, root, 0755)
%{_libdir}/lib%{_name_pp}.so.%{soname_pp}
%{_libdir}/lib%{_name_pp}.so.%{lversion}
%files -n %{libname_pp}-devel
%defattr(0644, root, root, 0755)
%{_libdir}/lib%{_name_pp}.so
%{_includedir}/%{_name_pp}
%{_libdir}/pkgconfig/%{_name_pp}.pc
%files -n melt
%defattr(0644, root, root, 0755)
%attr(0755, root, root) %{_bindir}/melt%{soname}
%{_mandir}/man1/melt%{soname}.1%{ext_man}
%{_bindir}/melt
%{_mandir}/man1/melt.1%{ext_man}
%files -n %{libname}%{soname}-modules -f module_data.dirs
%defattr(0644, root, root, 0755)
Accepting request 823716 from home:alois:branches:multimedia:libs - Update to version 6.22.0 Framework: * Added mlt_properties_exists() and Mlt::Properties::property_exists(). * Added mlt_audio C class * Added Mlt::Audio C++ class * Fixed drop-frame timecode for 59.94 fps. * Fixed crash on null pointer passed to mlt_consumer_stop(). Modules: * Fixed frei0r transitions with preview scaling. * Fixed affine ox and oy properties incorrect with preview scaling. * Fixed a crash and incorrect preview scaling with more than one affine filter active on the same frame. * Fixed preview scaling for the rotoscoping filter. * Added the sample_fmt property to the avformat consumer. * Fixed a possible segfault in the mix transition. * Removed support for text keyframes to the text and qtext filters to fix regression on strings containing '='. * Disable frame-threading with bigsh0t, distort0r, and medians frei0r plugins. * Added "meta.media.%d.stream.projection" property the avformat producer. * Fixed a crash with with filters not supporting preview scale in frei0r transitions. * Fix artifacts in luma transition and affine filter with frame-threading. * Stop including 'title="Anonymous Submission"' in xml consumer. * Fixed a crash in opencv.tracker filter. * Fixed a crash in composite transition if luma file fails to load. * Added validations in opengl module to prevent asserts in Movit. * Fixed building with OpenCV 4. * Moved some services from gtk2 module to new gdk module: gtkrescale filter, pango producer and pixbuf producer * Deprecated the gtk2 module and no longer enabled by default. * Changed avformat producer to accept a '?' in argument/resource property by escaping it as '\?'. * Changed the background property of the affine filter to be mutable. * Deprecated the linsys (DVEO SDI) module. * Fixed changing the audio_index property in the avformat producer. * Changed resample filter to more resiliant to frequency changes. * Added a video_delay property to the sdl2_audio and rtaudio consumers. * Add millisecond options to the timer filter. * Fixed the in point handling for the timewarp producer. * Fixed some audio gaps and sync issues with the rbpitch filter and timewarp pitch compensation. * Fixed a possible crash caused by producer consumer. * Changed avformat consumer to set AVOption color_primaries based on the MLT colorspace if not already set as property. * Fixed crop right on image with odd width skews image in crop filter. * Fixed incorrect silence value for unsigned 8-bit audio in avformat producer. * Changed qimage to use Qt's internal orientation detection instead of libexif. * Reduced clicks in mix transition by silencing buffers on discontinuity. * Improved A/V synchronization in (sw)resample filters - also reduces audio clicks. * Improved speed of the qimage producer. * Fixed incorrect color using libx264rgb in avformat consumer. * Fixed relative paths for avfilters that have the "filename" option. * Fixed some avfilters dropping the alpha channel: smartblur, vaguedenoiser. * Improved performance of the resize filter. * Fixed an affine filter inside a transition was always nearest neighbor interpolation. * Changed the lift_gamma_gain filter to use round values up. Other: * Fixed melt option "-group" applies to an implicit consumer. * Added "-quiet" option to melt (implies -silent but more so). * CMake build improvments adding modules: gdk, jackrack, lumas resample, sox and vorbis * Added avformat consumer presets: Slide-Deck-H264 and Slide-Deck-HEVC * Removed intra=1 from some avformat presets (use g=1 for intra only): intermediate/MPEG-2, intermediate/MPEG-4 and lossless/H.264 - Drop 0001-Fix-build-with-Qt-5.15.0.patch (merged upstream) OBS-URL: https://build.opensuse.org/request/show/823716 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmlt?expand=0&rev=113
2020-08-01 05:35:57 +00:00
%doc AUTHORS NEWS README
%license GPLv3 COPYING GPL
%{_libdir}/%{_name}-%{soname}/
%dir %{_datadir}/%{_name}-%{soname}/
%files -n %{libname}%{soname}-data
%defattr(0644, root, root, 0755)
%dir %{_datadir}/%{_name}-%{soname}/
%{_datadir}/%{_name}-%{soname}/metaschema.yaml
%{_datadir}/%{_name}-%{soname}/profiles/
%{_datadir}/%{_name}-%{soname}/presets/
%{_datadir}/%{_name}-%{soname}/vid.stab/
%files -n python3-%{_name}
%defattr(0644, root, root, 0755)
%{python3_sitearch}/_%{_name}.so
%{python3_sitearch}/%{_name}.py
%changelog