Code Monkey home page Code Monkey logo

ofdirectshowvideoplayer's People

Contributors

oftheo 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

Watchers

 avatar  avatar  avatar  avatar  avatar

ofdirectshowvideoplayer's Issues

memory leak plus solution (?)

Hi Theodore,
thanks for crafting the ofDirectShowVideoPlayer. It works like a charm, much better then the build-in player of openFrameWorks. However, I did come across a nasty memory leak. I created an of application showing short movie clips, with live generated graphics in between. After several hours, the application crashed. It turned out the be a memory leak problem. After some debugging, it turned out to be something in the video player. It leaked an amount of memory equal to the size of an rgb frame per loadMovie. And after several days of fruitless searching, I found the solution. The m_pGrabber->SetBufferSamples(TRUE) seems to be the problem. If the function is not called, or called with FALSE as the argument, the memory leak disappears, an the application runs for ever, without eating it's memory over time. I hope you can confirm that this call is not crucial for some other aspect of the player. At least for me, this solution seems to be working.

Best regards, Alex Prooper

does not load gifs

Not sure if this player was intended to function with gif playback, but this line fails to load the gif

 bool loadMovie(string path, ofPixelFormat format){
.....
        //this is the easier way to connect the graph, but we have to remove the video window manually
        hr = m_pGraph->RenderFile(filePathW.c_str(), NULL);
.....
}

Despite the path being valid, the graph builder returns an error to the handle:

HRESULT_FROM_WIN32(ERROR_INVALID_NAME) : The filename, directory name, or volume label syntax is incorrect. 

I am on windows 10 with the k-lite codec media pack installed and quicktime. It seems that ofVideoPlayer supports gif playback, and since ofDirectShowPlayer is the default class implementation of the interface on windows, I would assume this is a bug.

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.