Solved

How can I embedded a codec in my player?

Posted on 2004-04-26
5
341 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 316
add combobox item based on numbers 9 154
code issue 8 153
How to Get Images From Server using App Tethering 11 39
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

840 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