需要哪种编解码器? [英] Which codec is required?

查看:100
本文介绍了需要哪种编解码器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有视频/音频文件,我怎么知道它需要什么样的编解码器?我希望

能够让用户将文件上传到服务器,但我想确保手头上已经安装了编解码器的
。如果没有,我会告诉他们它不会工作。


任何想法如何做到这一点?


(我不想让他们下载编解码器 - 我只想在机器上使用我已经使用的编解码器

。)


TIA - Jeff。

解决方案

这完全取决于你正在使用的媒体文件的类型,确定

由文件扩展名。


-

HTH,


Kevin Spencer

Microsoft MVP

专业Numbskull


努力工作是药物,

没有安慰剂。


" UJ" < FR ** @ nowhere.com>在消息中写道

新闻:OI ************** @ TK2MSFTNGP02.phx.gbl ...

如果我已经有一个视频/音频文件,我怎么能告诉它需要什么样的编解码器?我希望
能够让用户将文件上传到服务器,但我想确保手头已经安装了编解码器。如果不是我会告诉他们它不会工作。

任何想法如何做到这一点?

(我不想要他们下载编解码器 - 我只想使用我已经在机器上拥有的编解码器。)

TIA - Jeff。



扩展名并不总是足够的。


我一直遇到因为需要
$ b $而无法运行的视频文件的问题b编解码器的不同版本或某些此类事物。


" Kevin Spencer" <柯*** @ DIESPAMMERSDIEtakempis.com>在消息中写道

新闻:嗯************** @ TK2MSFTNGP04.phx.gbl ...

这一切都取决于您正在使用的媒体文件类型,由文件扩展名确定。

-
HTH,

Kevin Spencer 专业Numbskull

辛勤工作是一种没有安慰剂的药物。

 " UJ" < FR ** @ nowhere.com>在消息中写道
新闻:OI ************** @ TK2MSFTNGP02.phx.gbl ...

如果我有视频/音频文件,我怎么知道它需要什么样的编解码器?我希望能够让用户将文件上传到服务器,但我想确保手头上已经安装了编解码器。
如果不是我''告诉他们它不会工作。

任何想法如何做到这一点?

(我不希望他们下载编解码器 - 我只是想用我已经在机器上拥有的编解码器。)

TIA - Jeff。




UJ,

根据媒体的类型,您可能需要查找或编写解析媒体标题的代码

。例如,从直接的Windows无压缩AVI视频到DIVX,AVI文件扩展名可以是任何东西。

Peter


-

联合创始人,Eggheadcafe.com开发者门户网站:
http: //www.eggheadcafe.com

UnBlog:
http://petesbloggerama.blogspot.com


" UJ"写道:

如果我有视频/音频文件,我怎么知道它需要什么编解码器?我希望
能够让用户将文件上传到服务器,但我想确保手头已经安装了编解码器。如果不是我会告诉他们它不会工作。

任何想法如何做到这一点?

(我不想要他们下载编解码器 - 我只想在机器上使用我已经拥有的编解码器。)

TIA - Jeff。



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.

解决方案

It all depends on the type of media file you''re working with, as determined
by the file extension.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

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

"UJ" <fr**@nowhere.com> wrote in message
news:OI**************@TK2MSFTNGP02.phx.gbl...

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.



The extension isn''t always enough.

I keep having problems with video files that wont run because they need a
different version of the codec or some such thing.

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:um**************@TK2MSFTNGP04.phx.gbl...

It all depends on the type of media file you''re working with, as
determined by the file extension.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

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

"UJ" <fr**@nowhere.com> wrote in message
news:OI**************@TK2MSFTNGP02.phx.gbl...

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.




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.



这篇关于需要哪种编解码器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆