← Back

ofxDSHapVideoPlayer

github.com/secondstory/ofxDSHapVideoPlayer · @secondstory
OF 0.9 Releases Video/Camera

ofxDSHapVideoPlayer is a Hap video player addon for openFrameworks (Windows-only)

40 21 Last commit 10y ago Created 11y ago

Forks

Forks pushed to more recently than secondstory/ofxDSHapVideoPlayer itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

B-Interactive/ofxDSHapVideoPlayer by @B-Interactive · ★ 0 · pushed 4y ago
akspect/ofxDSHapVideoPlayer by @akspect · ★ 0 · pushed 6y ago
UltraCombos/ofxDSHapVideoPlayer by @UltraCombos · ★ 0 · pushed 7y ago
acheson/ofxDSHapVideoPlayer by @acheson · ★ 0 · pushed 8y ago
P-A-N/ofxDSHapVideoPlayer by @P-A-N · ★ 1 · pushed 8y ago
ffunatsu/ofxDSHapVideoPlayer by @ffunatsu · ★ 0 · pushed 8y ago
haelbichalex/ofxDSHapVideoPlayer by @haelbichalex · ★ 0 · pushed 8y ago
sheridanis/ofxDSHapVideoPlayer by @sheridanis · ★ 0 · pushed 9y ago

README

ofxDSHapVideoPlayer

ofxDSHapVideoPlayer is a video player addon for openFrameworks. It plays Hap-encoded videos natively on Windows using Direct Show video playback tools.

Hap is a video codec that is decoded on the GPU. Some of its benefits include fast decompression and low CPU usage. It was written by Tom Butterworth for VidVox/VDMX. For further information on Hap, see http://vdmx.vidvox.net/blog/hap.

Requirements

Before encoding videos using Hap codec, install the Hap codec for Direct Show. An installer is available from http://www.renderheads.com/downloads/2015/HapDirectShowCodecSetup.exe

Usage

In ofApp.h

ofxDSHapVideoPlayer videoPlayer;


In ofApp.cpp

``c++ void ofApp::setup(){

videoPlayer.load("HapVideo.avi"); videoPlayer.play(); }

void ofApp::update(){

videoPlayer.update(); }

void ofApp::draw(){

ofSetColor(255); videoPlayer.draw(0, 0); }
``

Notes

ofxDSHapVideoPlayer plays back Hap videos in .avi containers. It will not play back Hap-encoded video files in QuickTime movie containers. Encode Windows .avi files using Adobe Media Encoder, After Effects or other.

Sample Hap video files are available on http://renderheads.com/product/hap-for-directshow/

ofxDSHapVideoPlayer now supports snappy compression, but the performance is not as snappy.

This addon works with openFrameworks 0.9.0. For 0.8.4, use release 1.0.0 (https://github.com/secondstory/ofxDSHapVideoPlayer/releases/tag/v1.0.0)

Get this addon

HTTPS
SSH

Latest release

v1.0.0 First release published 11y ago
First public release. Works on OF 0.8.4