I don't know the answer to your question, but maybe under fullscreen
mode you want to provide the display handle instead of the window
handle? Alternatively, is there a way having loaded a movie using this
lib that you can simply fetch the image data for the current frame? That
way it could be inserted into a texture and PsychoPy's own rendering can
take over. That also means we can do things like rotate, flip or make
semi-transparent. This is the method I've used with the avbin movies.
Maybe you'd take a look at MovieStim and see if there's a way to create
a VLC replacement?
How does installation work? To use the library do you simply get the
user to install the VLC application themselves somewhere? Or is there a
dll that ships separately? I'm wondering how distribution would work. (I
don't actually think it would be too bad to say users have to install
VLC to use movies)
Jon
--
Jonathan Peirce
Nottingham Visual Neuroscience
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
On 03/02/2012 20:16, Daniel Schreij wrote:
> As far as retrieving single frames form vlc, I think this is is a bit
> more problematic. I think these bindings (and vlc in general) are only
> designed for simple video playback and not to perform complex
> operations on the video and audio streams. As far as my experience
> goes, I have found it really hard to use these bindings for frame-per-
> frame operations (I also requires something like this at the moment).
> Basically you just tell vlc to play the video, and it goes... The only
> thing that I have found to have control over, is specifying in which
> window it renders its video output. VLC does provide some transform
> filters of its own though, with which you can manipulate movie output
> (specified in http://www.advene.org/download/python-ctypes/doc/).
This is a shame. The ability to render to an opengl texture seems a
really natural, flexible solution.
> As for the full screen problem: could you tell me which variable of
> winHandle contains the reference to the screen or display surface
> used?
Have a look at the pyglet.window module for various different sorts of
handles on this. e.g.::
display = pyglet.window.get_platform().get_default_display()
screen = display.get_default_screen()
> Hope this was of help.
Yes, thanks, it's very interesting to know about anyway.
Jon
--
Dr. Jonathan Peirce
Nottingham Visual Neuroscience