gameoverhack / ofxthreadedvideo Goto Github PK
View Code? Open in Web Editor NEWopenFrameworks threaded video addon
License: Other
openFrameworks threaded video addon
License: Other
Hi
did anybody test ofxThreadedVideo on linux? I'm running successfully an application with the old goThreadedVideo add-on. With the new add-on the movies don't run, they're standing still (like paused). I'm on the of-develop branch on a up to date ubuntu system. Although, the frames are counted correctly. Internally, the movies seems to run, but the texture is not updated.
Best
Urs Hofer
Hello,
I'm going crazy trying to try to make work your addon which looks pretty nice (I just begin in OF). I have these errors about sound (below). I googled it and I did'nt found anything at all :(
Am I the only one with this issue ?
If you can help me I'd be very grateful :)
Bests,
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp||In member function 'virtual void ofxThreadedVideo::threadedFunction()':|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp|329|error: 'class ofVideoPlayer' has no member named 'setAudioTrackToChannel'|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp|333|error: 'class ofVideoPlayer' has no member named 'setAudioDevice'|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp|334|error: 'class ofVideoPlayer' has no member named 'setAudioDevice'|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp||In member function 'void ofxThreadedVideo::setPan(float)':|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp|541|error: 'class ofVideoPlayer' has no member named 'setPan'|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp|544|error: 'class ofVideoPlayer' has no member named 'setPan'|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp||In member function 'int ofxThreadedVideo::getLoopState()':|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp|570|warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp||In member function 'std::vectorstd::basic_string ofxThreadedVideo::getAudioDevices()':|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp|828|error: 'class ofVideoPlayer' has no member named 'getAudioDevices'|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp||In member function 'int ofxThreadedVideo::getAudioTrackList()':|
D:\06_LOGICIELS\openFrameWorks\addons\ofxThreadedVideo\src\ofxThreadedVideo.cpp|833|error: 'class ofVideoPlayer' has no member named 'getAudioTrackList'|
||=== Build finished: 7 errors, 1 warnings (0 minutes, 0 seconds) ===|
hello all,
i fixed the initial problem of the wrong os x sdk indicated in the example projects, but am running into this error in complication:
no such file or directory: '/Users/ali/Documents/Development/of_v0.8.4_osx_release/addons/addons/ofxThreadedVideo/src/ofxThreadedVideo.cpp'
i see that the path isn't right (double /addons) but not sure how to fix it. any ideas?
I'm getting an error at this line:
textures[loadVideoID].allocate(w, h, ofGetGLTypeFromPixelFormat(internalPixelFormat));
...and the compiler message "ofGetGLTypePixelFormat" was not declared in this scope.
I haven't looked at fixing it yet, just thought I'd pass the info on.
Are you sure ofxThreadedVideoNullCommand is instantiated? It is declared in ofxThreadedVideo.h but I think static variables need to be instantiated in the body file, no? They are a bit odd I think. Not sure why its a global static and not a class variable, but making following change seems to have fixed the issue with null ofxThreadedVideoNullCommand. Have yet to test thoroughly.
static ofxThreadedVideoCommand ofxThreadedVideoNullCommand;
Got a crash on line
ofxThreadedVideoCommand ofxThreadedVideo::getCommand(){
>>> return ofxThreadedVideoNullCommand;
Turned it into a class static variable
class ofxThreadedVideo : public ofThread {
public:
static ofxThreadedVideoCommand ofxThreadedVideoNullCommand;
}
#include "ofxThreadedVideo.h"
ofxThreadedVideoCommand ofxThreadedVideo::ofxThreadedVideoNullCommand;
ofxThreadedVideoCommand ofxThreadedVideo::getCommand(){
if(ofxThreadedVideoCommands.size() > 0){
return ofxThreadedVideoCommands.front();
}else{
return ofxThreadedVideo::ofxThreadedVideoNullCommand;
}
}
Hi.
I was hoping to find a way to avoid loading .mov files if they are corrupted. This means it has no dimension and length info when i look at it in the OS X file window.
I noticed the addon hast this call:
video->loadMovie(filePathName);
video->getLoadFail();
But this line does not return anything if the file is corrupted. Actually we do not even get to that line of the code. Instead we get this console print.
error message:
[ error ] ofQuickTimePlayer: createMovieFromPath(): couldn't load movie, NewMovieFromFile failed: OSErr -2048
[ error ] Could not load: 3 + loadMovie(../../../recordings/2016-04-27-11-11-31-102.mov)
Do you think there is a way to catch this message through the addon and prevent the file from being used?
thanks.
amazing addon.
i am running 100 128x64 files at the same time on OF 0.9.0 on OS X 10.10.5.
do you know what it would take to make it work with OF 0.9.3? All my other parts are written in 0.9.3.
also, quicktime is 64-bit if i am not mistaken. why the need to compile again 32-bit?
thanks a bunch.
Hi, both example projects are crashing on startup for me at the same place. I think its happening at this line:
if(videos[loadVideoID].loadMovie(paths[loadVideoID])){
i get this:
2012-10-09 23:29:43.772 ofxThreadedVideoExampleDebug[42256:5407] An uncaught exception was raised
2012-10-09 23:29:43.772 ofxThreadedVideoExampleDebug[42256:5407] QTMovie_QuickTime class must be initialized on the main thread.
2012-10-11 13:31:48.633 ofxThreadedVideoExample1Debug[1553:5007] *** Terminating app due to uncaught exception 'QTMovieInitializedOnWrongThread', reason: 'QTMovie_QuickTime class must be initialized on the main thread.'
I'm on osx 10.8 and xcode 10.5.
Any help is much appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.