# GStreamer SDK documentation : Mac OS X deployment This page last changed on Nov 28, 2012 by xartigas. This page explains how to deploy GStreamer along your application. There are different mechanisms, which have been reviewed in [Deploying your application](Deploying%2Byour%2Bapplication.html). The details for some of the mechanisms are given here, and more options might be added to this documentation in the future. The recommended tool to create installer packages for Mac OS X is [PackageMaker](http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/PackageMakerUserGuide/Introduction/Introduction.html), provided with the [XCode developer tools](https://developer.apple.com/technologies/tools/). # Shared GStreamer This is the easiest way to deploy GStreamer, although most of the time it installs unnecessary files which grow the size of the installer and the target drive free space requirements. Since the SDK might be shared among all applications that use it, though, the extra space requirements are somewhat blurred.![](attachments/2097292/2424841.png) ![](attachments/thumbnails/2097292/2424842) With PackageMaker, simply add the GStreamer SDK **runtime ** disk image ([the same one you used to install the runtime in your development machine](Installing%2Bon%2BMac%2BOS%2BX.html)) inside your installer package and create a post-install script that mounts the disk image and installs the SDK package. You can use the following example, where you should replace `$INSTALL_PATH` with the path where your installer copied the SDK's disk image files (the `/tmp` directory is good place to install it as it will be removed at the end of the installation): ``` theme: Default; brush: bash; gutter: false hdiutil attach $INSTALL_PATH/gstreamer-sdk-2012.7-x86.dmg cd /Volumes/gstreamer-sdk-2012.7-x86/ installer -pkg gstreamer-sdk-2012.7-x86.pkg -target "/" hdiutil detach /Volumes/gstreamer-sdk-2012.7-x86/ rm $INSTALL_PATH/gstreamer-sdk-2012.7-x86.dmg ``` # Private deployment of GStreamer You can decide to distribute a private copy of the SDK with your application, although it's not the recommended method. In this case, simply copy the framework to the application's Frameworks folder as defined in the [bundle programming guide](https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW19): ``` theme: Default; brush: bash; gutter: false cp -r /Library/Frameworks/GStreamer.framework ~/MyApp.app/Contents/Frameworks ``` Note that you can have several versions of the SDK, and targeting different architectures, installed in the system. Make sure you only copy the version you need and that you update accordingly the link `GStreamer.framework/Version/Current`: ``` theme: Default; brush: bash; gutter: false $ ls -l Frameworks/GStreamer.framework/Version/Current lrwxr-xr-x 1 fluendo staff 21 Jun 5 18:46 Frameworks/GStreamer.framework/Versions/Current -> ../Versions/0.10/x86 ``` Since the SDK will be relocated, you will need to follow the instructions on how to relocate the SDK at the end of this page. # Deploy only necessary files, by manually picking them On the other side of the spectrum, if you want to reduce the space requirements (and installer size) to the maximum, you can manually choose which GStreamer libraries to deploy. Unfortunately, you are on your own on this road, besides using the object file displaying tool: [otool](https://developer.apple.com/library/mac/#documentation/darwin/reference/manpages/man1/otool.1.html). Being a similar technique to deploying a private copy of the SDK, keep in mind that you should relocate the SDK too, as explained at the end of this page. Bear also in mind that GStreamer is modular in nature. Plug-ins are loaded depending on the media that is being played, so, if you do not know in advance what files you are going to play, you do not know which plugins and shared libraries you need to deploy. # Deploy only necessary packages, using the provided ones This will produce a smaller installer than deploying the complete GStreamer SDK, without the added burden of having to manually pick each library. You just need to know which packages your application requires. ![](images/icons/grey_arrow_down.gif)Available packages (Click to expand)
Package name | Dependencies | Licenses | Description |
---|---|---|---|
base-system | JPEG, FreeType, BSD-like, LGPL, LGPL-2+, LGPL-2.1, LibPNG and MIT |
Base system dependencies | |
gobject-python | base-system | LGPL | GLib/GObject python bindings |
gstreamer-capture | base-system, gstreamer-core | LGPL and LGPL-2+ | GStreamer plugins for capture |
gstreamer-clutter | base-system, gtk+-2.0, gstreamer-core | LGPL | GStreamer Clutter support |
gstreamer-codecs | base-system, gstreamer-core | BSD, Jasper-2.0, BSD-like, LGPL, LGPL-2, LGPL-2+, LGPL-2.1 and LGPL-2.1+ |
GStreamer codecs |
gstreamer-codecs-gpl | base-system, gstreamer-core | BSD-like, LGPL, LGPL-2+ and LGPL-2.1+ | GStreamer codecs under the GPL license and/or with patents issues |
gstreamer-core | base-system | LGPL and LGPL-2+ | GStreamer core |
gstreamer-dvd | base-system, gstreamer-core | GPL-2+, LGPL and LGPL-2+ | GStreamer DVD support |
gstreamer-effects | base-system, gstreamer-core | LGPL and LGPL-2+ | GStreamer effects and instrumentation plugins |
gstreamer-networking | base-system, gstreamer-core | GPL-3, LGPL, LGPL-2+, LGPL-2.1+ and LGPL-3+ |
GStreamer plugins for network protocols |
gstreamer-playback | base-system, gstreamer-core | LGPL and LGPL-2+ | GStreamer plugins for playback |
gstreamer-python | base-system, gobject-python, gstreamer-core |
LGPL and LGPL-2.1+ | GStreamer python bindings |
gstreamer-system | base-system, gstreamer-core | LGPL, LGPL-2+ and LGPL-2.1+ | GStreamer system plugins |
gstreamer-tutorials | LGPL | Tutorials for GStreamer | |
gstreamer-visualizers | base-system, gstreamer-core | LGPL and LGPL-2+ | GStreamer visualization plugins |
gtk+-2.0 | base-system | LGPL | Gtk toolkit |
gtk+-2.0-python | base-system, gtk+-2.0 | LGPL and LGPL-2.1+ | Gtk python bindings |
snappy | base-system, gstreamer-clutter, |
LGPL | Snappy media player |
Universal |
---|
GStreamer SDK 2013.6 (Congo) for Mac OS X (Deployment Packages) - mirror - md5 - sha1 |
Due to the size of these files, usage of a Download Manager is highly recommended. Take a look at this list if you do not have one installed. If, after downloading, the installer reports itself as corrupt, chances are that the connection ended before the file was complete. A Download Manager will typically re-start the process and fetch the missing parts. |