Print Print
Reading time 8:14

Original author(s)Laurent Aimar
Developer(s)x264 team
Repository Edit this at Wikidata
Written inC, Assembly
TypeVideo encoder
LicenseGNU General Public License, version 2.0 (a proprietary licensing scheme is also available)[1]

x264 is a free and open-source software library and a command-line utility developed by VideoLAN for encoding video streams into the H.264/MPEG-4 AVC video coding format.[1] It is released under the terms of the GNU General Public License.[1]


x264 was originally developed by Laurent Aimar, who stopped development in 2004 after being hired by ATEME.[citation needed] Loren Merritt then took over development. Today, x264 is primarily developed by Loren Merritt, Fiona Glaser, Anton Mitrofanov and Henrik Gramner.


x264 provides a command line interface as well as an API. The former is used by many graphical user interfaces, such as Staxrip[2] and MeGUI.[3] The latter is used by many other interfaces, such as HandBrake[4] and FFmpeg.[5]

x264 implements a large number of features compared to other H.264 encoders.

x264 contains some psychovisual enhancements which aim to increase the subjective video quality of the encoded video.

  • Adaptive quantisation in two modes using VAQ. The second mode, a later addition, adapts the strength per frame in an attempt to improve the quality.[6]
  • Psychovisual rate–distortion optimization which attempts to maintain a similar complexity. The complexity is measured using a combination of sum-of-squares optimization (SSD) and sum of absolute transformed differences (SATD).[7]
  • Macroblock-tree rate control, which controls the quality by tracking how often parts of the frame are used for predicting future frames.[8]

x264 has won awards in the following codec comparisons:

  • Third Annual MSU MPEG-4 AVC/H.264 Video Codec Comparison, 2006[9]
  • Fourth Annual MSU MPEG-4 AVC/H.264 Video Codec Comparison, 2007[10]
  • Fifth Annual MSU MPEG-4 AVC/H.264 Video Codec Comparison, 2009[11]
  • Sixth Annual MSU MPEG-4 AVC/H.264 Video Codec Comparison, 2010[12]
  • Seventh Annual MSU MPEG-4 AVC/H.264 Video Codec Comparison, 2011[13]
  • Eighth Annual MSU MPEG-4 AVC/H.264 Video Codec Comparison, 2012[14]

x264 has SIMD assembly code acceleration on x86, PowerPC (using AltiVec), and ARMv7 (using NEON) platforms.

x264 is able to use Periodic Intra Refresh instead of keyframes, which enables each frame to be capped to the same size enabling each slice to be immediately transmitted in a single UDP or TCP packet and on arrival immediately decoded.[15] Periodic Intra Refresh can replace keyframes by using a column of intra blocks that move across the video from one side to the other, thereby "refreshing" the image. In effect, instead of a big keyframe, the keyframe is "spread" over many frames. The video is still seekable: a special header, called the SEI Recovery Point, tells the decoder to "start here, decode X frames, and then start displaying the video." This hides the refresh effect from the user while the frame loads. Motion vectors are restricted so that blocks on one side of the refresh column don't reference blocks on the other side, effectively creating a demarcation line in each frame.

In April 2010, the x264 project announced full Blu-ray compliant video encoding capability making x264 the first free Blu-ray compliant software H.264 encoder.[16] x264 has always had the ability to create video streams that are playable on most Blu-ray devices. However, it was up to the user to choose appropriate conversion settings. The default x264 preset chooses adequate compatibility for Blu-ray players but it is now possible to choose more complex conversion settings while simply maintaining compatibility by explicitly enabling Blu-ray compatibility mode. Blu-ray compatibility can be useful when striving for cross device compatibility, especially in the realm of high definition hardware media players.

x264 has been used to author commercial Blu-ray Disc titles released by Warner Bros.[17]

Tandberg controversy

In November 2010, Fiona Glaser, an x264 developer, published information in which she claims that one of Tandberg Telecom's (a Cisco Systems subsidiary) patent applications from December 2008 contains a step-by-step description of an algorithm she committed to the x264 codebase around two months earlier.[18][19] This was relayed by media, which remarked that the company who filed the patent was following the x264 project IRC development channel and was known to the project developers,[20][21] leading to Tandberg claiming that they discovered the algorithm independently.[22]

x264 frontends

  • Avidemux
  • FFmpeg[5]
  • HandBrake[4]
  • OpenShot
  • MediaCoder
  • MeGUI[3]
  • MEncoder[23]
  • RipBot264[24]
  • Staxrip[2]
  • Telestream Episode
  • TMPGEnc Video Mastering Works 5[25]
  • XMedia Recode
  • Harmonic Rhozet Workflow System[26]

See also

  • MPEG-4 — A standard of various MPEG formats including video, audio, subtitle, and interaction.
  • Doom9 — A forum for video creation help and technical discussions.
  • x265 — Open source HEVC/H.265 encoder that has licensed the rights to use the x264 source code.


  1. ^ a b c "x264 Home Page". VideoLan Organization. Retrieved 2011-03-11. In addition to being free to use under the GNU GPL, x264 is also available under a commercial license from x264 LLC and CoreCodec. Contact [email protected] for more details.
  2. ^ a b "StaxRip". Staxmedia.sourceforge.net. Retrieved 2010-12-28.
  3. ^ a b "MeGUI - x264/XviD/lavc/Snow encoder with MP4/MKV/AVI output & audio - Doom9's Forum". Forum.doom9.org. Retrieved 2010-12-28.
  4. ^ a b "Handbrake Details". Handbrake Project. Archived from the original on 2011-07-27. Retrieved 2011-03-11.
  5. ^ a b "FFmpeg General Documentation". FFmpeg Team. Retrieved 2011-03-11.
  6. ^ "Variance AQ Megathread (AQ v0.48 update-defaults changed) [Archive] - Doom9's Forum". Forum.doom9.org. Retrieved 2010-12-28.
  7. ^ "Psy RDO: Official testing thread (version 0.6 out!) [Archive] - Doom9's Forum". Forum.doom9.org. Retrieved 2010-12-28.
  8. ^ "x264 "Macroblock Tree Ratecontrol" testing (committed) [Archive] - Doom9's Forum". Forum.doom9.org. 2008-08-25. Retrieved 2010-12-28.
  9. ^ "Third Annual MSU MPEG-4 AVC/H.264 Video Codec Comparison" (in Russian). Compression.ru. 2010-12-06. Retrieved 2010-12-28.
  10. ^ "Fourth Annual MSU MPEG-4 AVC/H.264 Video Codec Comparison" (in Russian). Compression.ru. 2010-12-06. Retrieved 2010-12-28.
  11. ^ "Fifth MSU MPEG-4 AVC/H.264 Video Codec Comparison" (in Russian). Compression.ru. 2010-12-06. Retrieved 2010-12-28.
  12. ^ "MSU Sixth MPEG-4 AVC/H.264 Video Codecs Comparison" (in Russian). Compression.ru. Retrieved 2010-12-28.
  13. ^ "MSU Seventh MPEG-4 AVC/H.264 Video Codecs Comparison". Compression.ru. Retrieved 2011-05-26.
  14. ^ "MSU Eighth MPEG-4 AVC/H.264 Video Codecs Comparison". Compression.ru. Retrieved 2012-06-22.
  15. ^ "X264". Retrieved 2012-07-14.
  16. ^ "Announcing the first free software Blu-ray encoder". X264dev.multimedia.cx. 2010-04-25. Retrieved 2010-12-28.
  17. ^ "x264 encoded discs — Authoring a professional Blu-ray Disc with x264".
  18. ^ Fiona Glaser (November 2010). "Patent skullduggery: Tandberg rips off x264 algorithm (original post)". x264.nl. Retrieved 2010-11-28. So why the deja vu? Because this patent application was an exact, step-by-step description of the algorithm I came up with for decimate_score (and later coeff_level_run) in x264 in 2008!
  19. ^ Fiona Glaser (2010-11-25). "Patent skullduggery: Tandberg rips off x264 algorithm". x264dev.multimedia.cx. Archived from the original on 2010-11-28. Retrieved 2010-11-28.
  20. ^ "Tandberg coder accused of open source theft". thinq.co.uk. 2010-11-26. Retrieved 2010-11-28.
  21. ^ "Tandberg rips off an open source project". The Inquirer. 2010-11-26. Retrieved 2010-11-28. Tandberg hardly employed any subtlety. The company has one of its employers following the x264 project's IRC development channel and the guy who registered the patent is known to the X264 project.
  22. ^ "Tandberg illustrates stupidity of software patent policy". ZDNet. 2010-11-27. Retrieved 2010-11-28.
  23. ^ "Selecting Codecs and Container Formats". MPlayer. Retrieved 2011-03-11.
  24. ^ "RipBot264 1.16.3 - VideoHelp.com Downloads". Videohelp.com. Retrieved 2010-12-28.
  25. ^ "TMPGEnc Video Mastering Works 5: New Features". tmpgenc.pegasys-inc.com. Retrieved 28 September 2012.
  26. ^ "Compiling x264 for ProMedia Xpress" (PDF). Harmonic Inc. 2014. Retrieved 2014-09-22.

By: Wikipedia.org
Edited: 2021-06-18 19:37:59
Source: Wikipedia.org