Jump to content

Recommended Posts

Posted

My desire is to embed an entire video file in a compiled script (.exe) and to play the video without extract it.

The final goal is to distribuite a video file (corporate video no XXX :P ) playable only on selected machines with particular files and registry entries; also the video has to be played offline

I know i can make a simple fileinstall() of the video to extract only matching certain conditions but the extracted video is shareable....

In forums i have found only topics about embed only a player in a gui.

There is only an old topic similar to my request :

but it ends with a broken link.

I know for example there is Camstudio able to generate video files in .exe.

Any ideas ?

thanks in advance. :ILA:

Posted

That's really an interesting question how to embed an Avi file into an exe without file install or load it from resources.

Somebody knows a way to play an embedded avi file?

I found this here: How To Use MCI to Play AVI/WAVE Files from Memory but I don't know whether this fits here and how to implement it in AutoIt.

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Posted

So I have successfully embedded some .avi files with resources.au3 and the last version of reshacker.exe (3.6).

#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%,%out%,%scriptdir%Resourcessampleavi.avi,avi,101,0
GUICtrlCreateAvi(@ScriptFullPath,101,60,60,15,15,$ACS_AUTOPLAY+$ACS_TIMER)

I have 'upx=n' because with 100+ megabytes avi it takes an age to compress.

But only the sampleavi.avi (included in autoit Examples) want to play.

I am not able to play another avi.. :mad2:

I don't know what 'GUICtrlCreateAvi' is able to play,I know avi is a mere container so I thinked it was a problem related to codecs.

My machines are codec free, I like to use vlc or players with embedded codecs.

So I tried with a machine with a suite of codecs (K-LITE codec pack) but no success.

So I ask : how does it work guictrlcreateavi ? what .avi is able to play ?

Or my effort will be to create an exe with embedded another exe created with Instantplayer , but is not so elegant...

  • 2 weeks later...
Posted

So I have tested the brilliant work from this topic :

It work's by embedding and running some types of .exe files, but it doesn't work for instantplayer exe files, and I suspect for the same good reason it doesn't work with autoit exe files, see post #115 of that topic.

Now I'am thinking ....

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...