what is the best tool to capture video of a pc demo
category: general [glöplog]
Hey everyone, sorry if this is a dupe thread,
I recently released my first pc demo and tried to provide a video capture of it on youtube as well. But running the capture tool and the demo on the same machine didn't perform too well, even though my demo is pretty light on the CPU. I tried Cam Studio and Camtasia tools and could barely get a <15 fps 400x300 capture.
What do you guys use for this? is there a better way/tool
Thanks
I recently released my first pc demo and tried to provide a video capture of it on youtube as well. But running the capture tool and the demo on the same machine didn't perform too well, even though my demo is pretty light on the CPU. I tried Cam Studio and Camtasia tools and could barely get a <15 fps 400x300 capture.
What do you guys use for this? is there a better way/tool
Thanks
Short version:
Best way: code a video/image sequence writer into the demo, encode using your favourite video software
Second best way: use .kkapture (see hardy's link), capture in a lossless format (huffyuv or lagarith), then use virtualdub et al. to postprocess (cut, crop, resize, etc) and encode.
Don't encode directly out of kkapture tho. For good quality you will want to employ 2-pass encoding and trying to do that out of kkapture is a royal pain in the ass.
Best way: code a video/image sequence writer into the demo, encode using your favourite video software
Second best way: use .kkapture (see hardy's link), capture in a lossless format (huffyuv or lagarith), then use virtualdub et al. to postprocess (cut, crop, resize, etc) and encode.
Don't encode directly out of kkapture tho. For good quality you will want to employ 2-pass encoding and trying to do that out of kkapture is a royal pain in the ass.
You could try Fraps?
Fraps does realtime capture exactly as Camtasia, Cam Studio, Hipercam, etc etc., so it's not what he needs.
--> Follow kb's advice. REALLY.
--> Follow kb's advice. REALLY.
if you go for his first advice, the the easiest is probably to save every frame of the demo in .tga format. Virtualdubmod can read sequence of .tga's and produce a clip for you.
Code:
// save XRES*YRES rgb (24Bpp) buffer to disk as a tga
bool saveBuffer( const unsigned int *buffer, int xres, int yres, const char *fileName )
{
unsigned char head24[18] = { 0x00, 0x00, 0x02, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
XRES&255, XRES>>8, YRES&255, YRES>>8, 0x18, 0x00};
FILE *fp = fopen( fileName, "wb" );
if( !fp ) return false;
fwrite( head24, 18, 1, fp );
fwrite( buffer, 3*XRES*YRES, 1, fp );
fclose(fp);
return true;
}
hey thanks a lot for the info guys. outputting video (tga or other) looks like the highest quality. I will have a better capture next time :)
Use kkapture, man. and take a look at this (and the page in general) too.
Quote:
a royal pain in the ass
iam quite impressed !
I'd vote for kkapture too. when something is well done, use it. :)
Unless, of course, it is your demo, in which case dumping the frames makes much more sense.
gloom: ...just like kb already suggested would be the best option ;)
kusma, i'd just code the frame dumping myself and then compress it with virtualdub.
The best tool to capture a pc demo? A PC!
kusma: That was sort of my point. :) After both kb and IQ already suggested the best solution, going "use kkapture!" seems like a weird thing to say.
thanks, i laughed :D
dumping n per second hires TGAs... well, i hope you have enough free diskspace :D
Just use libpng and dump pngs... I did that yesterday for timeless, 30FPS at 1280x720, 3:20 mins of video, made about 2,60GB of PNGs. That's bareable.
skrebbel: perhaps one could simply dump the frames manually from the code, and compress the stream afterwards?
sure! you can also code a 3D DCT codec while you're at it! and it's kusma who said it so it's the best!
bearable
hem... for all the manual dump fan club... are you sure it is straightforward to capture the song in sync with the frames? :p
Only if you use patented GNU Rocket technology.
I vote for pressing PrtScr as fast as you can while the demo is running.
perhaps even automating the prtscr-presses with windows scripting host!