Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fs = require('fs');
- var wonkavision = require('./')({
- width: 640,
- height: 480,
- depth: 16
- });
- // Spawn a fullscreen process of Stella, the Atari 2600 emulator within
- // wonkavision's contained X session.
- wonkavision.spawn('stella', [ __dirname + '/asteroids.bin', '--fullscreen' ]);
- // Stream the entire session to ./test.webm.
- wonkavision.ffmpeg().format('webm').output(fs.createWriteStream('test.webm'));
- // Update the screenshot of "test.png" every 3 seconds.
- setInterval(function () {
- // .ffmpeg is fluent-ffmpeg after the necessary input filters.
- wonkavision.ffmpeg().frames(1).output(__dirname + '/test.png');
- }, 3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement