.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
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 :)
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.
If it's easier, I can supply the original tunes.
Preacher: the scene is not about making compromises!
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?
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?
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:
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.
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
version 0.05b at http://www.farbrausch.de/~fg/kkapture
Trying to capture INF - Propaganda with the ZMBV-codec, I always get a
Tried most of the checkbox-combinations, windowed/fullscreen...
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...
C:\bla\infprop\propaganda.avi that is...
you tried another codec? uncompressed or HuffYUV? tried using the avi_vfw encoder instead of avi_dshow?
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...
I tried capturing uncompressed. Didn't work either. How to I use the avi_vfw encoder? I only tried the "select codec" button...
Encoder: .AVI (VfW, segmented)
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.
I'll try it in the evening.
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).
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
sure that that ZMBV thingy is actually a *codec* and not just a decoder?
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...
There might be a problem with the format with ZBMV 'cause it needs 16/32 bits, but uncompressed should work...
What else could I try?
just checked the source code, the ZMBV VfW codec can not encode videos. ZMBV encoding is pretty much hardcoded into dosbox.
I encoded Fresnel with it just some minutes ago...
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.
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.
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?
anyway, kkapture always outputs 24 bits because that's what basically every other video codec wants.
why don't you simply use huffyuv?
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.
and yeah, it might very well happen that some demos don't work. i'll look into it when i find the time.
when I capture to uncompressed video the log says:
nothing after that obviously, because I killed the program...
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...
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...
Thanks for helping anyway, ryg. Didn't wanna bitch around ;-) I just though someone would come up with a simple solution...