MLT Multimedia Framework

Author, manage, and run multitrack audio/video compositions.
The engine of a non-linear video editor that can be used in all sorts of apps, not just desktop video editors.
MLT is an open source multimedia framework, designed and developed for television broadcasting. It provides a toolkit for broadcasters, video editors, media players, transcoders, web streamers and many more types of applications. The functionality of the system is provided via an assortment of ready to use tools, XML authoring components, and an extensible plug-in based API.
Download source code. The easiest way to try out and learn MLT is by downloading Shotcut.

Recent News

v6.18.0 released

Nov 11, 2019

You can download it from GitHub.

This version is a general maintenance release with a bunch of fixes, improvements, and additions.

Framework

  • Fixed some data races in mlt_consumer, mlt_deque, and mlt_property.
  • Fixed the mlt_events listener incorrect owner argument.
  • Added support for the LC_ALL environmant variable on Windows.
  • Fixed the argument to mlt_factory_init() not working on Windows.
  • Fixed mlt_service_identify() not reliable in some use cases.
  • Added some default and copy constructors and assignment operators to mlt++
    • Filter()
    • Filter( const Filter &filter )
    • Filter& operator=( const Filter &filter )
    • Producer( const Producer &producer )
    • Producer& operator=( const Producer &producer )
    • Properties( const Properties &properties )
    • Properties& operator=( const Properties &properties )
    • Service( const Service &service )
    • Service& operator=( const Service &service )
    • Transition()
    • Transition( const Transition &transition )
    • Transition& operator=( const Transition &transition )
  • Added mlt_luma_map:
    • mlt_luma_map_init
    • mlt_luma_map_new
    • mlt_luma_map_render
    • mlt_luma_map_from_pgm
    • mlt_luma_map_from_yuv422
  • Fixed preset overrides depend on the XML attribute order.
  • Fixed serializing an animated property with a new length.

Modules

  • Fixed interpolation in rotoscoping filter.
  • Fixed crop filter not working with color producer.
  • Fixed some data races in the sdl and sdl2 consumers.
  • Fixed some data races in the avformat producer.
  • Added a movit.flip filter to the opengl module.
  • Fixed using filters on frei0r producers.
  • Added support for in and out attributes on the consumer xml element.
  • Fixed using an in point with the multi consumer.
  • Fixed avfilter fails if the image size changes.
  • Fixed showing superfluous decimals for seconds in the timer filter.
  • Stop serializing an invalid producer as an “INVALID” text producer in xml.
  • Fixed an access violation crash in wave filter.
  • Added the meta.media.color_range property to the avformat producer.
  • Fixed full range yuv422p not converted correctly in the avformat producer.
  • Fixed the text filter not working with pango.
  • Fixed a regression using dynamictext with pango.
  • Added a position property to avfilter for filters that need position info.
  • Fixed avfilter.subtitles not using the source position.
  • Added an analyze property to vidstab filter. When set, analysis only starts and the results file written if true.
  • Fixed crash combining the affine filter with the shape filter.
  • Added interlace detection from AVCodecContext.field_order.
  • Changed the avformat producer to not use the rescale.interp frame property. Previously, when reacale.interp == “nearest”, it would relax seeking. Now, seek accuracy is reduced during trick play (rewind or fast forward).
  • Fixed swscale flags for auto-inserted scalers in avfilter.
  • Fixed a double free crash in ladspa filter on channel count mismatch.
  • Refactored the composite and luma transitions to use mlt_luma_map.
  • Refactored the pgm producer and shape filter to use mlt_luma_map.
  • Refactored the lumas module to use mlt_luma_map.
  • The lumas module is now disabled by default and must be explicitly enabled.
  • Added property animation to the threshold filter.
  • Added a cairoblend_mode filter to the frei0r module to affect a frei0r.cairoblend transition used to composite/blend tracks.
  • Added support for new vaapi options to the avformat consumer:
    • connection_type: x11 or drm
    • driver
    • kernel_driver
  • Fixed the timewarp producer with a colon in the filename.
  • Fixed a relative file name with a colon in it in the xml producer.
  • Fixed defaulting to album or poster art if there is another video stream.
  • Fixed parameter animation in frei0r plugins when using frame threads. This change also enables frame-threading for more plugins.
  • Improved the qtblend filter to not process alpha if no transparency.
  • Added a background_color property to the qtblend filter.
  • Fixed the opencv.tracker incorrect behavior on cut clips.
  • Changed opencv.tracker to store absolute frame numbers.
  • Fixed incorrect frame offset on render in opencv.tracker.
  • Add an alpha_over property to luma transition. This addresses a behavior regression in version 6.14.0.
  • Fixed noimagecache not working in the avformat producer.

Other

  • Mlt++ now requires C11 compiler support.
  • Fixed closing melt SDL2 window from window manager (i.e. close button).
  • Added -repository option to the melt command.
  • Added unit tests for Mlt::Event.
  • Fixed returning image data for Python 3.
  • Switch to python3 by default.
  • Updated the prores encoding presets to set vendor ID and colr atom.
  • Added a CMake build system. This is not yet prefered over the existing configure script and Makefiles and has less flexibility. It is a start and has limited support.

WebVfx v1.1.0 released

Jun 15, 2019

You can download it from GitHub.

MLT continues to maintain and extend the WebVfx add-on that lets one use HTML and Qt QML technologies for a video asset or effects. Back in November, 2018 we released v1.0.0 as it has proven fairly stable and useful in Shotcut for a few years. Here are the enhancements for v1.1.0:

  • Added support for alpha channels in MLT video for input and output.
  • Added a transparent property to the MLT filter. When the property is set to 1, this gives a filter a transparent white canvas for drawing while the MLT video image is still available through the JavaScript extension. This facilitates using WebVfx to draw the alpha channel independently of the MLT alpha channel.
  • Added support for getting a MLT rectangle property (mlt_rect) as a JavaScript object with properties: x, y, width, height, and opacity.

v6.16.0 released

May 7, 2019

You can download it from GitHub.

This version is released to facilitate packaging the latest version of Shotcut, which is using new APIs.

Framework

Added functions to get/set a creation date to a producer:

  • mlt_producer_get_creation_time()
  • mlt_producer_set_creation_time()
  • Mlt::Producer::set_creation_time()
  • Mlt::Producer::get_creation_time()

Modules

  • Fixed dance filter not showing when lower track is transparent.
  • Refactored dynamictext filter to use mlt_producer_get_creation_time().
  • Marked frei0r rgsplit0r plugin version < 1.1 as not thread-safe.
  • Fixed possible null pointer crash in mlt_properties_serialise_yaml().

v6.14.0 released

Mar 30, 2019

You can download it from GitHub.

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 producers 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 lossless/H.264 preset to use crf=0.
  • Fixed compiling with mingw32.
  • Fixed build with Python 3.

v6.12.0 released

Nov 26, 2018

You can download it from GitHub.

This version has many important fixes plus a few new filters and support for encoding using VA-API.

Framework

  • Changed buffer property to be mutable and adaptive to speed property in mlt_consumer.
  • Changed macOS RELOCATABLE build to use standard app bundle layout:
    • lib/mlt -> ../PlugIns/mlt
    • lib/frei0r-1 -> ../PlugIns/frei0r-1
    • lib/ladspa -> ../PlugIns/ladspa
    • share/mlt -> ../Resources/mlt
    • share/movit -> ../Resources/movit
  • Fixed a_track of transitions matching deleted track in mlt_tractor_remove_track().
  • Fixed multi-thread race crash in mlt_properties_clear().
  • Fixed possiblle null pointer crash in mlt_property_get_rect() and mlt_property_get_time().
  • Fixed non-animated strings containing ‘;’ or ‘=’ in mlt_animation_parse().
  • Fixed crash in clear_property() with mlt_animation.

Modules

  • Added a generic text filter to the plus module.
  • Added a timer filter to the plus module.
  • Added audio timeout handling to sdl2 consumers.
  • Added spot_remove filter to the plus module.
  • Added dds, ico, and webp filename extensions for qimage producer.
  • Added support for color_range property in avformat consumer: “pc” or “jpeg” for full range, otherwise limited range.
  • Added a window property to the audiowaveform filter.
  • Added MM:SS.SS to the timer filter.
  • Added query string param “multi” to the xml producer to force using the multi consumer.
  • Improved WebP image support in avformat producer.
  • Integrated hwupload filter in avformat consumer if using VAAPI codec.
  • Changed count producer to use pango if qtext not available.
  • Changed qt moduled to not call XInitThreads()
  • Changed color producer to only set alpha on frame if rgb24a requested or not opaque.
  • Changed the xml producer to pass quality and performance parameters to the multi consumer.
  • Fixed sdl2_audio distortion (regression in v6.10.0).
  • Fixed dynamictext filter to not error on empty text.
  • Fixed dynamictext aliased (regression in v6.10.0).
  • Fixed qimage outputs premultiplied if scaled internally.
  • Fixed crash in cbrts consumer if running property was never set.
  • Fixed rendering edges of some typefaces in qtext producer.
  • Fixed qimage fails to load with wrong filename extension.
  • Fixed affine dark right and bottom edge artifacts regression in (v6.10.0).
  • Fixed support for vp8 and vp9 with alpha channel in avformat producer.
  • Fixed interpolation mode selection in qimage producer.
  • Fixed crash in qimage with alpha channel.
  • Fixed some AAC MP4 files start playing from middle in avformat producer.
  • Fixed crash in avfilter if initialization fails.
  • Fixed crash in mix when frame rate is very low.
  • Fixed crash on missing luma file in composite transition.
  • Fixed A/V sync on some files in avformat producer.
  • Fixed seeking on audio filter with album art in avformat producer.
  • Fixed colorspace conversion in avformat consumer.

Other

  • Added more avformat consumer presets:
    • alpha/Quicktime Animation
    • alpha/vp8
    • alpha/vp9
    • alpha/Ut Video
    • lossless/Ut Video
  • Added square video profiles:
    • square_1080p_30
    • square_1080p_60
  • Added support for nodejs to the swig bindings.
  • Changed configure script to require opencv module be explicitly enabled.
  • Numerous spelling fixes in source code and comments thanks to codespell.

Search

Featured Apps

Flowblade

Kdenlive

Rugen

Shotcut

Subscribe

Subscribe to Newsvia RSS.

About

MLT enables you to author, manage, and run multitrack audio/video compositions.
See our Hall of Fame
Copyright © 2008-2018 by Meltytech, LLC.

Social Links