Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently November 18th, 2024, 7:18 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to Embeded The XVid Codec to Standalone Publication ?
PostPosted: November 19th, 2007, 5:03 am 
Offline

Joined: November 8th, 2007, 10:42 am
Posts: 8
Hi All,

Many Thx for your help on our last topic :D , Now I Succesfully to created the Video with the XVid Codec. Now Our problem is not every computer have this codec, so we must copy the codec and distribute together on the disc with our projects and tell the user to install and it's look not professional.

My Question is : how to embeded (include) the XVid Codec to my Standalone publication ?

Thanks

AVID


Top
 Profile  
 
 Post subject:
PostPosted: November 19th, 2007, 10:12 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 511
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
there are two ways.
First you have to make sure you are able to distribute the file. If it is legal, then you can include it as an additional resource with a script alias. then have a button called 'install codec'
When you add an additional resource, (Publication properties) it expects to see video or audio, but if you select all file types you can select an EXE.
Navigate to the file location and select the codec, then give it a script alias----this is what you will call it in the script function. Note he alias name should be enclosed in double quotes.

so
file name
C:\dir\subdir\thecodec.exe
Alias
"MyXVidCodec"

when you save the project, the file is then included in the resources.

next on your button, attach a script with


Code:
LaunchFile("MyXvidCodec")




that should do it. But you better make sure you can distribute the file.
You could also check for the existence of the file and only show the install button if it is not found (FileExists)



The next way is better in some ways. Rather than Launch File script action, you simply have a Launch URL which directs to the location of the codec on the web and you tell them to install it. This makes sure you always get the latest version and avoids any possible legal problems of distributing the file.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group