Camera image to video/image sequence?

I have a problem with one project. I need to send a video stream of my scene to an icecast server.

I'd like to capture not what is displayed on the screen, but what an other camera is seeing. So, I tought I could use a TextureRender to get the camera images in order to produce an images sequence from it. I could then make a video file from the sequence, and send it (all of this with ffmpeg2theora and oggfwd).



I could make something like this with takescreeshot(), but it's images of the screen and it's quite slow. There's something I did wrong I guess.



Though I'm really not sure it's the best way to do it, I even wasn't able to produce any image file from a second camera moving in my scene. I tried many thing, had a look at the takescreeshot() function in the LWGLRenderer to undernstand what is happening, tried the copyToTexture function of the TextureRender, but no way…



How could I save images to the hard disk from a TextureRender ?



Any ideas about it ? Any advice would be helpful…

Digging again with the good keywork in the forum gave me answers to this problem.



http://www.jmonkeyengine.com/jmeforum/index.php?topic=6274.0



Thanks to people who already made this possible!