Solved

How can I embedded a codec in my player?

Posted on 2004-04-26
5
338 Views
Last Modified: 2010-04-05
I need to distribute a CD with a movie file (avi with codec) and a player.
I dont like to request a codec installation.
Can I embedded a codec (DivX, Indeo, Microsoft MPEG-4 codec V2) in my player?
0
Comment
Question by:faustomen
5 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 10919026

   you have to copy your codec in /system32 folder and regsvr32 this file...
0
 
LVL 11

Accepted Solution

by:
shaneholmes earned 500 total points
ID: 10919158
Be sure you read up on the license agreement, make sure you can distibute the files out side of the owners install paskage. Sometimes the aggreement states that a certain number of files must co-exist when soing so,  for example, the License agreement.

As Ivanov_G, stated, find the files you want, place them on the CD with your main application, then from your main app, call

 regsvr32  to register the Codec DLL's

example:

ShellExecute(Handle, 'open', 'regsvr32.exe', '/MyDLL.dll', PChar(GetCurrentDir), SW_SHOWNORMAL);

or just

WinExec('regsvr32 /MyDLL.dll', SW_SHOW);


PS> dont forgert to unregister whn done.....

Shane
0
 
LVL 1

Expert Comment

by:tanghz
ID: 10926740
If the target system has a codec , will this produce conflicts?

0
 
LVL 3

Expert Comment

by:MikProg
ID: 10926955
Yes! When you finish playback and unregister .dll codec will be unregistered completely even original.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now