pouët.net

.kkapture 0.01 - demo capturing made easy (hopefully)

category: code [glöplog]
didn't hear from my us correspondent yet :), but i'm releasing this anyway, since really it should work.

new features: all of the above, plus FMODEx support, plus d3d10 support (the latter only tested on texas, so it's bound to have some rough edges - feel free to post bug reports here :).

next version shouldn't take as long as this version. main change will be getting rid of detours (finding detours 1.5 is getting harder and harder and 2.0 has funky licensing conditions). oh, and the next version will be called kapture 1.00. even by my perfectionist standards, kkapture is sufficiently stable by now to get a proper major release :)
added on the 2009-03-01 22:26:33 by ryg ryg
oh, of course, you can download 0.08 from the usual location: http://www.farbrausch.de/~fg/kkapture/
added on the 2009-03-01 22:27:30 by ryg ryg
Yeah! Voidspace is working. You made me very happy. Thanks ryg!
added on the 2009-03-01 22:52:26 by raer raer
The "separate enconding thread" is working really well here also.

I have a strange problem now with "Fall equals winter", not kkapture related though. The image is somehow shifted:
BB Image

Didn't happen on my old Laptop...
added on the 2009-03-01 23:28:30 by raer raer
had the same here. no clue.
added on the 2009-03-01 23:30:28 by ryg ryg
Also the 3D objects are flickering... I remember it to be working on my ATI 9700 Mobility. Now I have a Geforce 9650M (Drivers v182.06). Must be that...
added on the 2009-03-01 23:35:23 by raer raer
probably buggy ddraw code.

hmmm. actually, maybe i could have it draw directly into the memory buffer i'm capturing (where i can set up "carefully controlled conditions") and not display anything at all :)
added on the 2009-03-01 23:41:27 by ryg ryg
Something else: "Antimoney" by Threestate (known for producing un-kkaptureable demos :) ) seems to use a paletted format. Kkapture doesn't do much.

Code: main: initializing... main: all main components initialized. main: reading parameter block... main: initialization done video: DirectDrawCreate successful avi_vfw: AVIFileOpen failed main: video encoder initialized. video: capturing at 512x384 video: paletted pixel format video: couldn't get palette! video: couldn't get palette! sound: emulating DirectSound sound: buffer created sound: buffer created sound: play main: ctrl+break pressed, stopping recording... main: shutting down... timing: 5.43 frames per second on average main: everything ok, closing log.
added on the 2009-03-01 23:50:15 by raer raer
I tried "automatic frameskip", but I guess only sound will be captured.
added on the 2009-03-01 23:51:42 by raer raer
kkapture normally works fine with paletted demos, and antimoney actually used to work for quite some time. hm.

anyway, kkapture tries to get the palette every frame, so it "only" failing twice and during initialization shouldn't be much of a problem. the "AVIFileOpen failed" is more likely to be the issue :)
added on the 2009-03-01 23:53:08 by ryg ryg
Hahaha. Didn't even see that. Time to got to sleep probably ;)

Cool idea with the internal buffer, ryg! That way you could work around driver differences etc. But that is probably a bit of work...

Similar things happen with "louis lane" by blasphemy. Really strange display artifacts...
added on the 2009-03-01 23:59:56 by raer raer
BB Image
added on the 2009-03-02 00:01:32 by raer raer
a lot of the early ddraw demos just assumed that rows came directly after each other in display memory, except nowadays they usually don't :)

get antimoney here to start just fine (make sure to turn on "skip digital silence at start"), but it stops after a second or so. strange. i know that it used to work with older versions of kkapture, but now i can't get it to run with one of the "back issues" either.
added on the 2009-03-02 00:10:11 by ryg ryg
Quote:

the "AVIFileOpen failed" is more likely to be the issue :)

What format does kkapture convert the frames to? Always R8G8B8? I tried to save uncompressed and then AVIFileOpen didn't fail. Maybe something with the codec...
added on the 2009-03-02 00:10:51 by raer raer
always rgb888, yeah. some codecs barf without any particular reason on some resolutions though.
added on the 2009-03-02 00:15:01 by ryg ryg
I think I've tried "skip digital silence at start", but wtf, now it works. It only shows the first scene though "anti... money..." and loops there...
added on the 2009-03-02 00:15:15 by raer raer
make sure codecs get a width that is multiple of at least 4, or better 16 pixels then you can be sure they do not screw up. Also make sure that stride is rounded to the nearest DWORD: http://msdn.microsoft.com/en-us/library/ms779712(VS.85).aspx (bottom part)

I've had some problems with VFW myself...
added on the 2009-03-02 00:26:40 by raer raer
Aaaand: Talent - Wonders never cease isn't working. Nothing captured with different settings. It repeats the first scene over and over again. Also the the logo overlay and screen flashes are not visible when kkapturing.

Code: main: initializing... main: all main components initialized. main: reading parameter block... main: initialization done video: DirectDrawCreate successful main: video encoder initialized. video: capturing at 640x480 sound: emulating DirectSound (created via CoCreateInstance) sound: buffer created sound: buffer created sound: play sound: play main: shutting down... main: hook thread exiting timing: 0.00 frames per second on average avi_vfw: stopped recording avi_vfw: avifile shutdown complete main: everything ok, closing log.
added on the 2009-03-02 00:52:06 by raer raer
Also "Lost Vegas" isn't working for me. It runs for 2-3 seconds and then freezes. Tried different options.
added on the 2009-03-02 01:46:37 by raer raer
When I run "Some bookprint and a broken heart" I get only the first scene, and this log output:

Code: main: initializing... main: all main components initialized. main: reading parameter block... main: initialization done video: DirectDrawCreate successful main: video encoder initialized. video: capturing at 640x400 sound: waveOutOpen 00000000 (44100 hz, 16 bits, 2 channels) sound: waveOutClose 009658d8 sound: waveOutOpen 00000000 (44100 hz, 16 bits, 2 channels) avi_vfw: opened video stream at 60.000 fps (6000/100) avi_vfw: opened audio stream at 44100 hz, 2 channels, 16 bits main: ctrl+break pressed, stopping recording... main: shutting down... timing: 47.86 frames per second on average avi_vfw: stopped recording avi_vfw: AVIFileOpen failed main: video encoder initialized. video: could not create blit target avi_vfw: avifile shutdown complete main: everything ok, closing log.


When I press "CTRL-BREAK" the desktop is screwed up, as if the resolution wasn't restored correctly.

...I'll change my nick into "rygs royal pain int the ass" some day... ;)
added on the 2009-03-02 02:00:38 by raer raer
I just started "Fall equals winter" at my work computer and it looks correct. Must be the driver then probably...
added on the 2009-03-02 09:48:48 by raer raer
The flickering is still there though, as you can see here.
added on the 2009-03-02 10:02:18 by raer raer
(600kb). It flickers only when kkaptured.
added on the 2009-03-02 10:02:56 by raer raer
is it possible to capture the whole screen-resolution in windowed mode? i mean if i want to capture two-or more windows at the same time?
added on the 2009-05-15 15:39:00 by rudi rudi
no. kkapture is not a screengrabber, it intercepts the drawing calls of indiivdual applications.
added on the 2009-05-15 18:08:17 by ryg ryg

login