Blue Eye Macro http://blueeye-macro.com/ |
|
video capture plugin http://blueeye-macro.com/viewtopic.php?f=175&t=7366 |
Page 1 of 1 |
Author: | sickslug [ Wed Jul 18, 2012 11:32 pm ] | ||
Post subject: | video capture plugin | ||
capture video using BlueEye!
you need ffmpeg and the plugin to use plugin is in plugin suite - see link in sig ffmpeg install instructions
you're all set. try the sample macro: Code: begin Speech.Say("Ready", "no") // activate window you want to record during pause Macro.Pause("2000") Speech.Say("Begin", "No") Window.Get active window id("active") // if active window maximized, record whole screen if Window.State is maximized("{active}", "no") begin Variable.Set("x1", "0") Variable.Set("y1", "0") System.Get primary screen resolution("x2", "y2") end // else capture the current application only if Variable.Does not exist("x1") begin Window.Get location("{active}", "no", "no", "x1", "y1") Window.Get size("{active}", "no", "w", "h") Variable.Evaluate (Math)("{x1} + {w}", "x2") Variable.Evaluate (Math)("{y1} + {h}", "y2") end Plugins.Video capture("C:\Temp", "my_video[New features demo]{sickslug}", "30g+h}", "100", "1", "{x1}", "{y1}", "{x2}", "{y2}", "10", "3") // after it records, ffmpeg.exe will mux in the background! // depending on video complexity it can take longer than capturing // don't touch the file until cpu usage is back to normal Speech.Say("Muxing", "no") end
|
Author: | sickslug [ Thu Jul 19, 2012 6:01 am ] | |||
Post subject: | Re: video capture plugin | |||
read on for details or troubleshooting
thought i'd post something about performance so you have an idea what it's supposed to look like. you may notice slight lag when running a game and recording at the same time, rest of time it seems pretty smooth. if you reduce the area it's capturing or turn down the framerate it should improve as well temp files go in your temp directory (c:\users\user\appdata\local\temp\ for me in Win7). the most important part of using this is not to touch the output video until muxing is complete. normally files are locked while being written to but because of the asynchronous ffmpeg writes that isn't dependable. wait till your CPU usage returns to normal before watching. temp files will be up to 800KB per frame depending on capture size, compression, and format. option 101 (png files) seems to save the most disk space, but the video turns out dim, as does option 102 (bmp files), which takes Rediculous amounts of hard drive space and is never recommended the plugin cannot clear the temp files afterward because muxing takes place after the plugin finishes. i don't want the macro to wait on it since it would appear frozen and you couldn't tell when capturing is complete. you can delete the temp files manually if you want, but next run it will clear it on its own (you can also record a 0 second video after a long one to cleanup; it'll record 4 frames and delete old data) also, do not cross streams (capturing while muxing) or you'll cut your first video short. it will be playable but short if you want to squeeze extra smoothness into recording a game you might try setting the game's processor affinity to 1 or 2 cores, assign BEM to the others, and give the game an elevated process priority. if disk write is an issue you might try a ramdisk or turning write caching on in drive properties you can try rerendering the video before you run the plugin again (calling plugin in a macro again will wipe files). try this at a command prompt, changing the paths and fps (where i have 24) as needed tip: you can insert different audio as well as speed up/slow down video using this command as well! choose the manual option to skip automuxing and just run commands like this with your own options Code: "C:\Program Files (x86)\Blue Eye Macro\ffmpeg.exe" -f image2 -r 24 -i C:\Users\User\AppData\Local\Temp\%06d.jpg -i C:\Users\User\AppData\Local\Temp\audio.wav C:\temp\output.mp4
|
Author: | Thedragonfiend [ Thu Jul 19, 2012 6:48 am ] |
Post subject: | Re: video capture plugin |
Holy crap when the heck did you find the time to do this... Anyway... About the sound and full screen heres what i would do
|
Author: | Gigus [ Thu Jul 19, 2012 11:02 am ] |
Post subject: | Re: video capture plugin |
Very very cool. Nice job! |
Author: | sickslug [ Thu Jul 19, 2012 5:30 pm ] |
Post subject: | Re: video capture plugin |
@dragonfiend thanks for your ideas! i've stayed away from directX because i don't want to hurt BE's stealth. maybe i'll make it optional in the 3 plugins that read from screen... something like fraps ought to have an edge in performance anyway if someone is trying to record 3d games. i mostly had in mind recording videos about making macros and such |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |