autr / ofxGStreamer

openFrameworks addon to use gstreamer under osx and windows. This addon has no code and instead uses the addon_config.mk file to add the needed files from the core + the flags needed to compile using gstreamer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ofxGStreamer

Build status

Build status

ofxGStreamer is an special addon that allows to use the openFrameworks GStreamer elements, ofGstVideoPlayer and ofGstUtils under windows and osx

This addon has no code and instead uses the addon_config.mk file included here to add the required files from the core + the flags needed to compile programs using GStreamer. Please see ofxGSTRTP for examples and implimentation of the toolkit.

The instructions below will only work with the latest version of the project generator on github. More information about getting OF setup is documented here. Use the project generater to create template projects after you have installed the GStreamer libraries according to the instructions below.

Installing gstreamer

This addon depends on the gstreamer SDK. We are using version 1.0 currently. To install it:

For OSX (Tested with XCode 11, Mojave)

See fork notes, or:

brew update
brew install gstreamer
brew install gst-plugins-base
brew install gst-libav

Be sure that ofxGStreamerSetBundleEnvironment is called when using macOS:


void ofApp::setup() {

	# working with brew installed libs

	ofxGStreamerSetBundleEnvironment() 

	# if packaging up a Release build

	string path = ofFilePath::getCurrentWorkingDirectory();
	ofxGStreamerSetBundleEnvironment( path )
}

For Windows (Tested in visual studio 2012, on Windows 7 & 8)

You need to download GStreamer v1.0. To install it under windows use the 1.2.2 packages located http://gstreamer.freedesktop.org/data/pkg/windows/1.2.2/ any later version from http://gstreamer.freedesktop.org/data/pkg/windows should work but haven't been tested yet. It is important to install the complete version when the installer asks, or it won't install some plugins like h264 encoder and decoder, audio input... in general everything in gstreamer bad and ugly won't be installed with the tipical installation mode.

After installing those 2 packages, you need to add the path to the bin directory of the installation to the PATH environment variable. In windows 8 open the control panel and search for environment variable. In windows 7 type "environment variable" into the run window. Edit the system PATH variable and at the end by adding a ; and the bin folder in the path where you installed gstreamer. The default path should be:

;C:\gstreamer\1.0\x86\bin

That will allow you to run the gstreamer tools like gst-launch from the command line in any folder and will let the applications know where to find the runtime dll's.

About

openFrameworks addon to use gstreamer under osx and windows. This addon has no code and instead uses the addon_config.mk file to add the needed files from the core + the flags needed to compile using gstreamer


Languages

Language:Python 96.2%Language:Makefile 2.2%Language:C++ 0.8%Language:Shell 0.7%Language:Batchfile 0.0%