 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Shahram Shafieha Guest
|
Posted: Wed Mar 07, 2007 3:10 pm Post subject: Play video without codec |
|
|
Hi all,
I develop a software which a part of it play a video file. I don't allow to
make an installation, software should be run directly from CD. On the
destination computers may be, or may be not exist proper codec.
How can I find whether proper codec is installed? How can I install codec
without user notify?
Thanks in advanced |
|
| Back to top |
|
 |
Mark Jacobs Guest
|
Posted: Wed Mar 07, 2007 8:19 pm Post subject: Re: Play video without codec |
|
|
"Shahram Shafieha" <shshafieha (AT) yahoo (DOT) com> wrote in message
news:45ee7ea5 (AT) newsgroups (DOT) borland.com...
| Quote: | I develop a software which a part of it play a video file. I don't allow to
make an installation, software should be run directly from CD. On the
destination computers may be, or may be not exist proper codec.
How can I find whether proper codec is installed? How can I install codec
without user notify?
|
I can get a list of video codecs on my PC by going through this mad route :-
Control Panel -> Sounds and Audio Devices -> Hardware Tab -> Video Codecs ->
Properties Button ->Properties Tab
I can see Indeo and Microsoft codecs as standard, but the rest seem to depend
on what is installed on the PC. Personally, a bit of MS MPEG4 never did anyone
any harm, and it seems to come on all XP-installed PCs. I am not so sure if it
is available under Vista. Any more details?
--
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk |
|
| Back to top |
|
 |
Tsviatko Jongov Guest
|
Posted: Thu Mar 08, 2007 3:05 am Post subject: Re: Play video without codec |
|
|
Hi,
If you need to find out whether a specific encoder/decoder/or other filter is installed on a PC, you can try creating it - if the CoCreateInstance returns S_OK then the codec is installed on this PC. If you need to find out whether a codec suitable for a specific file/content is installed, you can try calling RenderFile, and if the result is S_OK then there is a proper codec installed on the PC.
All filters have a category. You can try enumerating all filters from a specific category. There is a category "Video Compressors", "Video capture sources", "DirectShow Filters". There is no category for decoders - they are placed in the "DirectShow Filters" category.
Some codecs are built only from one ax/dll file, but some codecs have additional files - dlls, bins... The main codec file is a COM server, which can be registered or unregistered.
To register a codec you must call regsvr32 "main codec file".
There is also another way - search the COM server in the registry (HKEY_CLASSES_ROOT\CLSID) on a PC where the it is installed and get all the COM server registry keys. On a PC where you want to install the codec, you have to place the codec files on the same place as on the installed PC and create all the registry keys that you have read.
Regards,
Tsviatko Jongov
http://tsviatko.jongov.com
"Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?BorlandNG> wrote:
| Quote: | "Shahram Shafieha" <shshafieha (AT) yahoo (DOT) com> wrote in message
news:45ee7ea5 (AT) newsgroups (DOT) borland.com...
I develop a software which a part of it play a video file. I don't allow to
make an installation, software should be run directly from CD. On the
destination computers may be, or may be not exist proper codec.
How can I find whether proper codec is installed? How can I install codec
without user notify?
I can get a list of video codecs on my PC by going through this mad route :-
Control Panel -> Sounds and Audio Devices -> Hardware Tab -> Video Codecs -
Properties Button ->Properties Tab
I can see Indeo and Microsoft codecs as standard, but the rest seem to depend
on what is installed on the PC. Personally, a bit of MS MPEG4 never did anyone
any harm, and it seems to come on all XP-installed PCs. I am not so sure if it
is available under Vista. Any more details?
--
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
|
|
|
| Back to top |
|
 |
Shahram Shafieha Guest
|
Posted: Sun Mar 11, 2007 1:57 pm Post subject: Re: Play video without codec |
|
|
| You are a very kind and helpful |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|