Solved

How can I embedded a codec in my player?

Posted on 2004-04-26
5
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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