Skip to content

secondstory/ofxDSHapVideoPlayer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 

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

Contributors 4

  •  
  •  
  •  
  •