Re: Which codec is required?



No. Let's try again. Suppose I have an .avi file that has been compressed
using some codec. What I'd like to do is open the file and find out what
codec was used. If I don't have it loaded on the machine, I'll display an
error to the user saying that it's not playable.

There must be somewhere an object that will read an .avi file or an .mov
file and provide that kind of information.

TIA - Jeff.

"Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23hWHmIyYGHA.3532@xxxxxxxxxxxxxxxxxxxxxxx
Where can I find the format for the different file types? If I at least
had that much I could parse apart the file.....

That is the rub, eh? Since each file format is created by a different
vendor, you're not likely to find them all in one place. I know of one
resource that I have found helpful in the past:

http://www.wotsit.org/

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

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

"UJ" <fred@xxxxxxxxxxx> wrote in message
news:uLPIzDxYGHA.4120@xxxxxxxxxxxxxxxxxxxxxxx
Where can I find the format for the different file types? If I at least
had that much I could parse apart the file.....

"Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%232Tr5ewYGHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
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: Which codec is required?
    ... had that much I could parse apart the file..... ... Hard work is a medication for which ... Depending on the type of media, you will probably have to find or write ... (I don't want them to download codec - I just want to use the codecs I ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Which codec is required?
    ... Windows Media Player? ... Hard work is a medication for which ... there is no placebo. ... using some codec. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: ATTN Marc [MSFT]: Encoder 9 crashes to desktop when selecting file to encode
    ... What codec does the AVI file use? ... had no problems and now I can't get it to encode anything ... >I just did a clean install of XP Pro and WME 9. ...
    (microsoft.public.windowsmedia.encoder)
  • Re: 0xc00d11cd error with div3 AVI file
    ... I have also received this error message with an .avi file. ... The video codes are both divx decoder filter, ... I even tried using media player classic, however, it says "THis avi file was ... > DIV3 is itself a hack/pirated codec. ...
    (microsoft.public.windowsmedia.player)
  • Re: Sound problems in video edited with Windows Movie Maker 2
    ... > to download video from my Sony PC105E PAL camcorder, ... > with a metallic ringing sound, ... > of the original .avi file sounds fine. ... > so I think it is this codec that causes the problems. ...
    (microsoft.public.windowsxp.video)

Loading