FireFox Posted December 29, 2008 Posted December 29, 2008 (edited) AVICaptureAVI Capture is based on AVIWritter UDF by monoceres (special thanks to him)Description :AVICapture captures the action from any part of screen and saves it to uncompressed AVI movie files.Requirements :-For compression you have to place compression files to same folder as AVICapture (FFMPEG)-IsPressed_UDF for hotkeys functionsFunctions : Capture-full screen-window-no taskbar-no desktop-region timerStop video after x seconde(s) ConfigShow cursor or notCompress AVIFrame per secOutput AVIRecording avi since x timeSize of current recording AVI (thanks to monoceres) HotkeysCTRL + F1 = PlayCTRL + F2 = PauseCTRL + F3 = HIDECTRL + F4 = SHOW(this options are availiable from trayicon)Screenshot :Attachments :AVICapture v1.4.0 : AviCapture.au3 Happy New Year !AVICapture v1.3.5 : AviCapture.au3AVICapture v1.3.0 : AviCapture.au3Executable (updated with source ) : AVICapture v1.4Is_Pressed_UDF v1.7 : Is_Pressed_UDFCompression : FFMPEGComments are welcome !(Thanks for anyhelp I know there is lot of problems)Enjoy ! Cheers, FireFox. Edited December 31, 2008 by FireFox
monoceres Posted December 30, 2008 Posted December 30, 2008 Seems to work well Two suggestions: - In the capture loop you're sleeping the loop with 200 ms. This is only correct if the framerate is 5 (1000 ms / 200 ms = 5). To calculate the correct one you should do something like: $sleeptime=1000/$Framerate - To update the filesize properly, keep an internal counter instead of relying on FileGetSize(). The size of one bitmap is easy to calculate: $BitmapSize=54+3*($width*$height); In bytes Broken link? PM me and I'll send you the file!
FireFox Posted December 30, 2008 Author Posted December 30, 2008 Seems to work well Two suggestions: - In the capture loop you're sleeping the loop with 200 ms. This is only correct if the framerate is 5 (1000 ms / 200 ms = 5). To calculate the correct one you should do something like: $sleeptime=1000/$FramerateYep Ive done that before but got confused - To update the filesize properly, keep an internal counter instead of relying on FileGetSize(). The size of one bitmap is easy to calculate: $BitmapSize=54+3*($width*$height); In bytesThanks for your suggestion Cheers, FireFox.
FireFox Posted December 30, 2008 Author Posted December 30, 2008 (edited) AVICapture v1.3.5 available (thanks to monoceres for suggestions) Cheers, FireFox. Edited December 30, 2008 by FireFox
monoceres Posted December 31, 2008 Posted December 31, 2008 @FireFox, I can't even get 1.4 to run. So it's kinda hard to see why the avi stuff doesn't work. Broken link? PM me and I'll send you the file!
FireFox Posted December 31, 2008 Author Posted December 31, 2008 (edited) @monoceres it works fine for me so I dont know why it doesnt work for you and what is the problem Edit : updated version with debug console Cheers, FireFox. Edited December 31, 2008 by FireFox
MrCreatoR Posted December 31, 2008 Posted December 31, 2008 I also having problem to run it:ERROR: _CreateAvi() called with wrong number of args. $AVI = _CreateAvi(@ScriptDir & "\temp.avi", $frame, @TempDir & "\frame.bmp") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^It is a wrong function usage as i see it... Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team
FireFox Posted December 31, 2008 Author Posted December 31, 2008 (edited) @MrCreator Where do you found this ? I need help for AVICapture v1.4.0 because its last udf the first AVICreate function I find is : Line 284 $AVI = _CreateAvi(@ScriptDir & "\temp.avi", $frame, $MW1, $MH1) Cheers, FireFox. Edited December 31, 2008 by FireFox
monoceres Posted December 31, 2008 Posted December 31, 2008 @FireFox Beta works just fine for me. I'm able to do working full-screen captures with the HBitmap stuff. Broken link? PM me and I'll send you the file!
MrCreatoR Posted December 31, 2008 Posted December 31, 2008 Where do you found this ?From the first post Now there is a different version, so you probably fixed it Any way, after few seconds of video capturing, the file size is very big (like 300 mb), and aslo the HotKey «Ctrl + F4» is not so good idea, it closes current file (script) opened in SciTE Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team
FireFox Posted December 31, 2008 Author Posted December 31, 2008 (edited) @MrCreatorThanks I will fix hotkeys download last AVIWritter : http://www.autoitscript.com/forum/index.ph...st&id=23792Cheers, FireFox. Edited December 31, 2008 by FireFox
FireFox Posted December 31, 2008 Author Posted December 31, 2008 @MrCreator Updated hotkeys with _IsAndKeyPressed so IsPressed_UDF needed (see first post) Cheers, FireFox.
FireFox Posted December 31, 2008 Author Posted December 31, 2008 AVICapture v1.4 available !Happy New Year !Cheers, FireFox.
toxicvn Posted January 19, 2009 Posted January 19, 2009 http://d3monautoit.free.fr/autoit3/AviCapture/AviCapture.exelink die please update linkthank
FireFox Posted January 20, 2009 Author Posted January 20, 2009 @toxicvn link is working for me... someone else have this problem ? Cheers, FireFox.
wizzywig Posted January 25, 2009 Posted January 25, 2009 (edited) link works but if you recode over 50sec there is no way to stop the recording maybe ad a switchign button play/stop as the tray icon stops responding Edited January 25, 2009 by wizzywig
FireFox Posted January 25, 2009 Author Posted January 25, 2009 @wizzywig perhaps after 1min your disk is full because I can stop video yet, and output byte is aproximatly 1.1 Go Cheers, FireFox.
wizzywig Posted January 26, 2009 Posted January 26, 2009 @wizzywigperhaps after 1min your disk is full because I can stop video yet, and output byte is aproximatly 1.1 GoCheers, FireFox.i have aprox 200gb free and 4gig of ram maybe its a issue with vista
Beege Posted May 8, 2009 Posted May 8, 2009 @Firefox, Very good script. I like it a lot. I have found a couple of bugs that I wanted to point out. In the section that controls stoping the capture after a certian amount of time, you forgot to multiply the input by 1000. Its stoping after so many milliseconds, not seconds. ;Global $timer = GUICtrlRead($Edittime) Global $timer = (GUICtrlRead($Edittime)*1000) Another thing I wanted to point out is how the _ScreenCapture function takes around 250ms to complete by itself. That means that I can only have a maximum of 3-4 frames per second. If I try to do any more than that I get a video with a time length that is much shorter than the length should be. That being said you might want to remove the options for creating high frame rate videos. Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now