| |
Scarzix
Registered: Aug 2010 Posts: 143 |
VICE or similar cycle "perfect" emulator for screenshot?
Question: is there a way to get VICE or other "almost perfect emulater" to run a PRG for eg. 100 frames and then produce a screenshot automatically?
Scenario:
1) Run assembler
2) Spawn VICE ( or other near perfect emulator ) with PRG from assembler
3) Run for xxx frames
4) Save screen (including border colors/rastersplits) as a bitmap file (fileformat is not an issue)
I need to call this from within a program automatically. So a Commandline interface or a Dll perhaps. Writing my mainprogram in C# so a slow, but "true emulation" is needed.
Hope someone has a solution?
Cheers,
Scarzix/Offence |
|
| |
Scarzix
Registered: Aug 2010 Posts: 143 |
infact, I dont spawn VICE from assembler, I use a C# program to call KickAssembler to generate the PRG, and then I would like to grab a screenshot from that PRG at random frame...
to generate eg. an animation or just stills from it.
If its a slow Implementation without the full VICE its also a solution, as I dont need all the stuff about tape, diskimages, SID settings etc.
I am just searching for a way to see the output from the code as eg. a PNG |
| |
Brush
Registered: Apr 2002 Posts: 21 |
HI,
I'm not sure what is your ultimate goal but Vice has a built in feature to record a video (under Snapshot menu). I don't have it handy here but if there is a lossless codec in ffmpeg (that's what vice is using) you should be able to have a video recorded in a way that could be further manipulated. |
| |
Scarzix
Registered: Aug 2010 Posts: 143 |
sorry, but it has to be 100% automatically... so it can be done by using params or open VICE or other emulator from code... no human interaction. |
| |
Burglar
Registered: Dec 2004 Posts: 1031 |
I actually tried it with vice, but didnt work. also wanted automatic screenshot to tie into the X voting system.
so, lemme know if you get it to work ;) |
| |
Oswald
Registered: Apr 2002 Posts: 5017 |
there are some sceners around who are able modify vice to do this for you, Groepaz for example. |
| |
soci
Registered: Sep 2003 Posts: 473 |
A not very sophisticated solution using shell scripting and remote monitor with netcat:#!/bin/sh
x64 -remotemonitor "$1" &
sleep 10
nc 127.0.0.1 6510 <<END
screenshot "$1"
quit
END
But as you've been talking about C# I think it's not going to help much. |
| |
Burglar
Registered: Dec 2004 Posts: 1031 |
a remotemonitor! of course :)
thanks soci, this will do just fine for me |
| |
chatGPZ
Registered: Dec 2001 Posts: 11107 |
i like the proposed idea with using ffmpeg output more somehow.... at least that would enable some more sophisticated things like "skip N frames, then take the 10th of 10 consecutive non black frames" relatively easily :) |
| |
Scarzix
Registered: Aug 2010 Posts: 143 |
Nice ideas, might have to try them even the remote version. Still I wouldn't "feel in control" with frames so a bit hard to step through frames.
Wish there was some way to "pause" then "step" frame by frame.. or... "start with PRG and run until frame xxxx" then save PNG or something. |
| |
Scarzix
Registered: Aug 2010 Posts: 143 |
Thinking, maybe I could just embed VICE inside a Windows program and then mimick some sort of user-control on top of it... hmmm.. |
... 18 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 | 3 - Next |