{"id":27400885,"url":"https://github.com/bangnoise/ofxhapplayer","last_synced_at":"2025-04-14T03:52:31.641Z","repository":{"id":61950862,"uuid":"9648467","full_name":"bangnoise/ofxHapPlayer","owner":"bangnoise","description":"A Hap player for OpenFrameworks","archived":false,"fork":false,"pushed_at":"2025-03-12T00:37:36.000Z","size":15401,"stargazers_count":151,"open_issues_count":29,"forks_count":46,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-10T06:39:23.463Z","etag":null,"topics":["hap","openframeworks"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bangnoise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"bangnoise"}},"created_at":"2013-04-24T13:42:37.000Z","updated_at":"2025-04-04T20:54:47.000Z","dependencies_parsed_at":"2024-11-06T22:36:12.292Z","dependency_job_id":"2e15ac25-6a8a-4850-9a3a-0ffdabd3dc4d","html_url":"https://github.com/bangnoise/ofxHapPlayer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bangnoise%2FofxHapPlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bangnoise%2FofxHapPlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bangnoise%2FofxHapPlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bangnoise%2FofxHapPlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bangnoise","download_url":"https://codeload.github.com/bangnoise/ofxHapPlayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819357,"owners_count":21166474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hap","openframeworks"],"created_at":"2025-04-14T03:52:31.090Z","updated_at":"2025-04-14T03:52:31.635Z","avatar_url":"https://github.com/bangnoise.png","language":"C","funding_links":["https://github.com/sponsors/bangnoise"],"categories":[],"sub_categories":[],"readme":"ofxHapPlayer\n============\n\nA Hap player for OpenFrameworks on macOS, Windows and Linux.\n\nHap is a codec for fast video playback. You can learn more about Hap, and find codecs for encoding, at the [main Hap project](https://github.com/Vidvox/hap).\n\n\nInstallation\n------------\n\nThis repo has branches for major OF versions. Use the branch which matches the version of OF you are using. The [master](https://github.com/bangnoise/ofxHapPlayer/tree/master) branch matches the current OF release.\n\nFor example, if you want to use the addon with OpenFrameworks 0.9.x:\n\n    $ cd addons/ofxHapPlayer\n    $ git checkout OpenFrameworks-0.9\n\n\nLinux Requirements\n------------------\n\nThis step is only necessary on Linux. On macOS and Windows, the required libraries are bundled with the addon.\n\nOn Linux, ofxHapPlayer uses system libraries. For Ubuntu, the following packages are required:\n\nlibsnappy-dev, libswresample-dev, libavcodec-dev, libavformat-dev, libtbb-dev\n\n    sudo apt-get install libsnappy-dev libswresample-dev libavcodec-dev libavformat-dev libtbb-dev\n\nPull-requests with instructions for other distributions are welcomed.\n\nMSYS2 Requirements\n------------------\n\nofxHapPlayer will use MSYS2-installed libraries. The following are required (assuming you are using the suggested MINGW64):\n\nmingw-w64-x86_64-snappy, mingw-w64-x86_64-tbb, mingw-w64-x86_64-ffmpeg\n\n    pacman -S mingw-w64-x86_64-snappy mingw-w64-x86_64-tbb mingw-w64-x86_64-ffmpeg\n\nSome of these will usually have been installed as dependencies for OpenFrameworks.\n\nUsage\n-----\n\nUse the OF Project Generator to generate build files for your project, selecting ofxHapPlayer as an addon.\n\n    #import \"ofxHapPlayer.h\"\n\nofxHapPlayer inherits from ofBaseVideoPlayer\n\n    player.loadMovie(\"movies/MyMovieName.mov\");\n\nWhen you want to draw:\n\n\tplayer.draw(20, 20);\n\nNote that there is no direct access to pixels and calls to getPixels() will return NULL.\n\nAdvanced Usage\n--------------\n\nYou can access the texture directly:\n\n\tofTexture *texture = player.getTexture();\n\nNote that if you access the texture directly for a Hap Q movie, you will need to use a shader when you draw:\n\n    ofShader *shader = player.getShader();\n    // the result of getShader() will be NULL if the movie is not Hap Q\n    if (shader)\n    {\n        shader-\u003ebegin();\n    }\n\ttexture.draw(x,y,w,h);\n    if (shader)\n    {\n        shader-\u003eend();\n    }\n    \nCredits and License\n-------------------\n\nofxHapPlayer was written by [Tom Butterworth](https://6a64.xyz), initially in April 2013, supported by [Igloo Vision](http://www.igloovision.com/) and James Sheridan. Since then it has been supported by [Vidvox](http://vidvox.net/). It is released under a [FreeBSD License](http://github.com/bangnoise/ofxHapPlayer/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbangnoise%2Fofxhapplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbangnoise%2Fofxhapplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbangnoise%2Fofxhapplayer/lists"}