pouët.net

.kkapture 0.01 - demo capturing made easy (hopefully)

category: code [glöplog]
Bartman, if you need help, just ask. Speaking of which, I think I forgot to mail something to you :P
added on the 2006-09-19 13:43:10 by Preacher Preacher
yeah, would be cool if you would get to that recompile :) then, the next demo or die dvd will feature at least 3 traction demos :)
added on the 2006-09-19 14:02:17 by bartman bartman
The sample rate problem is strange.. we upgraded to newer version of fmod between Amethyst and 2^5, and I can't see anything wrong with our code.. and at least winamp reports the onwards tune to be 44100Hz and the kkapture sound wrong.

If it's easier, I can supply the original tunes.
added on the 2006-09-19 22:55:44 by Preacher Preacher
Preacher: the scene is not about making compromises!
added on the 2006-09-20 01:49:15 by kusma kusma
48000 is the new 44100... and 96000 is the new 48000 but my soundcard doesn't support it.

bartman: I tried capturing monorail again with more different settings and it still stops at exactly 30 seconds. Do you have an ATI or nVidia?
added on the 2006-09-20 03:45:09 by xernobyl xernobyl
preacher: for 2^5, i just ripped the ogg out of the pak file, and pasted it into the avi. worked fine!

xernobyl: I have a GF6600GT (AGP)

kkapturelog.txt looks like this:
Code: main: initializing... main: all main components initialized. main: reading parameter block... main: video encoder initialized. main: initialization done video/opengl: wglSwapIntervalEXT supported video/opengl: FBOs supported video: capturing at 1024x768 avi_vfw: opened video stream at 50.00 fps sound: emulating DirectSound 8 sound: buffer created sound: buffer created avi_vfw: opened audio stream at 44100 hz, 2 channels, 16 bits main: shutting down... timing: 21.53 frames per second on average avi_vfw: stopped recording avi_vfw: avifile shutdown complete main: everything ok, closing log.
added on the 2006-09-20 09:45:45 by bartman bartman
found the problem, it was a bug in the IDirectSoundBuffer::SetFrequency handling - i forgot to update the WAVEFORMATEX structure :)

version 0.05b at http://www.farbrausch.de/~fg/kkapture
added on the 2006-09-20 12:59:08 by ryg ryg
Trying to capture INF - Propaganda with the ZMBV-codec, I always get a
Code: main: initializing... main: all main components initialized. main: reading parameter block... main: video encoder initialized. main: initialization done video/opengl: wglSwapIntervalEXT supported video/opengl: FBOs supported sound: emulating DirectSound sound: buffer created sound: buffer created avi_dshow: audio format 44100 Hz, 16 bits/sample, 2 channels video: capturing at 640x480 avi_dshow: no mux! <fn C:\bla\infprop\propaganda.avi> avi_dshow: getfiltergraph failed

Tried most of the checkbox-combinations, windowed/fullscreen...
added on the 2006-09-25 09:52:40 by raer raer
C:\bla\infprop\propaganda.avi that is...
added on the 2006-09-25 09:53:53 by raer raer
you tried another codec? uncompressed or HuffYUV? tried using the avi_vfw encoder instead of avi_dshow?
added on the 2006-09-25 11:03:32 by bartman bartman
Capturing other demos works without problems...
I tried capturing uncompressed. Didn't work either. How to I use the avi_vfw encoder? I only tried the "select codec" button...
added on the 2006-09-25 12:13:30 by raer raer
Encoder: .AVI (VfW, segmented)
added on the 2006-09-25 14:32:16 by ryg ryg
I don't understand why the stream format or encoder should be responsible. Strange that it works with other demos...
I'll try it in the evening.
added on the 2006-09-25 14:52:35 by raer raer
because that's an encoder error mentioned in the log file. for some reason the directshow encoder isn't able to create a multiplexer (it does that sometimes).
added on the 2006-09-25 15:09:05 by ryg ryg
Using the vfw_writer I got the same result (showed the first/loading screen):
Code: video: capturing at 640x480 avi_vfw: AVIStreamSetFormat (video) failed avi_vfw: stopped recording avi_vfw: avifile shutdown complete
added on the 2006-09-25 22:51:36 by raer raer
sure that that ZMBV thingy is actually a *codec* and not just a decoder?
added on the 2006-09-25 22:54:24 by ryg ryg
Yes. I use it to encode DOSBox-videos. I tried uncompressed video too...
There might be a problem with the format with ZBMV 'cause it needs 16/32 bits, but uncompressed should work...
added on the 2006-09-25 23:12:53 by raer raer
What else could I try?
added on the 2006-09-25 23:13:31 by raer raer
just checked the source code, the ZMBV VfW codec can not encode videos. ZMBV encoding is pretty much hardcoded into dosbox.
added on the 2006-09-25 23:35:11 by ryg ryg
I encoded Fresnel with it just some minutes ago...
added on the 2006-09-25 23:50:05 by raer raer
and uncompressed video won't work either...
I'm sorry, but I feel rather stupid by now :-/
If I use uncompressed video it captures about 900k, then stops/locks up/whatever. Left it standing showing the loading screen for ~15 minutes. The captured files are broken.
added on the 2006-09-25 23:54:21 by raer raer
oops, misunderstood the code in the CanCompress function, sorry.

anyway, kkapture always outputs 24 bits because that's what basically every other video codec wants.

why don't you simply use huffyuv?
added on the 2006-09-25 23:55:20 by ryg ryg
any other error messages in the log file?

and yeah, it might very well happen that some demos don't work. i'll look into it when i find the time.
added on the 2006-09-25 23:56:42 by ryg ryg
when I capture to uncompressed video the log says:
Code: avi_vfw: opened audio stream at 44100 hz, 2 channels, 16 bits video: capturing at 640x480 avi_vfw: opened video stream at 25.00 fps

nothing after that obviously, because I killed the program...
added on the 2006-09-25 23:57:42 by raer raer
I don't think its because of the codec. I'll try huffyuv tomorrow just to make sure.
Thanks for helping anyway, ryg. Didn't wanna bitch around ;-) I just though someone would come up with a simple solution...
added on the 2006-09-26 00:02:47 by raer raer

login