?
Solved

How can I embedded a codec in my player?

Posted on 2004-04-26
5
Medium Priority
?
346 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 2000 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

Industry Leaders: 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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

800 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