GithubHelp home page GithubHelp logo

ofxhapplayer's People

Contributors

bangnoise avatar sheridanis avatar tobiasebsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofxhapplayer's Issues

HapPlayer works fine in the ofApp.cpp but not in other class

I'm working to display several videos overlay each other.
I draw the background and the front mask in ofApp.cpp and they goes smooth.
Between them, I draw some videos which is called by another class, they are correctly drawn between the background and the mask.
However, those video are just black boxes but not an video with alpha.
It worked before I try to apply an shader which I added ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);
into main.cpp.
I have also tried to draw the video in ofApp.cpp, and it works.
Anyone have idea how to fix it? Thanks!

(I'm working on OF 0.8.4 with OSX El Capitan)

libavformat branch: high CPU usage on Ubuntu 18.04 and OF 0.10.0

If I run one of the demo 480p hap videos I found online in the example, my CPU shoots to around 100-120% CPU usage according to the 'top' tool.

Running the same video through MPV uses around 18% CPU.

I tried converting the same file again using FFMPEG but got no benefits.

Any tips to get better performance?

AVFoundation-based player?

Not really an issue per se, but more of a question: have you done any work on, or know of anyone who's been tackling, an AVFoundation-based Hap player for OF?

libavformat branch: Audio with OF 0.10?

Hello,

I've tried using the same Hap file with audio which worked with 0.9.8 on macOS now with 0.10.0 and it doesn't work. When loading the movie the console says:

kAudioUnitErr_TooManyFramesToProcess : inFramesToProcess=1024, mMaxFramesPerSlice=128

When trying to play the movie the console says:

[warning] ofRtAudioSoundStream: stream over/underflow detected

Has anybody got audio to work with OF 0.10.0?

Greetings.

Varying frame rates for long movies when calling getCurrentFrame();

If you play a movie and use getCurrentFrame() then the movie framerate get progressively slower until the end of the movie. For a movie that's 130 sec long the rendering FPS goes from 700fps at the start of the movie to 30fps by then end. For a 10min movie it gets much lower to the point of being unwatchable.

This has been tested with ofx 0.8.4 and 0.9 under both windows and osx using both glut and glfw for the windowing toolkit. The easiest way to reproduce things is to add the below line to the example and swap the example movie for something a bit longer.

ofDrawBitmapString("Frame: " + ofToString(movie.getCurrentFrame()), 10, 45);

partial textures

Sometimes you only want a part of the frame in a texture. We should vend textures with parts of the frame.

libavformat branch: audio crash

Hello,
After playback of a 2-minute HD file with audio I'm seeing it crash:

Thread 1: signal SIGTERM

function:
ofxHap::AudioThread::~AudioThread()

line:
_thread.join();

This is on macOS 10.12.5, Xcode 8.3.3
Any ideas?

i have 2 questions

The first one, i try to load a hapq video and it doesnt load. A normal hap movie is playing fine. Do i miss something?
The second question is, i could get it running on mac os 10.11 and with of 090 but i need hapq in a 093 project. I got a lot of Linker errors. I also tried to change build settings to 32bit without success.

Glitches when loading file

When loading new video file into the same "player" object, there is "videocard/texture glitch" at the beginning of the movie:

https://vid.me/Q4U8

System: VS2012 Win8.1 oF0.8.4 default ofxHapPlayer example:
PS. used OF_FULLSCREEN and video was stretched to ofGetScreenWidth(), ofGetScreenHeight()

player.draw(0, 0, ofGetScreenWidth(), ofGetScreenHeight());

ofTexture problems

Hi!
I am trying to apply a shader to a texture from a Hap clip.
ofxHapPlayer player;
ofTexture tex;

setup()

player.loadMovie("test.mov");
player.play();

update()

tex = *player.getTexture();

draw()

tex.draw(0,0).

That works OK, but when I set tax.draw() inside a shader.begin()/shader.end() block it does not.
Using ofVideoPlayer and getTextureReference (without *) works OK. Any idea?

Edit: I can bypass it drawing to a FBO first, but doesn't look like a neat solution.

My shader is really dummy, does nothing...
.vert

version 120

extension GL_ARB_texture_rectangle : enable

extension GL_EXT_gpu_shader4 : enable

void main() {
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_FrontColor = gl_Color;
}

.frag

version 120

extension GL_ARB_texture_rectangle : enable

extension GL_EXT_gpu_shader4 : enable

uniform sampler2DRect texture0;

uniform float time;

void main(){
vec2 pos = gl_TexCoord[0].xy;
vec4 color = texture2DRect(texture0, pos);
gl_FragColor = color;

}

libavformat branch: player still doing work when paused

It looks like the new player is still working in the background when it is paused. I discovered this because I migrated a project to the new libavformat-player, where I pre-load 10 video files. Only one file is playing at a time, but every time the previous file is stopped and a new file starts playing, the frame rate drops increasingly.
I tried to only call update() on the current player, but not luck.

update version for oFv0.9?

Hello,
I would like to use the addon for one of my projects, and would like to ask if there will be an update version for oF v0.9 please?
Cheers,
Karen

hap-alpha

Hi,
i've got some issues with HAP-alpha video's that do not play correctly:

  • Alpha channel is not displayed correctly
  • setPosition/frame show weird behavior

Recoded the video in hap regular and it worked correctly.

(using 084, vs2012 & Hap QuickTime Codec version 6)

Thanks!

libavformat branch: fatal error

Hello,
I'm trying to run the example for ofxHapPlayer > libavformat branch on openframeworks release 9.8 on a mac 10.11. After I have installed the proper codecs based on the readme via brew install I try to build the example project and I get the following error.

dyld: Library not loaded: libavcodec.57.dylib
Referenced from: /Users/FakeMike/Desktop/of_v0.9.8_osx_release/addons/ofxHapPlayer/example/bin/example.app/Contents/MacOS/example
Reason: image not found
(lldb)

Error compiling on Ubuntu 64bit

The limitation of the QuickTime 32bit library makes it not possible to compile the example on Ubuntu 17.10 (only has a 64bit release).
So I have to use the x64 version of OF 0.9.8.
First two errors of a long chain of errors I get:

../of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/HapSupport/src/HapSupport.h:41:2: error: #error Hap QuickTime support requires 32-bit QuickTime APIs but this target is 64-bit
 #error Hap QuickTime support requires 32-bit QuickTime APIs but this target is 64-bit
  ^~~~~
../of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/HapSupport/src/HapSupport.c:35:10: fatal error: Windows.h: No such file or directory
 #include <Windows.h>

I tried out the other branches but no success with those either, throwing the same errors.

Not Compiling in Windowds 10

Hi, I am trying to compile an example in Windows 10, Visual Studio 2015.
Made a new projec with Project generator and added the add on. Copied src and bin folders into my new Project. I am compiling first 32 bits
There were a lot of errors on the source cpp files. Has anybody tried to compile it in this platform?
Thanks!
D!

unable to work with getTexture()

I am trying to use ofxHapPlayer to create one real time performance and I need to pass video frames without transparency to shaders for further postprocessing, but i have been unable to use the getTexture() method to work.

Most ofx functions that handle textures expect an ofTexture& instead of an *ofTexture as the function is returning, but even modifying the function to get an ofTexture& didn't work for me. I am not sure if it is for the texture color type or any other incompatibility.

Compilation under Raspbian

I am assuming Raspbian is a valid distro for this addon, which could not be...
I could not install the libswresample-dev lib. Otherwise, it seemed OK.

When compiling, I got a bunch of errors regarding definitions:

/home/pi/openFrameworks/addons/ofxHapPlayer/src/ofxHapPlayer.cpp: In member function ‘virtual ofTexture* ofxHapPlayer::getTexture()’:
/home/pi/openFrameworks/addons/ofxHapPlayer/src/ofxHapPlayer.cpp:568:34: error: ‘GL_COMPRESSED_RGBA_S3TC_DXT5_EXT’ was not declared in this scope
                 internalFormat = GL_COMPRESSED_RGBA_S3TC_DXT5_EXT;
                                  ^
/home/pi/openFrameworks/addons/ofxHapPlayer/src/ofxHapPlayer.cpp:593:40: error: ‘GL_BGRA’ was not declared in this scope
             _texture.allocate(texData, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV);
                                        ^
/home/pi/openFrameworks/addons/ofxHapPlayer/src/ofxHapPlayer.cpp:593:49: error: ‘GL_UNSIGNED_INT_8_8_8_8_REV’ was not declared in this scope
             _texture.allocate(texData, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV);
                                                 ^
/home/pi/openFrameworks/addons/ofxHapPlayer/src/ofxHapPlayer.cpp:603:28: error: ‘GL_CLIENT_PIXEL_STORE_BIT’ was not declared in this scope
         glPushClientAttrib(GL_CLIENT_PIXEL_STORE_BIT);
                            ^
/home/pi/openFrameworks/addons/ofxHapPlayer/src/ofxHapPlayer.cpp:603:53: error: ‘glPushClientAttrib’ was not declared in this scope
         glPushClientAttrib(GL_CLIENT_PIXEL_STORE_BIT);
                                                     ^
/home/pi/openFrameworks/addons/ofxHapPlayer/src/ofxHapPlayer.cpp:631:27: error: ‘glPopClientAttrib’ was not declared in this scope
         glPopClientAttrib();
                           ^

hapQ issue

Hello,
I have successfully loaded a hapQ codec video. Unfortunately, I was implementing a fade as seen below on regular hap codec video which is not working with hapQ. Any ideas on this issue? Thanks for the help.

ofColor hapColor = ofColor(255);
hapAlpha.a = 50;
ofSetColor(hapAlpha);

Hap Video opacity become gray in color

I am developing on OSX El Capitan and OF0.8.4.
Trying to play videos with hap alpha codec one over other, I found that the one with opacity on top will become gray in color.
The gray color mainly appears on the pixels of opacity within 0 to 255, which is completely ok on 0 or 255 in alpha channel.
I can see that the gray part is transparent to show the bottom layer, but what I want is to blend it lighter in color than make it gray.
Anyone have idea how to adjust the code so that I can make it?
Thanks!

Trouble loading vector of ofxHapPlayer objects

Hello,
I tried making a vector of ofxHapPlayers just as below:

vector<ofxHapPlayer> player;  //note: this piece was in .h file

 ofDirectory videoDir;
    videoDir.listDir("movies");

    for (int i = 0; i < (int)videoDir.size(); i++){

        ofxHapPlayer tempVideo;
        tempVideo.setup(videoDir.getPath(i));
        cout << "Loading Movie: " << videoDir.getPath(i) << endl;

        player.push_back(tempVideo);
    }

When running this code I would get the following error in my console:

Loading Movie: movies/Organ_Intro_1.mov
*Loading Movie: movies/Organ_Intro_3.mov
*VidPlayerDebug(8972,0xa0ea11d4) malloc: *
* error for object 0x6fda000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
*(lldb)

I made sure to log out that my paths were correct. I also tried a single ofxHapPlayer to load each video file which I did with total success. I then found a OF forum entry with the following code below. This code seems to work thus far. My understanding of what is happening is limited, but I thought it may be of interest to see what didn't work and what now works to see if there could be a fix in the addon, or if it's something I'm doing incorrectly on my end. Thanks for the help!

 vector<ofPtr<ofxHapPlayer> > player;  // this line of code was included in .h file

 ofDirectory videoDir;
    videoDir.listDir("movies");


    for (int i = 0; i < (int)videoDir.size(); i++){

        ofPtr<ofxHapPlayer> v (new ofxHapPlayer());
        v->loadMovie(videoDir.getPath(i));

        while(!v->isLoaded()) {

            ofSleepMillis(10);
            ofLog() << "sleeping" << endl;

        }

        player.push_back(v);
        player[i]->play();

    }

Error: Field type 'ofxHapPlayer' is an abstract class

Trying to use ofxHapPlayer with the most recent openFrameworks fro git I get the following error. Error: Field type 'ofxHapPlayer' is an abstract class. My guess is this is due to some changes in ofBaseVideoPlayer maybe a virtual method that is not implemented by ofxHapPlayer. I looked around and tried to make sure every virtual method ofBaseVideoPlayer had an implementation in ofxHapPlayer but did not manage to fix it.

Snappy version incompatibility. Update in bundle?

Hello!
I am using the libav branch, OSX 10.12.
It compiles but crashes right after execution with this message:
dyld: Library not loaded: @rpath/snappy/lib/osx/libsnappy.1.dylib
Referenced from: /Developer/of_v0.9.8_osx_release/apps/myApps/Cannula_Munich64/bin/Cannula_Munich64Debug.app/Contents/MacOS/Cannula_Munich64Debug
Reason: Incompatible library version: Cannula_Munich64Debug requires version 5.0.0 or later, but libsnappy.1.dylib provides version 1.0.0

It is my understanding that the included snappy lib in the bundle is version 1. Is there anyway to update the version in the bundle?

Thanks!

"HapSupport.c error: 'true' undeclared" in Code::Blocks

While compiling in Code::Blocks I get:

HapSupport.c 66 error: 'false' undeclared (first use in this function)
HapSupport.c 70 error: 'true' undeclared (first use in this function)
...

I fixed it for me by adding #include <stdbool.h> here:

#if defined(__APPLE__)
#define HAP_BZERO(x,y) bzero((x),(y))
#else
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#include <Windows.h>
#include <stdbool.h>
#define HAP_BZERO(x,y) ZeroMemory((x),(y))
#endif

Need to indicate load() is ongoing during background load

I'm working for Igloovision on updating a Windows app from OF 8.4 to 9.7
We want to use ofxHapPlayer as the default player, but if the movie is non playable we try other players.

I've switched to the libavformat branch and have found that isLoaded() is no longer true immediately after calling load(), I'm guessing because the load happens in a new thread?

Can I find out somehow if the load is in progress and wait for a result?
Is there any other way of testing whether the movie can be played or not?

Can't change speed when playing in thread

The video just renders as a black box when I play it at altered speed from a thread:

class MyThread : public ofThread {

    ofxHapPlayer* hapPlayer;
public:
    void assign(ofxHapPlayer* p){
        hapPlayer = p;
    }

    void threadedFunction() {
        hapPlayer->setSpeed(ofRandom(0.2, 4.5));
        hapPlayer->setPosition(0);
        hapPlayer->play();
    }
};

MyThread myThread;

void ofApp::setup(){
    hapPlayer.load("test/video.mov");
    hapPlayer.setLoopState(OF_LOOP_NONE);
    myThread.assign(&hapPlayer);
}

void ofApp::update(){
    hapPlayer.update();
}

void ofApp::draw(){
    hapPlayer.draw(5, 5);
}

void ofApp::keyReleased(int key){
    myThread.startThread(true, false);
}

Memory management

Hi!
I would like to know how the addon manages the info of the clip and its frames once it is loaded in memory and how it is closed.
I am experimenting issues when loading several in an array, like some positions being smashed by other clips.
Thanks,
Diego

Windows support

With OF 0.9, using QuickTime becomes a pain on Windows. We should use the DirectShow codec instead. Pull requests very welcome if anyone works on this.

Crash in ofxHap::AudioThread::~AudioThread() when playing multiple videos

hello there, just wanted to check that i'm not missing something here. i'm trying to have multiple players next to each other. but only one of them outputs sound.

also the app locks up, when i close it. debugger pointed me to
ofxHap::AudioThread::~AudioThread()

guess the audio streams are clashing somehow? is there a way for me to fix?

i'm on osx 10.13, openframeworks 0.10.1 and ofxHapPlayer master branch.

thank you in advance! love this addon <3

Hap Alpha video not working on AMD graphics card

I have a strange issue.
My application plays some Hap Alpha files. Everything works fine on two different Windows computers (one has NVIDIA Titan card, the other has an integrated Intel Iris Plus 650). It even works on my Mac with a NVIDIA GT 750M card. But...

When I try the application on a machine with a AMD Radeon RX Vega – there is no image drawn. I have also tried it with another (identical) computer with no luck.

Then I tried to swap the files to normal Hap (no alpha) – and the video shows perfectly through the AMD graphics card. Strange.

So... something about Hap Alpha compressed textures seems to not be compatible with the AMD drivers. Has anyone had similar issues?

BTW. I'm on WIndows 10. Tried both 32-bit and 64-bit binaries. No difference.

libavformat, av_packet_XXX was not declared error

Hi I'm Gene from FakeLove.

I am running into issue with libavformat. Trying to run(make) example in libavformat branch and I am getting some errors:
`
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In member function ‘void ofxHap::PacketCache::store(AVPacket*)’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:49:44: error: ‘av_packet_alloc’ was not declared in this scope
AVPacket *packet = av_packet_alloc();
^

/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In member function ‘void ofxHap::PacketCache::cache()’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:68:30: error: ‘av_packet_free’ was not declared in this scope
av_packet_free(&p);
^/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In member function ‘void ofxHap::PacketCache::store(AVPacket*)’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:49:44: error: ‘av_packet_alloc’ was not declared in this scope
AVPacket *packet = av_packet_alloc();
^

/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In member function ‘void ofxHap::PacketCache::cache()’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:68:30: error: ‘av_packet_free’ was not declared in this scope
av_packet_free(&p);
^

/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In static member function ‘static bool ofxHap::PacketCache::fetch(const std::map<long unsigned int, AVPacket*>&, uint64_t, AVPacket*)’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:113:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pair.second->pts <= pts && pair.second->pts + pair.second->duration > pts)
^

/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:113:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pair.second->pts <= pts && pair.second->pts + pair.second->duration > pts)
^
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In static member function ‘static void ofxHap::PacketCache::limit(std::map<long unsigned int, AVPacket*>&, const ofxHap::TimeRangeSet&, bool)’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:145:30: error: ‘av_packet_free’ was not declared in this scope
av_packet_free(&p);
^

/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In static member function ‘static void ofxHap::PacketCache::clear(std::map<long unsigned int, AVPacket*>&)’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:159:36: error: ‘av_packet_free’ was not declared in this scope
av_packet_free(&pair.second);

/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In static member function ‘static bool ofxHap::PacketCache::fetch(const std::map<long unsigned int, AVPacket*>&, uint64_t, AVPacket*)’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:113:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pair.second->pts <= pts && pair.second->pts + pair.second->duration > pts)
^
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:113:81: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pair.second->pts <= pts && pair.second->pts + pair.second->duration > pts)
^
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In static member function ‘static void ofxHap::PacketCache::limit(std::map<long unsigned int, AVPacket*>&, const ofxHap::TimeRangeSet&, bool)’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:145:30: error: ‘av_packet_free’ was not declared in this scope
av_packet_free(&p);
^
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp: In static member function ‘static void ofxHap::PacketCache::clear(std::map<long unsigned int, AVPacket*>&)’:
/home/fakelinux/Documents/of_v0.9.8_linux64_release/addons/ofxHapPlayer/libs/ofxHap/src/PacketCache.cpp:159:36: error: ‘av_packet_free’ was not declared in this scope
av_packet_free(&pair.second);
`

My system setting is
ubuntu 16.05 LTS
openframeworks v0.9.8_linux64_release

I have ran linux instructions before hand.

Any ideas?

Thank you!

libavformat branch: deleted copy constructor

The work on this branch is very much appreciated. Everything basically works, expect when I tried using a vector to store instances of ofxHapPlayer. It makes sense since the copy constructor isn't implemented. Is there a better way to store dynamically created ofxHapPlayers?
If not then is this I guess a way of saying I would love to see this implemented :) (I would do it myself but I know it's very difficult to get it right with pointers and such).

Glitches

Hi!
I am experimenting gltiches when loading into memory. First they happened because if calling .update right after calling .play, but now they seem to happen when loadin -.load- them in a pool/array.
Thanks!

Unintended video-mosh on Linux Ubuntu

Hi everyone,
I just tried ofxHapPlayer on Linux Ubuntu Studio. The example run without errors, but the video appears like in the attachment.
Is this an issue on my side or on the addon's?
Hap videos play well with mPlayer, b.t.w.

bests,
Gil

Multiple players in OpenGL 3+ doesn't work

Tried of_v0.9.8 (libavformat-OF-0.9 branch) and of_v0.10.0 (master branch)

Setup

  • MacOS High Sierra (10.13.6)
  • Xcode 10.1 / 9.4.1
  • Xcode: Base SDK - OS X 10.11 (libavformat-OF-0.9 branch)
  • Xcode: Base SDK - macOS 10.13 (master branch)

Works

  • Project Generator > add ofxHapPlayer > load / update / draw (first video works)
  • Add second ofxHapPlayer (different video) > load / update / draw (both videos work)

Doesn't work

  • Change OpenGL to 3.2 (first video works, second renders black)

I'm going to look into this but posting here in case anyone has run into this and can help. Thanks!


(main.cpp)

ofGLWindowSettings settings;
settings.glVersionMajor = 3;
settings.glVersionMinor = 2;
ofCreateWindow(settings);

ofRunApp(new ofApp());

Crash with ASIO

I have a project that is playing back some Hap files with audio. All is fine with the inbuilt sound card however, when I install the MOTU soundcard drivers (which install ASIO drivers), my app crashes when the videos are loaded. Even when the soundcard is not plugged in.

Is this a known issue with a solution?

Hap Q Alpha should be supported

I've just tried to load a recently encoded Hap Q Alpha from a tiff sequence (using quicktime 7)
Hap Q Alpha, 1920 × 1080, Millions+
and it returns the following error:

[ error ] ofxHapPlayer: Invalid data found when processing input (may not be a Hap movie)

Using libavformat here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.