Recording AVI of PPC screen
Since I'm moderately sure no such program exists, would it be feasable to make a program that can record audio and video of the PocketPC screen, CPU wise? I'd like to use it on some of my coming reviews, however all the remote control programs are too slow (at least on my WiFi connection - I'm not shelling out $100 for the CF ethernet card) to really be usable, nor do they record audio.
File space is also a concern, but I'm only talking about a few minutes at most, with a 512MB CF card, or sending the files right to the desktop.
Definitely shooting for the stars here, but what do you all think?
I've been making a few little vids by taking the whole screen shoving 50 frames on SD card and then twiddling it down in Animation Shop. The problem is I have to change my program to take control of time while it is making the little vids that would be the problem with a general tool.
What you would need to do is to be able to say in advance an area to crop or compress. Then it wouldn't be such a performance hit. But then you need that moment to be interesting which isn't easy to stage manage.
I'm sure many coders put in little film making tools perhaps we shouldn't take them out entirely.
Just had to say...
Handango just amazed me by emailing me a little begging letter to put some skins 4 Cartoon Calc up. How shocked was I! Begging for freeware I don't see the angle.

The problem is I don't have access to source, or PC versions 95% of the time, I need a way to load any app, and start recording on the spot.
I would assume that most games would be using near 100% of the CPU and thus make it impossible to capture the output video and audio. We use our PPC emulator system (NOT the MS PPC emulator, mind you) to record video and audio. The PPC emulator system is a build of the PPC program that runs under DirectX and produces pixel perfect emulation of the PPC. It is, of course, capable of running many, many times faster than the PPC, so there is plenty of bandwidth to record audio and video. Obviously, this doesn't help you at all, but you probably *could* use a real PPC emulator to do much the same thing. The 'real PPC emulator' would be a window's program that emulator the hardware and the ARM CPU. I am sure there are programs that make an AVI from a desktop window, so you could, in theory, run the game using a real PPC emulator on the desktop. I don't, however, know if a true PPC emulator exists. Would be interesting to have....
Cheers,
rcp
One idea that someone smarter than me might want to think about is a hacked gx.dll...
At least in the cases where CloseDisplay() (or whatever the method is your supposed to call to flip the backbuffer forward, it's been a while since I've looked at GAPI) is called, you could write out that frame with a sequential filename and then combine them all together later on the desktop via some utility to create an AVI.
I know there are many cases where that method isn't called, so the idea may not be really worth much... that also assumes that writing out the file doesn't take enough CPU time to cut down frame rates, and I think there's probably some issues with write speeds that would make this maybe not work...
But it's one idea that might be worth a try if anyone has the time to put into it. The upside if it worked is that it would work for any program that used GAPI at some point, which is probably most games unless they are using PHAL I'd bet.
Hmm. If you could hook GetTickCount and QueryPerformanceCounter to return whatever value you want, then you can make the game think it is running at whatever FPS you want to record in. Viola, perfect 30 FPS (or whatever target FPS you want) recordings.
Dan East
There are always the real world techniques, like taping it with a good video camera, just setup the brightness so the whites will not explode on the image.
Visual quality can be seen from the screenshots, the animation/sound and general in-game performance could be watched on the video
Yeah, I'm with HTK. I'd like to see it running realtime to see what the performance is like. Pointing a camera at the screen seems like the only way to do this correctly.
I wouldn't even mind if you post-processed the video to get a decent color balance afterward as long as the frame rate was indicative of what it is like to actually play the game.
That's the problem - a good video camera heh. I've got a digital camera that can record 30 second clips, and a webcam.
If the video will be 30FPS anyway, if theoretical video capture app were made, couldn't it still be made?
Of course you all could donate money to the "Get Me an A716 and Now A CF TV-Out Card Fund" too :P
You could still do that with the technique I suggested. All you have to do is measure the elapsed time between each frame that was consumed by the app. You return GetTickCount values only representing the culmulative time the game consumed. That way the time required to compress and save the frame to file doesn't affect FPS.
Dan East
So is anyone up for it? Even if it's just sequential bitmaps and an audio stream?
(My big left hand would also get in the way of a lot of the video :P and it'd look kinda unprofessional IMO.)
That, or videos could be an added benefit if the devs want to compile a PC/emulator version, that'd be the lazy way out.
Dan, wouldn't you have to save these per-frame elapsed time so that when you made the AVI it would 'stutter' correctly?
You would somehow have to figure out a way to make the AVI playback, not at 30 fps, but at some changiing rate depending on these per-frame time values. If you didn't do this, the AVI playback would look like the animation sped up on the frames that actually took more time to execute when you were playing the game.
You would have a simiar problem videotaping the PPC. Any frame that doesn't sync perfectly with the record FPS would cause tearing. So I guess you could use the same technique with the images written to file, if you wanted that, um, realism.
I'm sure there's some video codec that allows for variable length frames.
Dan East
If the game you want to record uses GAPI and if it properly calls "GXEndFrame()" each frame, then you could write a simple GX.DLL that capture every frame.
If the game doesn't call GXEndFrame(), then perhaps returning TRUE in GXIsDRAMBuffer() could trick the app into calling GXEndFrame() each frame.
This seems easier then hooking API functions and shouldn't slow down the game that much.
May be a different beast, but I notice a huge speed decrease in some games when using Pocket Controller. Considering that's a client/server app, I'd expect a slowdown. Thank god PPCs use solid states, otherwise thrashing a hard drive for 24-30 pictures a second would be brutal.
If anyone goes ahead with this, let me know, I'd definitely be willing to help out with it, and if you want to charge for it, get the word out a bit.
This wouldn't work properly for the audio. Usually the audio mixer is running in its own thread, so the audio would be running at normal speed. Specifically background music would play at normal speed, and sfx samples would play normally, etc. I can't think of any good way to capture the audio when the game engine is being tricked into running at a slow speed so each frame can be captured.
Dan East
I suppose I could butcher 2 pairs of headphones and hack up an audio cable going from my PPC headphones to the mic.
Dan is 100% correct... if the game is written correctly you can trick it into running at a 'normal' rate while it is actually running slow enough for you to capture the video. Audio, of course, is quite another problem. You could probably do a 'two pass' technique where the first pass you record the audio and then the second (and hopefully identical pass) you record the video. If you are just grabbing the background music and some sfx samples, you can record this with the 'hacked up audio cable' method and mix it back in using VirtualDub.
Doh that's right, the audio would be off regardless of if the program is ripping it or not.