SweatyOgre Posted March 23, 2005 Posted March 23, 2005 I can't get avi files to work when I try to add them to the GUI. I know it isn't my code, because I got the test avi that comes with CyberSlug's program Auto Builder to work fine, but all other avis give me this error:I'm thinking it's something to do with codecs, because every other avi that I try has a codec, but the test avi included with CyberSlug's program is uncompressed. Can avis with codecs not be added to an Auto It GUI? All help will be very much appreciated.
DjDeep00 Posted March 24, 2005 Posted March 24, 2005 I had the same issue with one of my scripts. The only thing I did to fix the issue was to place the "GUICtrlCreateavi" right before you place GuiSetState(@SW_SHOW) in you script. Give it a shot.
SweatyOgre Posted March 24, 2005 Author Posted March 24, 2005 (edited) Nope, that didn't do any good. Well here's my code, in case I am doing something wrong. ; Script generated by AutoBuilder 0.5 Prototype #include <GuiConstants.au3> If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000 GuiCreate("Blaster", 800, 600,(@DesktopWidth-800)/2, (@DesktopHeight-600)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $Logo = GUICtrlCreateAvi("SecksualStudiosLOGO.avi", -1, 0, 0, 800, 600) GuiSetState(@SW_SHOW) GUICtrlSetState($Logo, $GUI_AVISTART) Sleep(6670) GUICtrlSetState($Logo, $GUI_AVISTOP) GUICtrlSetState($Logo, $GUI_AVICLOSE) $Intro = GUICtrlCreateAvi("BlasterIntroFinal.avi", -1, 0, 0, 800, 600) GUICtrlSetState($Intro, $GUI_AVIStart) Sleep(6130) GUICtrlSetState($Intro, $GUI_AVISTOP) GUICtrlSetState($Intro, $GUI_AVICLOSE) Exit Edited March 24, 2005 by SweatyOgre
DjDeep00 Posted March 25, 2005 Posted March 25, 2005 Are you getting the error message when you manually run the program or you are having it automatically start with windows?
SweatyOgre Posted March 27, 2005 Author Posted March 27, 2005 Sorry to bump the thread, but I really need help with this.
steveR Posted March 28, 2005 Posted March 28, 2005 (edited) Heres some info on win avis: Edited for content Animation Controls -------------------------------------------------------------------------------- An animation control is a window that displays an Audio-Video Interleaved (AVI) clip. An AVI clip is a series of bitmap frames like a movie. Animation controls can only display AVI clips that do not contain audio. Note If you are using ComCtl32.dll version 6 the thread is not supported, therefore make sure that your application does not block the UI or the animation will not occur. An animation control can display an AVI clip originating from either an uncompressed AVI file or from an AVI file that was compressed using run-length (BI_RLE8) encoding. You can add the AVI clip to your application as an AVI resource, or the clip can accompany your application as a separate AVI file. Note The AVI file, or resource, must not have a sound channel. The capabilities of the animation control are very limited and are subject to change. If you need a control to provide multimedia playback and recording capabilities for your application, you can use the MCIWnd control. For more information about the MCIWnd control, see the multimedia documentation in the Platform SDK. Edited March 28, 2005 by steveR AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.
steveR Posted March 28, 2005 Posted March 28, 2005 (edited) This might be useful:http://ndub.sourceforge.net Edited March 28, 2005 by steveR AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.
SweatyOgre Posted March 30, 2005 Author Posted March 30, 2005 Thank you very much. It's working now. I am, however, experiencing severe slowdown with these AVIs, but only when played on the GUI. The filesize also skyrocketed from 1mb and 3mb to 184mb and 255mb. I'm rather unclear on how to control the amount of compression with this program, though.
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