[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Install codecs for video to system

Posted on 2006-05-25
Medium Priority
Last Modified: 2008-03-10
Hi expert.

I am writing  an application allow install automatically codecs for video to system. Then i can open compressed movie.

Before, i used to DivX Bundle pro or orthers sotfware to do that, but now i would like to write application can do as these software, but in fact i only need my app can perform main thing:  install code to system.

At present, i do not have experience to do that, so can you help me - can you show me sample code how to do that?  

I very thank for any help.
Question by:CongUan
  • 2

Expert Comment

ID: 16788039
This depends on which kind of codecs you want to install, and how you want the user to be able to use them. If you're trying to install Video for Window (VfW) codecs, you have at least two possibilities, first install your codec DLL to the customer's computer, and then

1) Use the ICInstall function (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_icinstall.asp)
2) Add the suitable registry entries. At least for Windows XP, these are here: HKLM\SOFTWARE\Micrsoft\Windows NT\CurrentVersion\Drivers32. Check out the other entries there, you can use absolute paths for referencing the DLL

If the codec you want to install is a Direct Show (DirectX) codec, simply register the DLL with the system using regsvr32.exe. After that, the system will be able to "discover" the codec as needed.

Hope that helps, regards,

Author Comment

ID: 16868128
Can anyone help me how to start to write an program perform installing codecs for video and audio to system.

some codecs i am would like to install are: MPEG4, DivX

I have another program, this allow user can choose one of codecs, was listed by the program, to make compressed video from raw video. The list are codecs that were installed to system.    

Here are my questions:
1_ : Can i use some .ax or .dll files to install codec for MPEG and Divx?
2_ : If 1_ can, what files should i have (where to download files) and can I use LoadLibrary and GetProcAddress function to register for these codecs?
3_ : If 1_ cannot, so can you direct me the way how to install these codecs to system???

I am very happy and thank for any your help.

Accepted Solution

danielsson earned 2000 total points
ID: 16883337
I don't think you're allowed to directly install e.g. DivX by yourself. If you need to install DivX, I would rather deploy the setup file for DivX (and I don't even know if you're allowed to do that). Check the license for DivX. MPEG4 is a rather spongy term; there are a lot of implementations of MPEG4 out there, a Microsoft one, DivX also is one, XviD,... Except for XviD, most MPEG4 codecs are commercial and have their own installers (though, XviD does of course also have an installer). You'll have to check the license for yourself if you're allowed to install them manually.

Normally, I would always go for the supplied installers if you don't have an exact description of what you have to do for each one of the codecs. What I wrote above applies for codecs you've written yourself.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

872 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