video mpeg4--xvid

转载 2004年10月31日 14:52:00
XviD.org FAQ (Frequently Asked Questions)


[ Ask A Question ]


Category: Main -> XviD User's FAQ


Question
·  What is XviD?
·  Why should I use XviD?
·  How do I encode using XviD?
·  When I use the Xvid lib in a multithreaded app to encode 2 files simultaneously (under Windows or Linux) it crashes - why?
·  What platforms has XviD been ported to?
·  How do I install XviD on Linux?
·  Can I distribute your codec along with some of my own videos on CD-ROM?
·  I've obtained and unzipped the files from your download section but my XviD videos still don't play in Media Player - what's wrong?
·  I have downloaded several movies in XviD format from the net and am unable to watch them - what to do?
·  Can I encode some videos in Microsoft's MPEG-4 V1/V2 format and then watch them with XviD or vice-versa?
·  I bought a hardware player that had 'XviD compatible' printed on the box but it doesn't play many of my XviD files - what's that?
·  Can I use Windows Media player to play Xvid files?
·  I'm watching a XviD file in Media Player and I see the video but there's no sound?
·  What are all these advanced features: B-frames, GMC, Quarter-pel, adaptative quantization? How do they work?
·  I want to burn my XviD files on DVD and play them on my DVD player - how to do that?
·  I certainly found it amusing to note that XviD is reverse of DivX. I wonder: was that intentional?
·  I have problems compiling the '.asm' files: I'm getting strange errors, so what should I do?
·  I plan to use XviD in my own program and I'm going to modify it. Do I have to distribute my program as "open source" then?

Answer
·  What is XviD?

XviD is an ISO MPEG-4 compliant video codec. It's no product, it's an open source project which is developed and maintained by lots of people from all over the world.

Top


·  Why should I use XviD?

Well, you don't need to at all. We the developers of XviD are just ordinary people, who happen to enjoy writing code for video compression, so we have no disadvantages (financial or any other) if you choose something else than XviD...

However there are good reasons why you could like to use XviD: We believe that XviD is the best currently available MPEG-4 video codec solution and additionally XviD is free software!

Top


·  How do I encode using XviD?

There are lot of good advises available for win32 users there:
http://www.doom9.org/xvid.htm
http://www.doom9.org/gknot-main4.htm

Unix users can have a look at mencoder/transcode documentations/forums/mailing lists.

Top


·  When I use the Xvid lib in a multithreaded app to encode 2 files simultaneously (under Windows or Linux) it crashes - why?

Old versions of XviD weren't threadsafe. This issue has been fixed, so please update your copy of XviD.

Top


·  What platforms has XviD been ported to?

Core library is highly portable.

Known working platforms :

- Win32 (MSVC, cygwin, mingw)
- GNU/Linux x86/ppc/sparc/ia64
- MacOSX
- *BSD
- Solaris 8 Ultra Sparc
- BeOS

Top


·  How do I install XviD on Linux?

Follow the steps described in the doc/INSTALL file, section "The unix way".

Top


·  Can I distribute your codec along with some of my own videos on CD-ROM?

XVID is under GPL license, which means you can distribute it freely, e.g. on a CD-ROM or whatever form you like.
However, if you distribute XVID in binary form, you have to add the source code to the CD-ROM, too.

Top


·  I've obtained and unzipped the files from your download section but my XviD videos still don't play in Media Player - what's wrong?

The files from xvid.org contain source code only which is a package that's good for all operating systems and hardware platforms. Before you can actually use XviD, you have to compile the source files with an ANSI C compiler for your OS and hardware platform (like Microsoft Visual C++ for Windows or gcc for GNU/Linux and other free OSes).
If you don't know what the above shall mean at all and you just want to watch a video in Windows Media Player, then the source code package isn't right for you and you should use google to search for 'XviD binary'. Already the very first search result will provide what you're looking for.

Top


·  I have downloaded several movies in XviD format from the net and am unable to watch them - what to do?

With high probability you've downloaded some pirate movie copy. This is illegal and we're strictly against piracy here at xvid.org. Therefore we won't provide any help or support how to watch such illegal movie copies. Go to the store and buy the DVD!

Top


·  Can I encode some videos in Microsoft's MPEG-4 V1/V2 format and then watch them with XviD or vice-versa?

No, you can't. Despite the name, MS MPEG-4 is not truly standard compliant MPEG-4 - rather it's Microsoft's own proprietary randition of MPEG-4 technology and is incompatible with the international MPEG-4 standard as specified by ISO. So unfortunately, XviD and MS MPEG-4 cannot interoperate.

Top


·  I bought a hardware player that had 'XviD compatible' printed on the box but it doesn't play many of my XviD files - what's that?

This is a problem we're aware of, also see our public announcement regarding hardware devices. Up to now, we don't know of any device on the market that would be fully compliant to XviD, so would be able to play all XviD encoded content.

Therefore we cannot truly recommend buying any of such devices and because of this we also never gave permission to any hardware manufacturer so far to advertise their products as being 'XviD compliant'. Unfortunately, even though XviD's logo and name are protected by copyright and trademark law, nonetheless some manufacturers advertise their products as 'XviD compliant' without auhorization.

Therefore, before buying any of such devices you should look for information about what the devices are really capable of in order to decide whether they really suit your needs. A good starting point for further information and discussion is the 'hardware players' forum at doom9.org: http://forum.doom9.net

Top


·  Can I use Windows Media player to play Xvid files?

Yes.

Top


·  I'm watching a XviD file in Media Player and I see the video but there's no sound?

XviD is a video codec, it has absolutely nothing to do with sound. So if you see a video then XviD works just fine and we can't help you here. For sound, you'd need an appropriate audio codec, but this is an issue that can't be discussed here - go to a more general audio/video resource page like doom9

Top


·  What are all these advanced features: B-frames, GMC, Quarter-pel, adaptative quantization? How do they work?

Explaining this in detail is not possible here. As a short answer:

MPEG-4 is very effective in compression, because it reuses data from one image to generate the next one (still images of a video are only 1/25 of a second or even less apart from each other, in almost all cases they look very similar).

There are different ways how to detect which part of the picture can be reused, and QPel = "Quarterpel Motion Compensation" and GMC = "Global Motion Compensation" are two advanced ways of doing this. Normally you only use "Halfpel Motion Compensation", so the resolution is higher with Quarterpel.

A different step in compression is to divide some coefficients by a number to gives them smaller values (and hopefully zero). This is called "Quantization". Normally, every 16x16 block in the image is divided by the same value, but with "adaptive quantization", for every block a different value can be chose.
This _can_ lead to better quality, when e.g. important parts of a picture like faces are compressed less, and less importants part (background) are compressed stronger, but it's still somewhat experimental.

Top


·  I want to burn my XviD files on DVD and play them on my DVD player - how to do that?

XviD is a MPEG-4 video codec. Regular DVD-players don't play MPEG-4, so if you want to watch XviD encoded files on a DVD player you have to convert them e.g. to VCD or SVCD first. There are many websites explaining this, go e.g. to http://www.vcdhelp.com

Alternatively you'd need a special MPEG-4 (DivX or XviD) capable DVD player that should be able to also play (some) XviD content (but be cautious with MPEG-4 hardware players - see above).

Top


·  I certainly found it amusing to note that XviD is reverse of DivX. I wonder: was that intentional?

Yes, the name XviD is DivX read backwards, but basically it's just a cool name ;-) Nonetheless the reversed name may also reflect the will to mark the ethical differences between DivX and XviD:

DivX is proprietary software, with an opaque development cycle that follows only a commercial logic. XviD is Free Software (licensed under the GNU GPL), open to third-party contributions and aims for standard's compliance, portability and interoperability, high processing speed and superior quality.

Top


·  I have problems compiling the '.asm' files: I'm getting strange errors, so what should I do?

Make sure you have nasm installed. If you have but you still have problems, make sure you have the very latest version of nasm installed. Download or upate nasm from: http://nasm.sourceforge.net

Top


·  I plan to use XviD in my own program and I'm going to modify it. Do I have to distribute my program as "open source" then?

Yes, XviD is released under the GNU GPL license which requires that all derived work from XviD also has to be distributed under the terms of the GNU GPL. A derived work, as defined in the GNU GPL, is a software that links (statically or dynamically) against XviD or includes XviD.

For more details see Section 1 and 2 of the GNU GPL license available in the source distribution or at http://www.gnu.org/licenses/gpl.html

Top

HTML5中video元素事件详解

事 件的处理方式 在利用video元素或audio元素读取或播放媒体数据的时候,会触发一系的事件,如果使用JavaScript脚本来捕捉这些事件,就可以对这些事件进行处理了。对这些事件的捕捉及处...
  • zhuchunyan_aijia
  • zhuchunyan_aijia
  • 2016年08月22日 16:16
  • 4731

使用jQuery和CSS自定义HTML5 Video 控件 简单适用

使用jQuery和CSS自定义HTML5 Video 控件 简单适用   Html5 Video是现在html5最流行的功能之一,得到了大多数最新版本的浏览器支持.包括IE9,也是如...
  • cdnight
  • cdnight
  • 2014年10月10日 16:26
  • 3374

去掉video controls的下载按钮方法

一般浏览器不会出现下载按钮,,只有谷歌浏览器会(低版本的右下角没有下载按钮,比如53.0版本,我的谷歌浏览器是53.0版本) 。用同事电脑上的58.0版本测试有下载按钮    如果你的谷歌浏览器版本...
  • sanai_1992
  • sanai_1992
  • 2017年08月22日 17:52
  • 2616

html5 video 预加载

var video_=document.createElement('video');        video_.setAttribute('src',src_);        video...
  • u011936353
  • u011936353
  • 2016年08月23日 13:53
  • 2563

HTML5中video-高度宽度

实际上,在video标签中,有这样一个属性可以为我们使用:videoHeight&videoWidth,他获取的是video的高度和宽度(媒体本身),虽然不能直接使用,但我想,我们可以通过计算长宽比来...
  • zhuchunyan_aijia
  • zhuchunyan_aijia
  • 2016年08月23日 14:43
  • 5079

html5 video 视频标签详解

现在如果要在页面中使用video标签,需要考虑三种情况,支持Ogg Theora或者VP8(如果这玩意儿没出事的话)的(Opera、Mozilla、Chrome),支持H.264的(Safari、IE...
  • qq_21831899
  • qq_21831899
  • 2016年09月13日 17:08
  • 3780

html5 video标签自定义控制条

最近做项目时要用到播放视频,采用的是h5的video标签,但是控制条不好看,所以想着自己做一套控制条!...
  • ishangxinyu
  • ishangxinyu
  • 2016年07月11日 17:20
  • 17392

Html5的video标签自动填充满父div的大小

想要video能自动填充慢父div的大小,只要给video标签加上style="width= 100%; height=100%; object-fit: fill"即可。 object-f...
  • wuqingyou_w
  • wuqingyou_w
  • 2016年06月14日 14:14
  • 13451

针对video标签改变其缩放比例比如4:3

.border{ position:relative; width:100%; height:0; padding-bottom:75%; //因为padding和margin等受width影响,父容...
  • evilemon
  • evilemon
  • 2015年11月16日 15:15
  • 1598

【video】FLV格式

1.header header部分记录了flv的类型、版本等信息,是flv的开头,一般都差不多,占9bytes。具体格式如下: 文件类型 3 bytes “FLV” 版本 1 byte 一般...
  • datamining2005
  • datamining2005
  • 2017年02月16日 15:15
  • 223
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:video mpeg4--xvid
举报原因:
原因补充:

(最多只允许输入30个字)