I tried to update x265 lib due to possible speedup reported at<div><br></div><div><a href="https://avidemux.org/smif/index.php?topic=19448.0">https://avidemux.org/smif/index.php?topic=19448.0</a> (up to 30%) </div><div><br></div><div>I downloaded tar.gz from <a href="https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.5.tar.gz">https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.5.tar.gz</a> and put it in thirdparty/src, renamed x265_3.4.patch* to x265_3.5.patch* and it worked for simple 420 8bit encode .. </div><div><br></div><div><br></div><div>--</div><div> $ ./cin.sh                                                             E: [pulseaudio] main.c: Failed to kill daemon: Unknown error 3         16                                                                     Killing Xvnc process ID 13038                                          Gdk-Message: 02:08:54.154: xfwm4: Fatal IO error 104 (Connection reset by peer) on X server :1.                                                                                                                      rm: cannot remove '/data/data/com.termux/files/usr/tmp/.X1-lock': No such file or directory                                                   rm: cannot remove '/data/data/com.termux/files/usr/tmp/.X11-unix/X1': No such file or directory                                                                                                                      New 'localhost:1 ()' desktop is localhost:1                                                                                                   Starting applications specified in /data/data/com.termux/files/home/.vnc/xstartup                                                             Log file is /data/data/com.termux/files/home/.vnc/localhost:1.log</div><div>                                                                       Cinelerra Infinity - built: Jul 12 2021 01:37:22                       git://<a href="http://git.cinelerra-gg.org/goodguy/cinelerra.git">git.cinelerra-gg.org/goodguy/cinelerra.git</a>                       (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams                    2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy              Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under  certain conditions. There is absolutely no warranty for Cinelerra.                                                                                                                                                   (xfwm4:13482): xfwm4-WARNING **: 02:08:59.352: Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined                                      BC_WindowBase::init_im: Could not open input method.                   BC_Theme::get_image: image "mode_reflect" not found.                   BC_Theme::get_image: image "mode_average" not found.                   BC_Theme::get_image: image "mode_normals" not found.                   FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 1                                                         FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 1                                                         FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 8                                                         FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 8                                                         FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 8                                                         FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 8                                                         FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 8                                                         filebase cpu 8                                                         tc: 0.000000                                                           tc: 42.320000                                                          x265 [info]: HEVC encoder version 3.5+1-f0c1022b6                      x265 [info]: build info [Linux][clang 12.0.0][32 bit][noasm] 8bit+10bit+12bit                                                                 x265 [info]: using cpu capabilities: none!                             x265 [info]: Main profile, Level-3 (Main tier)                         x265 [info]: Thread pool created using 8 threads                       x265 [info]: Slices                              : 1                   x265 [info]: frame threads / pool features       : 3 / wpp(9 rows)     x265 [warning]: Source height < 720p; disabling lookahead-slices       x265 [info]: Coding QT: max CU size, min CU size : 64 / 8              x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra                                                                     x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3</div><div>x265 [info]: Keyframe min / max / scenecut / bias  : 30 / 30 / 40 / 5.00                                                                      x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2          x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0           x265 [info]: References / ref-limit  cu / depth  : 3 / off / on        x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1    x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60     x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp                                                                    x265 [info]: tools: b-intra strong-intra-smoothing deblock sao         FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 8                                                         x265 [info]: frame I:     30, Avg QP:27.01  kb/s: 1674.48              x265 [info]: frame P:    300, Avg QP:30.57  kb/s: 387.99               x265 [info]: frame B:    276, Avg QP:34.53  kb/s: 168.77               x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%                         x265 [info]: consecutive B-frames: 67.0% 2.7% 13.6% 13.0% 3.6%                                                                                encoded 606 frames in 139.70s (4.34 fps), 351.83 kb/s, Avg QP:32.20    Render::render_single: Session finished.                               ** rendered 606 frames in 143.498 secs, 4.223 fps                      FFMPEG::open_decoder: some stream times estimated: /data/data/com.termux/files/home/matrixbench_highdivx_ac3.avi                              filebase cpu 8                                                         filebase cpu 8                                                         filebase cpu 1                                                         filebase cpu 1                                                         FFMPEG::scan: codec open failed                                        FFMPEG::scan:file=/data/data/com.termux/files/home/h265.mp4            filebase cpu 8                                                         AudioPulse::open_output 110: failed server=(null) Connection refused   AudioPulse::open_output 110: failed server=(null) Connection refused   Total excess of backups: 0                                             Session time: 0:05:44                                                  Cpu time: user: 0:10:19.434 sys: 0:00:13.609 </div><div><br></div><div><br></div><div><br></div><div> $ mediainfo ~/h265.mp4                                                 General                                                                Complete name                            : /data/data/com.termux/files/home/h265.mp4                                                          Format                                   : MPEG-4                      Format profile                           : Base Media                  Codec ID                                 : isom (isom/iso2/mp41)       File size                                : 1.03 MiB                    Duration                                 : 24 s 240 ms                 Overall bit rate                         : 356 kb/s                    Writing application                      : Lavf58.76.100                                                                                      Video                                                                  ID                                       : 1                           Format                                   : HEVC                        Format/Info                              : High Efficiency Video CodingFormat profile                           : Main@L3@Main                Codec ID                                 : hev1                        Codec ID/Info                            : High Efficiency Video CodingDuration                                 : 24 s 240 ms                 Bit rate                                 : 353 kb/s                    Width                                    : 720 pixels                  Height                                   : 576 pixels                  Display aspect ratio                     : 4:3                         Frame rate mode                          : Constant                    Frame rate                               : 25.000 FPS                  Standard                                 : PAL                         Color space                              : YUV                         Chroma subsampling                       : 4:2:0                       Bit depth                                : 8 bits                      Scan type                                : Progressive                 Bits/(Pixel*Frame)                       : 0.034                       Stream size                              : 1.02 MiB (99%)              Writing library                          : x265 3.5+1-f0c1022b6:[Linux][clang 12.0.0][32 bit][noasm] 8bit+10bit+12bit                         Encoding settings                        : cpuid=0 / frame-threads=3 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=720x576 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=30 / keyint=30 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=0 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / selective-sao=4 / early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=28.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=255 / sar-width / : / sar-height=16:15 / overscan=0 / videoformat=5 / range=1 / colorprim=2 / transfer=2 / colormatrix=5 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass                             Color range                              : Full                        Matrix coefficients                      : BT.470 System B/G           Codec configuration box                  : hvcC                                                                                               Other                                                                  ID                                       : 2                           Type                                     : Time code                   Format                                   : QuickTime TC                Duration                                 : 24 s 240 ms                 Frame rate                               : 25.000 FPS                  Time code of first frame                 : 00:00:42:08                 Time code, striped                       : Yes                         Language                                 : English                     Default                                  : No</div><div>----</div><div><br></div><div>at least in this case x265 prints  same number of encoded frames as Cinelerra... (606 frames) </div><div><br></div><div><br></div><div><br></div><div>I think 'make - j 1' lines in x264_3.4/3.5.patch3 can be safely removed - for small speedup (each sub-lib still compiles serially..) </div><div><br></div><div>not tested on older software distribitions, but I see no cmake/nasm version bumps at least in release notes... </div>