Re: Which codec is required?
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 18 Apr 2006 12:47:29 -0400
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.
.
- Follow-Ups:
- Re: Which codec is required?
- From: UJ
- Re: Which codec is required?
- References:
- Which codec is required?
- From: UJ
- Which codec is required?
- Prev by Date: Re: regex to find an stored proc name
- Next by Date: Dynamic HTML table with textboxes
- Previous by thread: Re: Which codec is required?
- Next by thread: Re: Which codec is required?
- Index(es):
Relevant Pages
|