PDA

View Full Version : New Armageddon Recorder beta


solemnwa~1
3 Jan 2013, 22:41
I am still alive!

During the Christmas holiday I resurrected Armageddon Recorder, rewriting the audio capture code to extract the sound directly from the game instead of recording it through the sound card's loopback source and fixed some minor bugs.

The new audio capture code eliminates sync issues since it extracts the audio directly from the game before mixing and also removes the dependency on having a sound card with such a source.

Links:

- Download (http://www.solemnwarning.net/armageddon-recorder.zip)
- Preview video (http://www.youtube.com/watch?v=l2KAFegS1W8) (outdated)

Source code:

git://solemnwarning.net/armageddon-recorder/

TODO:


Clipping detection/removal
Volume option
Better crash recovery
Determine which audio/video formats are actually useful
Capture ffmpeg output


Comments welcome :)

franz
4 Jan 2013, 04:30
thanks for these :) still haven't tried these yet, but I'm sure I will if I decide to edit something.

raffie
4 Jan 2013, 10:35
I sooooooooooo wish i could use this with PX games :eek:

solemnwa~1
6 Jan 2013, 20:49
New version up, added volume/clipping options and fixed long-standing issues with the log window.

solemnwa~1
7 Jan 2013, 19:31
New version really uploaded now.

wtfpantera
8 Jan 2013, 11:21
Might I ask what exactly is the purpose of this thing?

Muzer
8 Jan 2013, 13:39
It allows you to make videos from replays, which you can then edit together to make compilations or various other things like those on http://wormtube.worms2d.info

DaveyBoi
8 Jan 2013, 20:30
And it automatically extracts the sound along with the video. Most worms videos, unless they used Fraps, don't include the sound effects.

solemnwa~1
17 Jan 2013, 22:51
New version up, added support for looping audio (i.e. flamethrower), fixed issues with recognising some CDs, fixed some UI bugs and removed the sillier video formats.

EDIT: There is currently a bug in the audio library when mixing files of varying sample rates. Capturing with a frame rate of 25fps may help alleviate the problem until it is fixed.

StepS
25 Jan 2013, 10:16
could you rename the dsound.dll? it produces problems

Muzer
25 Jan 2013, 16:52
could you rename the dsound.dll? it produces problems
I expect the answer to this is "no", since it actually *needs* to use dsound.dll because it actually needs to intercept dsound function calls. WormKitDS does not.

StepS
25 Jan 2013, 16:54
I expect the answer to this is "no", since it actually *needs* to use dsound.dll because it actually needs to intercept dsound function calls. WormKitDS does not.

the dll could be injected by recorder himself, without need to self copy into WA folder...

Muzer
25 Jan 2013, 17:10
But it's much more convenient replacing the DLL because then you don't need to hook functions, just reimplement them. I'm not sure solemnwarning even wrote the DLL anyway, it might be some external software (I'm not sure).

solemnwa~1
26 Jan 2013, 23:07
What problems does dsound.dll cause?

StepS
26 Jan 2013, 23:14
What problems does dsound.dll cause?

how does it work if WormKitDS is in the folder? actually it's not needed, yep, but some people still have it
anyway no problem maybe, so nvm :)

Muzer
27 Jan 2013, 02:21
how does it work if WormKitDS is in the folder? actually it's not needed, yep, but some people still have it
anyway no problem maybe, so nvm :)
This has been thought of. It automatically renames any existing dsound.dll and puts it back afterwards.

Zantier
10 Mar 2013, 23:10
I'm on Windows 7 x64, and it only seemed to work with uncompressed video, in a format that I don't seem to be able to load into any other programs. Other video settings do not give an error (except possibly in the console window, which closes very quickly), but either don't output a file at all or a 0KB one. I've attached a game I tested it with, with "0" in the Start time box, and "2" in the End box. I had "Delete frames/audio when finished" unchecked, and "Adjust volume to prevent clipping" unchecked, with the "Lex preset" formats. I have tried other combinations too, but never had any luck when the Video format is anything other than Raw.

To get up to date, I tried compiling the source, pulled from your git link, in Cygwin, but I think I'm missing lots of dependencies and I'm not sure exactly what should be in the "../directx/" folder. Here's the output:
$ make
g++ -Wall -D_WIN32_WINNT=0x0501 -D_WIN32_IE=0x0300 -I./include/ -I../directx/ -c -o src/main.o src/main.cpp
In file included from src/main.cpp:34:
src/audio.hpp:26:24: gorilla/ga.h: No such file or directory
In file included from src/main.cpp:34:
src/audio.hpp:39: error: ISO C++ forbids declaration of `ga_Sound' with no type
src/audio.hpp:39: error: expected `;' before '*' token
src/main.cpp:42:1: warning: "BIF_NONEWFOLDERBUTTON" redefined
In file included from src/main.cpp:22:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/shlobj.h:995:1: warning: this is the location of the previous definition
src/main.cpp: In function `int main(int, char**)':
src/main.cpp:668: error: `gc_initialize' undeclared (first use this function)
src/main.cpp:668: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/main.cpp:771: error: `gc_shutdown' undeclared (first use this function)
Makefile:58: recipe for target `src/main.o' failed
make: *** [src/main.o] Error 1

StepS
11 Mar 2013, 16:11
(except possibly in the console window, which closes very quickly)

is the ffmpeg.exe updated and present in armageddon recorder's folder?

Zantier
12 Mar 2013, 20:15
Thanks StepS! I didn't know I needed that.

I was still having some problems when trying to export more than 2 seconds of video or when trying to use the latest build of ffmpeg as opposed to a slightly older one. But it turns out the audio file that is put into the capture folder, as well as the image sequence, was exactly what I needed.

DiscoChao
19 Mar 2013, 14:17
This tool is the easiest time I've had getting video out of Worms. I look forward to your continued development of it.

I will say the nameplates seem to be larger than they are normally when I'm using your tool. I don't know why this is. I'd love to see some controls for things like that. Turn things like crate contents and mine timer displays off. Stuff like that.

The "Lossless" preset seems to output a file with strange coloring, and uncompressed video seemed to give me a file with no video at all. I imagine that this is probably an issue on my end with the crazy world of video codecs.

Speaking of, can anyone recommend a good way to convert the mkv files into something I can dump into Premiere, without losing quality?

StepS
19 Mar 2013, 15:54
I will say the nameplates seem to be larger than they are normally when I'm using your tool. I don't know why this is. I'd love to see some controls for things like that. Turn things like crate contents and mine timer displays off. Stuff like that.

this can be enabled in Advanced settings of wa :D
these little settings are in the drop down of armageddon recorder

OutofOrder
19 Mar 2013, 20:52
I will say the nameplates seem to be larger than they are normally when I'm using your tool.
Options > Uncheck "Use bigger worm label font"

The "Lossless" preset seems to output a file with strange coloring, and uncompressed video seemed to give me a file with no video at all.
Your problem: Your system doesn't have installed a codec that supports Armageddon Recorder's Lossless mode, which uses a rather recent and not yet widespread H264 color profile.

Your solution: You can play those files if you install LAV filters (http://forum.doom9.org/showthread.php?t=156191) and configure your player to use these, but they will most likely not work if you're going to use those clips in a video editor. (In which case it will take additional configuration.)
If you need files playable everywhere, try the "H264 (high quality)" option in Armageddon Recorder.

Speaking of, can anyone recommend a good way to convert the mkv files into something I can dump into Premiere, without losing quality?
Instead of saving your files as .mkv, save them as .mp4 (change the file name in the "Output video" field). Armageddon Recorder will save compatible .mp4 files, which should load in Premiere.
If you don't want to lose quality while being able to edit in Premiere, I advise you to only export your clips as PNG file sequences, and load these in Premiere. Otherwise stick to High quality H264, which is both fast to load and decent quality.

DiscoChao
19 Mar 2013, 21:19
Thanks guys. I was being super blind not seeing the "Options" menu. Thanks for curing my blindness.

As for saving as mp4s Premiere got all persnickety and wouldn't import the files right, so I used HandBrake on them and after still having issues I copied some settings someone else used to get their stuff in Premiere here:

http://forum.warthunder.com/index.php?/topic/22283-dxtory-handbrake-and-premiere-settings-guide/

That seemed to get Premiere to stop being SASSY.