Jump to content
Sign in to follow this  
oMBRa

Play not AVI Video

Recommended Posts

oMBRa

How to play a not AVI video ( like flv... ) in a GUI?

Share this post


Link to post
Share on other sites
Andreik

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

Share this post


Link to post
Share on other sites
ChromeFan

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

Share this post


Link to post
Share on other sites
oMBRa

@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

Share this post


Link to post
Share on other sites
kjactive

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 by kjactive

Share this post


Link to post
Share on other sites
oMBRa

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 by oMBra

Share this post


Link to post
Share on other sites
Andreik

@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

What command line you use to convert (parameters)?


When the words fail... music speaks

Share this post


Link to post
Share on other sites
oMBRa

cd in the folder of ffmpeg then

ffmpeg -i "/path/to/my/video/here.flv" -ab 128k

"Name of song - Artist.avi"

Share this post


Link to post
Share on other sites
Andreik

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

Share this post


Link to post
Share on other sites
oMBRa

Try:

ffmpeg.exe -i location -acodec mp3 -ab 128 -ar 22050 -ac 2  location avi
and location would be?? ( I mean what location ) Edited by oMBra

Share this post


Link to post
Share on other sites
Andreik

and location would be?? ( I mean what location )

Input and output locations.

For more info about ffmpeg here.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
oMBRa

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 by oMBra

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.