Media Support

    From The Document Foundation Wiki
    (Redirected from Media support)
    Other languages:


    This page describes the level of media support that is provided by LibreOffice.

    What media is supported?

    The Summary can answer most of your questions!


    LibreOffice handles multiple image types; for most of them there is custom import/export code built directly into LO, and they work the same on all platforms.

    There are very few formats for which external components are used:

    • JPEG - libjpeg (bundled in TDF builds, so always works)
    • EPS - a hacky import using various tools such as pstoedit, gs (GhostScript), convert (ImageMagick) which the user has to install; the EPS is converted by external tools either to EMF or to BMP for displaying


    It would be great if LibreOffice could use just one multimedia framework, but there is no good cross - platform multimedia framework that works with all codecs out of the box.

    As a result, LibreOffice typically uses the media framework of each OS for video / audio playback.

    On GNU/Linux we use GStreamer, on Windows we use DirectShow, and on macOS we use QuickTime (up to 10.8) or AVFoundation (10.9+).

    If the media framework has appropriate file format codec support installed, then LibreOffice can playback a particular file.

    This means that different OSes, or different versions of OSes (e.g. Debian vs. Fedora, or Win8 vs. WinXP) may support different sets of file formats.

    Can I insert a video in portrait format?

    202009 LO video portrait format.png

    This is not possible directly.

    LibreOffice is based on the aspect ratio when displaying videos.

    Workaround: A video recorded in portrait format can be rotated in a video editing program, for example, and filled up laterally when displayed in portrait mode.


    For the nitty - gritty results of our testing, see the platform - specific test pages:

    For the files we use for testing, see

    Test Procedures

    For images, we currently perform three tests:

    1. "Inserts into Writer correctly?" - Does the file insert into Writer correctly?
      • Steps:
        • Open Writer
        • Menu: Insert ▸ Image -> (try to) select the test image file
        • If the file inserts, does it display as expected?
    2. "Opens in Draw correctly?" - Does the file open and look reasonable in Draw?
      • Steps:
        • Open LibreOffice
        • Menu: File ▸ Open -> (try to) select the test image file. Are there any error messages/problems?
        • If the file opens, does it display as expected?
    3. "Output of file command" - What does the system's file command say about the document?
      • I know that both Linux and macOS systems have a version of the file command.
      • I believe that Windows does not have file, but other similar programs are available.
      • Steps:
        • Open a text shell (command line)
        • Run file <test-image-file>
        • Record the output string in the table


    We've hoped to be able to use libVLC on multiple platforms for media playback.

    The general idea was to detect if VLC was installed on a system, and then dynamically link into its libraries.

    • There was a Google Summer of Code project to implement this on Windows.
    • There are some problems with this idea.
      • VLC is not ideal as a framework
      • As quality is not great, VLC support is not enabled / compiled-in by default.
    • As of August 2014, VLC is not enabled on Ubuntu, but seems to be enabled on Debian


    If VLC support is enabled in your build of LibreOffice, you'll also need to have VLC installed.

    You can download packages for Windows and Mac here:

    And use your package manager on GNU/Linux. For example on Ubuntu:

    sudo apt-get install vlc

    Support on other platforms

    Builds of LibreOffice for other platforms (Android, iOS, etc..) generally use the media framework of the OS.

    As we improve these builds, we'll fill in more information about them.

    Related Pages