1. 程式人生 > >【mpeg2】mpeg2編碼器的開源實現:x262

【mpeg2】mpeg2編碼器的開源實現:x262

Date: 2018.10.15

1、x262介紹及其原始碼下載

x262簡介:x262是基於x264最佳效能開發的MPEG-2編碼器,由VideoLAN(a project and non-profit organization)釋出。 下面介紹摘抄自:https://www.videolan.org/developers/x262.html     x262 is a free software library and application for encoding video streams into the MPEG-2 compression format, and is released under the terms of the GNU GPL.     x262 is an MPEG-2 encoder based on the best-in-class features of x264.     It also has the big advantage that the codec is simple enough for people new to video-compression to get involved. Encoder features:

  • Adaptive B-frame placement
  • Custom quantization matrices
  • Interlacing (frame/field adaptation per macrolock)
  • Ratecontrol: constant quantizer, constant quality, single or multipass ABR, optional VBV
  • Scenecut detection
  • Parallel encoding on multiple CPUs
  • Psy optimizations for detail retention (adaptive quantization, psy-RD, psy-trellis)
  • Zones for arbitrarily adjusting bitrate distribution
2、Linux平臺編譯、執行和效能測試

Linux平臺下的編譯很簡單! 編譯:

./configure
make

生成的mpeg2編碼器為:x262

執行命令列:

./x262 -o test.mpeg2  foreman_cif.yuv  --input-res 352x288 --mpeg2 -B 1024

編碼效能測試:

待補充

THE END