Giter Site home page Giter Site logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024

Original comment by [email protected] on 26 Aug 2007 at 6:39

  • Changed state: Accepted
  • Added labels: Project-Video

from aforge.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
the issue is explaied at the end of this article: http://msdn2.microsoft.com/en-
us/library/ms781973.aspx

i was playing with the code on a sample app i made myself and if you comment 
these 3 
lines on VideoCaptureDevice.cs the issue disapears...with a new video window 
apearing wich is what i havent figured out yet hehe, but i gess thats a start

// configure video window
IVideoWindow window = (IVideoWindow) graphObject;
window.put_AutoShow( false );
window = null;

hope that helps a bit, ill keep looking further and let you know

Original comment by [email protected] on 6 Oct 2007 at 8:55

from aforge.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
ok, i think i got it.

comment these lines in VideoCaptureDevice.cs

// render pin
//graph.Render( Tools.GetOutPin( grabberBase, 0 ) );
...
// configure video window
//IVideoWindow window = (IVideoWindow) graphObject;
//window.put_AutoShow( false );
//window = null;

thing is, when you call "graph.Render(Tools.GetOutPin(grabberBase, 0))" your 
telling 
direct show to complete the graph for you from that point on with whatever 
works for 
your system, wich in this case i gess directshow says, hey, this graph needs a 
way 
to visualize the video, duh. and then DS creates a nice little preview filter 
for us 
wich as far as i know we dont need cause we are using the grabber to get our 
frames.

so, if we dont tell the graph to "render" or complete itself we dont get a 
preview 
filter wich we dont need and is whats causing the freeze. since we no longer 
have a 
preview filter the last 3 lines i commented arent really doing anithing at this 
point so we might as well take them out.

im no directshow guru but this makes sense to me and, at least on my test app, 
it 
works. let me know if it makes sense to you.

Original comment by [email protected] on 6 Oct 2007 at 9:10

from aforge.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
Thank you for your investigation and comments. I will check this approach as 
soon as 
I return from a trip and let you know about the results.

Original comment by [email protected] on 6 Oct 2007 at 11:53

from aforge.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024

Original comment by [email protected] on 17 Oct 2007 at 4:21

  • Changed state: Started

from aforge.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024
Remove Render() methods call of IGraphBuilder interface. The methods was 
completing 
graph with additional filters required for rendering, which were causing video 
stopping in the case of screen saver or workstation locking. Since we use 
Sample 
Grabber and we do our own rendering, the call was not actually required.

Available in revision 382. Will be released in 1.5.1 version.

Original comment by [email protected] on 17 Oct 2007 at 4:26

  • Changed state: Fixed

from aforge.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024

Original comment by [email protected] on 18 Feb 2008 at 12:37

  • Changed state: Verified

from aforge.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 17, 2024

Original comment by [email protected] on 19 May 2008 at 6:08

  • Changed state: Released

from aforge.

Related Issues (20)

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.