Giter Site home page Giter Site logo

ofxdshapvideoplayer's People

Contributors

kj1 avatar mantissa avatar prisonerjohn 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofxdshapvideoplayer's Issues

Convert to AVI with DXT

Hi,

We are using Adobe Media Encodeer to convert the avi file on windows.
The option "use snappy compression" is checked by default and is not possible to uncheck it because the option is disabled.

Do you know how can I convert the .avi with DXT option?
We don't need to access the texture data...

We tried to generate with ffmpeg and quicktime with no luck.

support for of 0.10

i have an error on of 0.10

gluErrorString identifier not

found in ofxDSHapVideoPlayer.cpp

alphaMask not working

Hey,
it seems like setting an alpha mask for the video does not work as it does for ofVideoPlayer where I can do:

video.getTexture().setAlphaMask(fbo.getTexture());
fbo.begin();
// draw some shapes
fbo.end();
video.draw(0, 0, 4320, 1920);

Any idea how to do this with ofxDSHapVideoPlayer?

ofShader warnings when running in Windows 10.

I have been writing/compiling my app from Windows 7, VS 2017.
Running the app locally works fine.

If I try to run the compiled app from a Windows 10 machine, I get a series of ofShader warnings, then the app stops rendering. I can see notices running in the debug window, so I know it is still running. just not rendering anything.

warnings look like:
Untitled

ofxDSHapVideoPlayer overwrites draw color

The ofxDSHapVideoPlayer::draw(int x, int y, int w, int h) method has a hardcoded ofSetColor(255);.
This makes it impossible to fade videos in and out, since the alpha is always set to full opacity. It also affects drawing after the ofxDSHapVideoPlayer, as there are no ofPushStyle() / ofPopStyle().
I'd suggest removing the ofSetColor and leaving it up to the user to set the draw color.

Unresolved external symbol load 64-bit

Hi,

I am trying to compile my application (I am getting the same error with the example code) and I am getting an unresolved external symbol error.

Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol gluErrorString referenced in function "public: virtual bool __cdecl ofxDSHapVideoPlayer::load(class std::basic_string<char,struct std::char_traits,class std::allocator >)" (?load@ofxDSHapVideoPlayer@@UEAA_NV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z) ofxDSHapVideoPlayerExample I:\of_v0.9.0_vs_release\addons\ofxDSHapVideoPlayer\example\ofxDSHapVideoPlayer.obj 1

I am on OF 0.9.0 and I am using Visual Studio 2015 Community Version. I am trying to compile in 64-bits (it works fine for 32-bits).

Playback of ffmpeg encoded files

Hi,

I am having trouble playing .avi HAP files encoded with FFmpeg. Specifically, the line 194 of ofxDSHapVideoPlayer.cpp:

int sz = (*(uint8_t *)ptrBuffer) + ((*((uint8_t *)(ptrBuffer)+1)) << 8) + ((*((uint8_t *)(ptrBuffer)+2)) << 16);

always returns 0.

The FFmpeg command I use to create the file is:
ffmpeg -i source.avi -vcodec hap -format hap output.avi

The frame always looks like this:
ffmpeghaperror

If I encode HAP using Adobe then it all works and the aforementioned line returns the right size.

It seems like FFmpeg is not including a size information in the header?

Any ideas anyone?

How to convert to hap

Hi , thanks for this add-on. I could run it with sample videos from renderheads website. I have worked with Hap videos and could convert Hap .mov videos using Quicktime. But I don't get how you can convert Hap videos in avi format and use them in this add-on.
I'll appreciate if you can help me with this.

Compiling errors with of 0.8.4 and 0.9.0RC2

Trying to compile the addon with OF 0.8.4 (VS2012) I get an error:
Error 9 error C2733: 'GetProcessInformation': no se permite una segunda vinculación C de la función sobrecargada C:\development\of_v0.8.4_vs_release\libs\quicktime\include\Processes.h 195 1 ofxDSHapVideoPlayerExample
(in english: it is not allowed a second link of the overloaded function)

I've also tried to compilr with OF 0.9.0RC2 (VS2015) and I get these errors:

Severity Code Description Project File Line
Error C2259 'ofxDSHapVideoPlayer': cannot instantiate abstract class ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\apps\myapps\ofxdshapvideoplayerexample\src\ofapp.h 24
Error C2259 'ofxDSHapVideoPlayer': cannot instantiate abstract class ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\apps\myapps\ofxdshapvideoplayerexample\src\ofapp.h 24
Warning D9030 '/Gm' is incompatible with multiprocessing; ignoring /MP switch ofxDSHapVideoPlayerExample C:\development\of_v0.9.0RC2_vs_release\apps\myApps\ofxDSHapVideoPlayerExample\cl 1
Error C2555 'ofxDSHapVideoPlayer::getPixels': overriding virtual function return type differs and is not covariant from 'ofBaseHasPixels_::getPixels' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.h 33
Error C2555 'ofxDSHapVideoPlayer::getPixels': overriding virtual function return type differs and is not covariant from 'ofBaseHasPixels_::getPixels' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.h 33
Error C2555 'ofxDSHapVideoPlayer::getPixels': overriding virtual function return type differs and is not covariant from 'ofBaseHasPixels_::getPixels' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.h 33
Error C2198 'PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC': too few arguments for call ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1397
Error C2039 'glTypeInternal': is not a member of 'ofTextureData' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1397
Error C2228 left of '.tryWait' must have class/struct/union ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1364
Error C2065 'cond': undeclared identifier ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1364
Error C2039 'getCondition': is not a member of 'DirectShowHapVideo' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1363
Error C2065 'cond': undeclared identifier ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1363
Error C2065 'Condition': undeclared identifier ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1363
Error C2039 'Condition': is not a member of 'Poco' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1363
Error C2039 'glTypeInternal': is not a member of 'ofTextureData' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1218
Error C2039 'glTypeInternal': is not a member of 'ofTextureData' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1213
Error C2039 'glTypeInternal': is not a member of 'ofTextureData' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1209
Error C2334 unexpected token(s) preceding '{'; skipping apparent function body ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1108
Error (active) namespace "Poco" has no member "Condition" ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.cpp 1108
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1108
Error C2143 syntax error: missing ';' before '&' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1108
Error C2039 'Condition': is not a member of 'Poco' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1108
Error (active) namespace "Poco" has no member "Condition" ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.cpp 1102
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1102
Error C3646 'cond': unknown override specifier ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1102
Error C2039 'Condition': is not a member of 'Poco' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 1102
Error C2228 left of '.broadcast' must have class/struct/union ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 226
Error C2039 'cond': is not a member of 'DirectShowHapVideo' ofxDSHapVideoPlayerExample c:\development\of_v0.9.0rc2_vs_release\addons\ofxdshapvideoplayer\src\ofxdshapvideoplayer.cpp 226
Error (active) class "ofTextureData" has no member "glTypeInternal" ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.cpp 1209
Error (active) class "ofTextureData" has no member "glTypeInternal" ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.cpp 1213
Error (active) class "ofTextureData" has no member "glTypeInternal" ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.cpp 1218
Error (active) namespace "Poco" has no member "Condition" ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.cpp 1363
Error (active) identifier "cond" is undefined ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.cpp 1363
Error (active) class "ofTextureData" has no member "glTypeInternal" ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.cpp 1397
Error (active) return type is not identical to nor covariant with return type "ofPixels_ &" of overridden virtual function "ofBaseHasPixels_::getPixels [with T=unsigned char]" ofxDSHapVideoPlayerExample c:\development\of_v0.9.0RC2_vs_release\addons\ofxDSHapVideoPlayer\src\ofxDSHapVideoPlayer.h 33

Incorrect format when used with ofVideoPlayer

I'm trying to use the ofxDSHapVidePlayer inside ofVideoPlayer:

shared_ptr<ofxDSHapVideoPlayer> hapPlayer = make_shared<ofxDSHapVideoPlayer>();
videoPlayer.setPlayer(hapPlayer);
videoPlayer.load("sample-1080p30-Hap.avi");

It's running but interpreting the format wrong:
capture-hap

Cinder port - Glew required?

Hi,

First, thanks for sharing your addon.

I am trying to create a cinder port, but am bumping into a few issues. For example, in ofxDSHapVideoPlayer.cpp line 1412 (glGetTexLevelParameteriv) and line 1414 (glCompressedTexSubImage2D) keep throwing GL_INVALID_OPERATION error. I checked the value of all the parameters in these functions and they are exactly the same in your addon and my cinder port.

The only difference is that I don't include glew and you do and glew.h includes some redefitions of these functions. Do you have any knowledge if this might be the reason for the invalid operation error I am getting?

Thanks!

LPCTSTR error when using ofxOsc with ofxDSHapVideoPlayer

I’ve never had this problem using ofxOsc with other projects. And ofxDSHapVideoPlayer hasn’t thrown this error until now. But something about having them both in the same project throws this error:

Severity Code Description Project File Line Suppression State
Error C2664 ‘CVideoTransformFilter::CVideoTransformFilter

(LPCTSTR,LPUNKNOWN,const IID &)’: cannot convert argument 1 from ‘const wchar_t [28]’ to ‘LPCTSTR’ | example | C:\Users\selli\openFrameworks\addons\ofxDSHapVideoPlayer\src\DSUncompressedSampleGrabber.cpp | 20 |  
image

which is weird, because it looks like the argument being given there is indeed in the LPCTSTR format (prefixed with an L). I’m able to replicate this error easily by just adding ofxOsc to ofxDSHapVideoPlayer’s example project in the Project Generator. I’m on Windows 10 using Visual Studio 2019

warning : pin not connected!

Hi!

I am opening multiple windows each with their own hap player running.

however, once I open two or three at once, the whole program crashes and the error "warning: pin not connected" is thrown at the start of it.

What does this error mean and how and I prevent it / protect against it?

Failed to create OpenGL texture

I'm trying to build your example in VisualStudio 2015. I've placed a HAP encoded MOV file in bin/data/ and updated hapPlayer.load() to reference it.

It compiles, but once running it throws these errors in the console.

warning: pin not connected
[ error ] ofxDSHapVideoPlayer: Failed to create OpenGL texture: width and/or height are zero
[ error ] ofTexture: getTextureData(): texture has not been allocated
error invalid operation

OpenFrameworks 0.9.3
VisualStudio 2015
Windows 10 64bit
Intel HD Graphics 5500 (ultrabook)

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.