Skip to content

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

License

Notifications You must be signed in to change notification settings

haelbichalex/ofxDSHapVideoPlayer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

void ofApp::setup(){

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

void ofApp::update(){

	videoPlayer.update();
}

void ofApp::draw(){

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

Notes

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 75.3%
  • Shell 19.4%
  • C 2.7%
  • Makefile 2.2%
  • Other 0.4%