Recording and Replaying Arma Games
- nicolas.b
- Grid Clown
- Posts: 1718
- Joined: Sun Jan 18, 2004 7:18 am
- Location: west philly Quotation: "Everybody's stuck being a moderator, but me. Sweet!"
- Contact:
Recording and Replaying Arma Games
i brought this idea up a couple years ago:
http://forums.armagetronad.net/viewtopic.php?t=543
has any progress been made or interest been shown lately in this concept?
one thing it would be nice to do is to re-render/replay really legendary or amazing rounds. the replays could then be turned into small movies (avi, mpg, mov...) to share online so as to introduce non-arma players to what a great game this is. i'd love to send more people towards arma if i could, but describing the game for people who are unfamiliar with "tron" can be a pain in the arse. this would be a great tool for that purpose, as well as for simply studying, planning and refining technique for the current arma players.
fellow arma players wouldn't need the movies- since they already had arma installed all they would need would be the (smallish?) data files for the rounds in question.
http://forums.armagetronad.net/viewtopic.php?t=543
has any progress been made or interest been shown lately in this concept?
one thing it would be nice to do is to re-render/replay really legendary or amazing rounds. the replays could then be turned into small movies (avi, mpg, mov...) to share online so as to introduce non-arma players to what a great game this is. i'd love to send more people towards arma if i could, but describing the game for people who are unfamiliar with "tron" can be a pain in the arse. this would be a great tool for that purpose, as well as for simply studying, planning and refining technique for the current arma players.
fellow arma players wouldn't need the movies- since they already had arma installed all they would need would be the (smallish?) data files for the rounds in question.
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: [email protected]
- nicolas.b
- Grid Clown
- Posts: 1718
- Joined: Sun Jan 18, 2004 7:18 am
- Location: west philly Quotation: "Everybody's stuck being a moderator, but me. Sweet!"
- Contact:
> It's used for debugging right now.
most excellent. any plans to take this a step further so as to be able to replay sessions within the user client?
> And I committed code a few months ago to output video.
sweet. is this in the current release then? do the movies include sound? are there notes and specs on how to proceed in the sourceforge documents?
also, does this mean people have used this to make some videos? are there arma videos floating around somewhere on the net to show people?
most excellent. any plans to take this a step further so as to be able to replay sessions within the user client?
> And I committed code a few months ago to output video.
sweet. is this in the current release then? do the movies include sound? are there notes and specs on how to proceed in the sourceforge documents?
also, does this mean people have used this to make some videos? are there arma videos floating around somewhere on the net to show people?
nicolas.b wrote:also, does this mean people have used this to make some videos? are there arma videos floating around somewhere on the net to show people?
- Some google videos
- I made these long ago… (pre-0.2.7.1).
- I remember somone else posting a link to a video on the forums… probably more out there.
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: [email protected]
Not sure if it make 0.2.8, but it's almost certainly in all 0.3 releases.nicolas.b wrote:> And I committed code a few months ago to output video.
sweet. is this in the current release then?
Nope. It outputs raw uncompressed, unformatted video frames.nicolas.b wrote:do the movies include sound?
Nope, just the commands I use. To build a client for use with --record, you need:nicolas.b wrote:are there notes and specs on how to proceed in the sourceforge documents?
Code: Select all
make CXXFLAGS='-DFIXED_FRAMERATE=29.97 -DFIXED_FRAMERATE_PRIORITY'
Code: Select all
armagetronad --videoout --playback aademo.aarec --benchmark | mencoder - -demuxer rawvideo -rawvideo w=640:h=480:format=rgb24:fps=29.97 -o aarec.avi -of avi -ovc lavc -lavcopts vcodec=mpeg4:vhq
I would like to change details to the absolute max quality for video rendering, but I haven't stumbled upon a simple way yet.
I made a few, but if they're floating anywhere you'll need to dignicolas.b wrote:also, does this mean people have used this to make some videos? are there arma videos floating around somewhere on the net to show people?
- Lucifer
- Project Developer
- Posts: 8640
- Joined: Sun Aug 15, 2004 3:32 pm
- Location: Republic of Texas
- Contact:
I was talking about this, sorry if it wasn't clear:
Luke-Jr wrote:Not sure if it make 0.2.8, but it's almost certainly in all 0.3 releases.nicolas.b wrote:> And I committed code a few months ago to output video.
sweet. is this in the current release then?Nope. It outputs raw uncompressed, unformatted video frames.nicolas.b wrote:do the movies include sound?Nope, just the commands I use. To build a client for use with --record, you need:nicolas.b wrote:are there notes and specs on how to proceed in the sourceforge documents?Actual video-generation client should work without these compile flags. To write a MPEG-4 file, use:Code: Select all
make CXXFLAGS='-DFIXED_FRAMERATE=29.97 -DFIXED_FRAMERATE_PRIORITY'
Code: Select all
armagetronad --videoout --playback aademo.aarec --benchmark | mencoder - -demuxer rawvideo -rawvideo w=640:h=480:format=rgb24:fps=29.97 -o aarec.avi -of avi -ovc lavc -lavcopts vcodec=mpeg4:vhq
I took a try at adding video recording to the Mac OS X client. I ran into a small problem: image is always nil — data however is fine. I'll try to look into it, but I don't know if I feel like taking it any further.
Code: Select all
- (void)addFrame:(void *)d length:(int)length
{
NSData * data = [[NSData alloc] initWithBytes:d length:length];
NSImage * image = [[NSImage alloc] initWithData:data];
if (image == nil)
NSLog(@"problem! image is nil");
…
}
- Attachments
-
- video_recording.patch.not.gz
- patch against trunk
- (18.04 KiB) Downloaded 294 times
Fixed it. Still some problems — like the video only playing back in Quicktime, and not VLC. The performance is quite bad, too.nemostultae wrote:I took a try at adding video recording to the Mac OS X client. I ran into a small problem …
http://generalconsumption.org/tmp/recording.mov
- Attachments
-
- recording2.patch.not.gz
- (19.78 KiB) Downloaded 318 times
?
I have a mac and i checked the generalconsumption recording but it doesnt play.
Am I right in thinking, you are trying to write a program which converts the recording files of armagetron into something like a quicktime-readable format?
Am I right in thinking, you are trying to write a program which converts the recording files of armagetron into something like a quicktime-readable format?
seriously™
Re: ?
I don't know why it won't play on your computer — are you running 10.4 or 10.3? (10.4 here). The program (that is, Armagetron) creates a video while you are playing. You could also create a recording and play that back to create the video.one™ wrote:I have a mac and i checked the generalconsumption recording but it doesnt play.
Am I right in thinking, you are trying to write a program which converts the recording files of armagetron into something like a quicktime-readable format?
I don't think I'll commit this stuff because:
a) it is slow
b) only plays backs in quicktime — I've tried other formats too.
c) only works on 10.4, so I'd be dropping 10.3.9 users.