Ivo writes:
>
> It reminded me of something. A few weeks ago, I tried using the jpg-httpd
> part of FG and mencoder to capture flying in realtime. I used a looped wget
> to 'download' the images as fast as possible. The problem I stumbled upon,
> was the very low download speed I got. Around 3-4 kB/s, which is way too
> slow to get a decent framerate of say, 12-15fps. Does anybody know how to
> speed up the transferrate of FlightGear or should I replace the jpg-httpd
> network code (BufferSend) and have it write the JPEG file directly to disk?
> Any ideas?
You can try upping the speed with set_hz()
initialized in FlightGear\src\Network\jpg-httpd.cxx
bool FGJpegHttpd::open() {
if ( is_enabled() ) {
SG_LOG( SG_IO, SG_ALERT, "This shouldn't happen, but the channel "
<< "is already in use, ignoring" );
return false;
}
imageServer = new HttpdImageServer( port );
set_hz( 5 ); // default to processing requests @ 5Hz
set_enabled( true );
return true;
}
But .....
Probably best to use the jpeg-httpd as a prototype for a raw avi file
writer. i.e you probably want the tr stuff bit you don't really need it
There is some simple portable GL to AVI code here
http://cs.anu.edu.au/people/Hugh.Fisher/3dstuff/index.html
Norman
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel