oMBRa Posted September 6, 2008 Share Posted September 6, 2008 How to play a not AVI video ( like flv... ) in a GUI? Link to comment Share on other sites More sharing options...
Andreik Posted September 7, 2008 Share Posted September 7, 2008 How to play a not AVI video ( like flv... ) in a GUI?I`m not sure how you can do that but you can use ffmpeg to convert very easy flv to avi. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
ChromeFan Posted September 7, 2008 Share Posted September 7, 2008 search the example scripts, threre is a flv/flash player which can help you into this. Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, What happened? Casey Stengel Link to comment Share on other sites More sharing options...
oMBRa Posted September 7, 2008 Author Share Posted September 7, 2008 @Andreik I downloaded ffmpeg, I converted my flv video to avi, then I tried to open it with guictrlcreate avi and I get this error: "the application or dll is not a valid image of windows". @ChromeFan I found volly flash player but I dunno how to use it Link to comment Share on other sites More sharing options...
kjactive Posted September 7, 2008 Share Posted September 7, 2008 (edited) Hallo Ombra To play .flv or other flashmovies directly in a gui you has to deal with activex components, a lot of freeware around like the example below from adobe, you probably already have the component installed in your system. ; ================================================================== ; Author: Kåre Johansson ; AutoIt Version: 3.1.1.55 ; Description: Simple example: Embedding ShockwaveFlash object to play ; .flv and other type of flash movies from disk or directly as online streams ; Needs: Activex component file: Flash9f.ocx the Adobe Flash Player 9.0 ; ================================================================== #include <WindowsConstants.au3> #include <GUIConstants.au3> Global $oRP = ObjCreate("ShockwaveFlash.ShockwaveFlash") If Not IsObj($oRP) Then MsgBox(48,"ERROR...","Component object failed") Exit EndIf Global Const $MainW = GUICreate('Shockwave player', 300, 200, -1, -1,BitOr($WS_OVERLAPPEDWINDOW,$WS_VISIBLE,$WS_CLIPSIBLINGS)) $GUIActiveX = GUICtrlCreateObj( $oRP, 0, 0 , 300 , 200) With $oRP; Object tag pool .BackgroundColor = 0x000000 .LoadMovie(0, 'http://www.youtube.com/v/-cBfl0-cC3o&hl=en&fs=1') .play EndWith GUISetState();Show GUI While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd $oRP = 0; free component Exit That's it - hope it helps, component doc at adobe kjactive Edited September 7, 2008 by kjactive Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
oMBRa Posted September 7, 2008 Author Share Posted September 7, 2008 (edited) I dont have Activex component, I will download it then I will say u if it works... anyway thx EDITED: I downloaded Flash9f.ocx and I put it in the folder system32, should I download also the Adobe Flash Player 9.0? Edited September 7, 2008 by oMBra Link to comment Share on other sites More sharing options...
Andreik Posted September 7, 2008 Share Posted September 7, 2008 @Andreik I downloaded ffmpeg, I converted my flv video to avi, then I tried to open it with guictrlcreate avi and I get this error: "the application or dll is not a valid image of windows".@ChromeFan I found volly flash player but I dunno how to use itWhat command line you use to convert (parameters)? When the words fail... music speaks. Link to comment Share on other sites More sharing options...
oMBRa Posted September 7, 2008 Author Share Posted September 7, 2008 cd in the folder of ffmpeg then ffmpeg -i "/path/to/my/video/here.flv" -ab 128k "Name of song - Artist.avi" Link to comment Share on other sites More sharing options...
Andreik Posted September 7, 2008 Share Posted September 7, 2008 cd in the folder of ffmpeg then ffmpeg -i "/path/to/my/video/here.flv" -ab 128k "Name of song - Artist.avi" Try: ffmpeg.exe -i location -acodec mp3 -ab 128 -ar 22050 -ac 2 location avi When the words fail... music speaks. Link to comment Share on other sites More sharing options...
oMBRa Posted September 7, 2008 Author Share Posted September 7, 2008 (edited) Try: ffmpeg.exe -i location -acodec mp3 -ab 128 -ar 22050 -ac 2 location avi and location would be?? ( I mean what location ) Edited September 7, 2008 by oMBra Link to comment Share on other sites More sharing options...
Andreik Posted September 7, 2008 Share Posted September 7, 2008 and location would be?? ( I mean what location )Input and output locations.For more info about ffmpeg here. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
oMBRa Posted September 7, 2008 Author Share Posted September 7, 2008 (edited) the problem isnt on deconding from flv to avi but in getting an error when i try to open it with guictrlcreate avi. and I need to converto from flv to avi not mp3... anyway ffmpeg says tha mp3 is an unknow encoder Edited September 7, 2008 by oMBra Link to comment Share on other sites More sharing options...
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