Re: Which codec is required?



Exactly, which is why I was mentioning the file extension. That is always
the first filter in terms of identifying the media type. It narrows it down
to one or a few possibles. After that, you need to read the bits of the file
itself, and that means that you have to know the byte order of the file
format.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Peter Bromberg [C# MVP]" <pbromberg@xxxxxxxxxxxxxxxxxxx> wrote in message
news:A7D92F13-BBAF-4FE3-B246-8810B9C435AF@xxxxxxxxxxxxxxxx
UJ,
Depending on the type of media, you will probably have to find or write
code
that parses the media headers. For example, an AVI file extension can be
anything from straight Windows uncompressed AVI video to DIVX.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"UJ" wrote:

If I've got a video/audio file, how can I tell what Codec it needs? I
want
to be able to let the user upload a file to a server but I want to make
sure
before hand that the codec is already installed on the machine. If not
I'll
tell them it won't work.

Any ideas how to do this?

(I don't want them to download codec - I just want to use the codecs I
have
on the machine already.)

TIA - Jeff.





.



Relevant Pages

  • Re: How do i know dynamic format change?
    ... So the problem is that when the wmp window is restored with the MS codec, ... the media type appears to change immediately whereas for your codec, ... notification of the change (through the media sample) may take some time? ... Specifically also what is the format that is ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: How do i know dynamic format change?
    ... So the problem is that when the wmp window is restored with the MS codec, ... the media type appears to change immediately whereas for your codec, ... notification of the change (through the media sample) may take some time? ... Specifically also what is the format that is ...
    (microsoft.public.win32.programmer.directx.video)
  • tulip on alpha ds10l 100MbpsFD problem
    ... default media type 0800. ... Serial transceiver for 10baseT. ... GP pin direction 08af GP pin data 00a0. ...
    (Linux-Kernel)
  • Re: How to playback "Magic of Flight.mpg"?
    ... MS Windows XP SP2 Media Player ... writes that it does not have a codec to playback the file. ... Media Player to play the file, although a codec download may be ...
    (rec.video.desktop)
  • Re: dvr-ms conversion/codec problem
    ... Movie Maker does not work with very many MPEG-2 decoders, ... I have been an owner of an HP 873n Media Center since late 2002. ... This seems to be a codec problem. ... Additoinally--and I'm not sure if this is related, but it seems as if it could be--when I go to play a SVCD ...
    (microsoft.public.windows.mediacenter)