All Projects → bangnoise → Ofxhapplayer

bangnoise / Ofxhapplayer

Licence: other
A Hap player for OpenFrameworks

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Ofxhapplayer

Ofxcv
Alternative approach to interfacing with OpenCv from openFrameworks.
Stars: ✭ 614 (+354.81%)
Mutual labels:  openframeworks
Openframeworks
openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
Stars: ✭ 8,652 (+6308.89%)
Mutual labels:  openframeworks
Homebridge Http Switch
Powerful http switch for Homebridge: https://github.com/homebridge/homebridge
Stars: ✭ 111 (-17.78%)
Mutual labels:  hap
Ofxgrafica
A simple and configurable plotting library for openFrameworks
Stars: ✭ 24 (-82.22%)
Mutual labels:  openframeworks
Corruptvideo
Corrupt Video™ is an OpenFrameworks based Glitch Art Software allowing its users to glitch and record movies or to corrupt real time videos.
Stars: ✭ 49 (-63.7%)
Mutual labels:  openframeworks
Ofxio
A collection of I/O core utils including a directory watcher, file filters and ordering, compression and more.
Stars: ✭ 78 (-42.22%)
Mutual labels:  openframeworks
Hap Python
A python implementation of the HomeKit Accessory Protocol (HAP)
Stars: ✭ 381 (+182.22%)
Mutual labels:  hap
Vscode of
openFrameworks empty example for visual studio code
Stars: ✭ 129 (-4.44%)
Mutual labels:  openframeworks
Ofxtweenzor
Tweening Engine for OpenFrameworks
Stars: ✭ 52 (-61.48%)
Mutual labels:  openframeworks
Homekit Ws2812b Controller
ESP8266 based  Homekit controller for WS2812B lightstrips with WS2812FX support🌈
Stars: ✭ 110 (-18.52%)
Mutual labels:  hap
Ofxstatusbar
Addon for openFrameworks to add icons and text to the statusbar of Mac OS X (needs support - see readme)
Stars: ✭ 11 (-91.85%)
Mutual labels:  openframeworks
Awesome Generative Art
Awesome generative art
Stars: ✭ 980 (+625.93%)
Mutual labels:  openframeworks
Ofxfontstash
Easy (and fast) unicode string rendering addon for OpenFrameworks. FontStash is made by Andreas Krinke and Mikko Mononen
Stars: ✭ 84 (-37.78%)
Mutual labels:  openframeworks
Ofxgraph
ofxGraph is a simple, easy and quick graph add-on for openframeworks.
Stars: ✭ 23 (-82.96%)
Mutual labels:  openframeworks
Norman Ar
Decorate your world with AR animations.
Stars: ✭ 122 (-9.63%)
Mutual labels:  openframeworks
Ofxdatgui
Simple to use, fully customizable, high-resolution graphical user interface for openFrameworks
Stars: ✭ 395 (+192.59%)
Mutual labels:  openframeworks
Ofxwatchdog
[openFrameworks] A process watchdog timer for openFrameworks applications.
Stars: ✭ 75 (-44.44%)
Mutual labels:  openframeworks
Ofxremoteui
OpenFrameworks addon serves any number of variables (bool, float, int, enum, string, ofColor) on the network, so that you can modify from outside the OF app. Includes a native OSX Client. OSC based.
Stars: ✭ 132 (-2.22%)
Mutual labels:  openframeworks
Hc
hc is a lightweight framework to develop HomeKit accessories in Go.
Stars: ✭ 1,660 (+1129.63%)
Mutual labels:  hap
Secure Video Specification
Documentation and examples of the HomeKit Secure-Video Specification
Stars: ✭ 99 (-26.67%)
Mutual labels:  hap

ofxHapPlayer

A Hap player for OpenFrameworks on macOS, Windows and Linux.

Hap is a codec for fast video playback. You can learn more about Hap, and find codecs for encoding, at the main Hap project.

Installation

This repo has branches for major OF versions. Use the branch which matches the version of OF you are using. The master branch matches the current OF release.

For example, if you want to use the addon with OpenFrameworks 0.9.x:

$ cd addons/ofxHapPlayer
$ git checkout OpenFrameworks-0.9

Linux Requirements

This step is only necessary on Linux. On macOS and Windows, the required libraries are bundled with the addon.

On Linux, ofxHapPlayer uses system libraries. For Ubuntu, the following packages are required:

libsnappy-dev, libswresample-dev, libavcodec-dev, libavformat-dev, libdispatch-dev

sudo apt-get install libsnappy-dev libswresample-dev libavcodec-dev libavformat-dev libdispatch-dev

Note that the Raspberry Pi does not support the compressed texture formats used by Hap, so you can't use this addon on a Raspberry Pi.

Pull-requests with instructions for other distributions are welcomed.

Usage

Use the OF Project Generator to generate build files for your project, selecting ofxHapPlayer as an addon.

#import "ofxHapPlayer.h"

ofxHapPlayer inherits from ofBaseVideoPlayer

player.loadMovie("movies/MyMovieName.mov");

When you want to draw:

player.draw(20, 20);

Note that there is no direct access to pixels and calls to getPixels() will return NULL.

Advanced Usage

You can access the texture directly:

ofTexture *texture = player.getTexture();

Note that if you access the texture directly for a Hap Q movie, you will need to use a shader when you draw:

ofShader *shader = player.getShader();
// the result of getShader() will be NULL if the movie is not Hap Q
if (shader)
{
    shader->begin();
}
texture.draw(x,y,w,h);
if (shader)
{
    shader->end();
}

Credits and License

ofxHapPlayer was written by Tom Butterworth, initially in April 2013, supported by Igloo Vision and James Sheridan. Since then it has been supported by Vidvox. It is released under a FreeBSD License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].