2
0

av.conf.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <configuration name="avcodec.conf" description="AVCodec Config">
  2. <settings>
  3. <!-- max bitrate the system support, truncate if over limit -->
  4. <!-- <param name="max-bitrate" value="5mb"/> -->
  5. <!-- <param name="rtp-slice-size" value="1200"/> -->
  6. <!-- minimum time to generate a new key frame in ms /> -->
  7. <!-- <param name="key-frame-min-freq" value="250"/> -->
  8. <!-- integer of cpus, or 'auto', or 'cpu/<divisor>/<max> -->
  9. <param name="dec-threads" value="1"/>
  10. <param name="enc-threads" value="cpu/2/4"/>
  11. </settings>
  12. <profiles>
  13. <profile name="H263">
  14. </profile>
  15. <profile name="H263+">
  16. </profile>
  17. <profile name="H264">
  18. <!-- <param name="dec-threads" value="1"/> -->
  19. <!-- <param name="enc-threads" value="cpu/2/4"/> -->
  20. <!-- <param name="profile" value="baseline"/> -->
  21. <!-- <param name="level" value="41"/> -->
  22. <!-- <param name="timebase" value="1/90"/> -->
  23. <!--
  24. #define AV_CODEC_FLAG_UNALIGNED (1 << 0)
  25. #define AV_CODEC_FLAG_QSCALE (1 << 1)
  26. #define AV_CODEC_FLAG_4MV (1 << 2)
  27. #define AV_CODEC_FLAG_OUTPUT_CORRUPT (1 << 3)
  28. #define AV_CODEC_FLAG_QPEL (1 << 4)
  29. #define AV_CODEC_FLAG_PASS1 (1 << 9)
  30. #define AV_CODEC_FLAG_PASS2 (1 << 10)
  31. #define AV_CODEC_FLAG_LOOP_FILTER (1 << 11)
  32. #define AV_CODEC_FLAG_GRAY (1 << 13)
  33. #define AV_CODEC_FLAG_PSNR (1 << 15)
  34. #define AV_CODEC_FLAG_TRUNCATED (1 << 16)
  35. #define AV_CODEC_FLAG_INTERLACED_DCT (1 << 18)
  36. #define AV_CODEC_FLAG_LOW_DELAY (1 << 19)
  37. #define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22)
  38. #define AV_CODEC_FLAG_BITEXACT (1 << 23)
  39. #define AV_CODEC_FLAG_AC_PRED (1 << 24)
  40. #define AV_CODEC_FLAG_INTERLACED_ME (1 << 29)
  41. #define AV_CODEC_FLAG_CLOSED_GOP (1U << 31)
  42. -->
  43. <param name="flags" value="LOOP_FILTER|PSNR"/>
  44. <!--
  45. #define FF_CMP_SAD 0
  46. #define FF_CMP_SSE 1
  47. #define FF_CMP_SATD 2
  48. #define FF_CMP_DCT 3
  49. #define FF_CMP_PSNR 4
  50. #define FF_CMP_BIT 5
  51. #define FF_CMP_RD 6
  52. #define FF_CMP_ZERO 7
  53. #define FF_CMP_VSAD 8
  54. #define FF_CMP_VSSE 9
  55. #define FF_CMP_NSSE 10
  56. #define FF_CMP_W53 11
  57. #define FF_CMP_W97 12
  58. #define FF_CMP_DCTMAX 13
  59. #define FF_CMP_DCT264 14
  60. #define FF_CMP_MEDIAN_SAD 15
  61. #define FF_CMP_CHROMA 256
  62. -->
  63. <!-- <param name="me-cmp" value="1"/> -->
  64. <!-- <param name="me-range" value="16"/> -->
  65. <!-- <param name="max-b-frames" value="3"/> -->
  66. <!-- <param name="refs" value="3"/> -->
  67. <!-- <param name="gop-size" value="250"/> -->
  68. <!-- <param name="keyint-min" value="25"/> -->
  69. <!-- <param name="i-quant-factor" value="0.71"/> -->
  70. <!-- <param name="b-quant-factor" value="0.76923078"/> -->
  71. <!-- <param name="qcompress" value="0.6"/> -->
  72. <!-- <param name="qmin" value="10"/> -->
  73. <!-- <param name="qmax" value="51"/> -->
  74. <!-- <param name="max-qdiff" value="4"/> -->
  75. <!--
  76. enum AVColorSpace {
  77. AVCOL_SPC_RGB = 0, ///< order of coefficients is actually GBR, also IEC 61966-2-1 (sRGB)
  78. AVCOL_SPC_BT709 = 1, ///< also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B
  79. AVCOL_SPC_UNSPECIFIED = 2,
  80. AVCOL_SPC_RESERVED = 3,
  81. AVCOL_SPC_FCC = 4, ///< FCC Title 47 Code of Federal Regulations 73.682 (a)(20)
  82. AVCOL_SPC_BT470BG = 5, ///< also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601
  83. AVCOL_SPC_SMPTE170M = 6, ///< also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
  84. AVCOL_SPC_SMPTE240M = 7, ///< functionally identical to above
  85. AVCOL_SPC_YCGCO = 8, ///< Used by Dirac / VC-2 and H.264 FRext, see ITU-T SG16
  86. AVCOL_SPC_YCOCG = AVCOL_SPC_YCGCO,
  87. AVCOL_SPC_BT2020_NCL = 9, ///< ITU-R BT2020 non-constant luminance system
  88. AVCOL_SPC_BT2020_CL = 10, ///< ITU-R BT2020 constant luminance system
  89. AVCOL_SPC_SMPTE2085 = 11, ///< SMPTE 2085, Y'D'zD'x
  90. AVCOL_SPC_CHROMA_DERIVED_NCL = 12, ///< Chromaticity-derived non-constant luminance system
  91. AVCOL_SPC_CHROMA_DERIVED_CL = 13, ///< Chromaticity-derived constant luminance system
  92. AVCOL_SPC_ICTCP = 14, ///< ITU-R BT.2100-0, ICtCp
  93. AVCOL_SPC_NB ///< Not part of ABI
  94. };
  95. -->
  96. <param name="colorspace" value="0"/>
  97. <!--
  98. enum AVColorRange {
  99. AVCOL_RANGE_UNSPECIFIED = 0,
  100. AVCOL_RANGE_MPEG = 1, ///< the normal 219*2^(n-8) "MPEG" YUV ranges
  101. AVCOL_RANGE_JPEG = 2, ///< the normal 2^n-1 "JPEG" YUV ranges
  102. AVCOL_RANGE_NB ///< Not part of ABI
  103. };
  104. -->
  105. <param name="color-range" value="2"/>
  106. <!-- x264 private options-->
  107. <options>
  108. <option name="preset" value="veryfast"/>
  109. <option name="intra_refresh" value="1"/>
  110. <option name="tune" value="animation+zerolatency"/>
  111. <option name="sc_threshold" value="40"/>
  112. <option name="b_strategy" value="1"/>
  113. <option name="crf" value="18"/>
  114. </options>
  115. </profile>
  116. <profile name="H265">
  117. </profile>
  118. <profile name="conference">
  119. <param name="dec-threads" value="1"/>
  120. <param name="enc-threads" value="cpu/2/4"/>
  121. <codecs>
  122. <!-- profiles will be parsed at runtime
  123. to overwrite this profile params if codec matches -->
  124. <codec name="H263" profile="H263"/>
  125. <codec name="H264" profile="H264"/>
  126. <codec name="H264" profile="conference-H264"/>
  127. </codecs>
  128. </profile>
  129. <profile name="conference-H264">
  130. <options>
  131. <option name="preset" value="veryfast"/>
  132. <option name="intra_refresh" value="1"/>
  133. <option name="tune" value="animation+zerolatency"/>
  134. <option name="sc_threshold" value="40"/>
  135. <option name="b_strategy" value="1"/>
  136. <option name="crf" value="10"/>
  137. </options>
  138. </profile>
  139. </profiles>
  140. </configuration>
  141. <configuration name="avformat.conf" description="AVFormat Config">
  142. <settings>
  143. <param name="colorspace" value="1"/>
  144. </settings>
  145. </configuration>