Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x265 Advanced options not working ? #2563

Closed
rombat opened this issue Jan 7, 2020 · 2 comments
Closed

x265 Advanced options not working ? #2563

rombat opened this issue Jan 7, 2020 · 2 comments

Comments

@rombat
Copy link

rombat commented Jan 7, 2020

Problem description:

I don't know if I'm not using it correctly, but whenever I try to add additionnal options to x265 encoding, they're not taken into account.

For instance I just add --aq-mode 3 --aq-strength 0.9 to the advanced options textarea.
But when I check my output file with MediaInfo, it has not been taken into account:

cpuid=1049583 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1060 / 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=24 / keyint=240 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=6 / scenecut=40 / 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-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=16.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=1 / overscan=0 / videoformat=5 / range=0 / colorprim=1 / transfer=1 / colormatrix=1 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / 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 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / 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

The same with other options like --no-sao --deblock=-1:-1

HandBrake version (e.g., 1.3.0):

Nightly 20200104161107-d6b65cc-master (2020010401)

Operating system and version (e.g., Ubuntu 19.10, macOS 10.15 Catalina, Windows 10 1909):

Windows 7 64bits

Error message text and/or screenshot:

see above in description

HandBrake Activity Log:

An Activity Log is required for support. Please read https://handbrake.fr/docs/en/latest/help/activity-log.html for more information.

HandBrake Nightly 20200104161107-d6b65cc-master (2020010401)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
Ram: 16343 MB, 
GPU Information:
  NVIDIA GeForce GTX 1660 Ti - 26.21.14.4108
Screen: 1920x1200
Temp Dir: C:\Users\tinbapakk\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\tinbapakk\AppData\Roaming\HandBrake\Nightly

-------------------------------------------


# Starting Encode ...

[10:12:28] base preset: x26510bit CRF 20 Medium (Modified)
[22:12:28] hb_init: starting libhb thread
[22:12:28] Starting work at: Tue Jan 07 22:12:28 2020
[22:12:28] 1 job(s) to process
[22:12:28] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "G:\\@enco_temp\\[Kamigami] Tokyo Godfathers medium sample crf16 aq3 s0.9.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 12,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1060",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "time",
      "Start": 189000000,
      "End": 194400000
    },
    "Title": 1,
    "Path": "G:\\@films_a_enco\\[Kamigami] Tokyo Godfathers [BD x264 1920×1060 FLAC(5.1ch) Sub(GB,BIG5,JP,EN,FR,SP,PT,RU)].mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265_10bit",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "--aq-mode 3 --aq-strength 0.9",
    "Preset": "medium",
    "Profile": "auto",
    "Quality": 16.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[22:12:28] CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
[22:12:28]  - Intel microarchitecture Ivy Bridge
[22:12:28]  - logical processor count: 8
[22:12:28] Intel Quick Sync Video support: no
[22:12:28] hb_scan: path=G:\@films_a_enco\[Kamigami] Tokyo Godfathers [BD x264 1920×1060 FLAC(5.1ch) Sub(GB,BIG5,JP,EN,FR,SP,PT,RU)].mkv, title_index=1
src/libbluray/disc/disc.c:323: failed opening UDF image G:\@films_a_enco\[Kamigami] Tokyo Godfathers [BD x264 1920×1060 FLAC(5.1ch) Sub(GB,BIG5,JP,EN,FR,SP,PT,RU)].mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2585: nav_get_title_list(G:\@films_a_enco\[Kamigami] Tokyo Godfathers [BD x264 1920×1060 FLAC(5.1ch) Sub(GB,BIG5,JP,EN,FR,SP,PT,RU)].mkv\) failed
[22:12:28] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:12:28] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'G:\@films_a_enco\[Kamigami] Tokyo Godfathers [BD x264 1920×1060 FLAC(5.1ch) Sub(GB,BIG5,JP,EN,FR,SP,PT,RU)].mkv':
  Metadata:
    title           : [SAR] Shinigami Anime Releases - Tokyo Godfathers
    encoder         : libebml v1.3.0 + libmatroska v1.4.0
    creation_time   : 1970-01-01T00:00:01.355988Z
  Duration: 01:31:41.50, start: 0.000000, bitrate: 8645 kb/s
    Stream #0:0(jpn): Video: h264 (High), yuv420p(progressive), 1920x1060 [SAR 1:1 DAR 96:53], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0:1(jpn): Audio: flac, 96000 Hz, 5.1(side), s16 (default)
    Metadata:
      title           : FLAC→5.1ch 96KHZ
    Stream #0:2(chi): Subtitle: dvd_subtitle, 1920x1080 (default)
    Metadata:
      title           : �日字幕
    Stream #0:3(chi): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : 简日字幕
    Stream #0:4(chi): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : �体中文
    Stream #0:5(chi): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : 简体中文
    Stream #0:6(jpn): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : 日文
    Stream #0:7(eng): Subtitle: dvd_subtitle, 720x480
    Metadata:
      title           : 英文
    Stream #0:8(fre): Subtitle: dvd_subtitle, 720x480
    Metadata:
      title           : 法文
    Stream #0:9(spa): Subtitle: dvd_subtitle, 720x480
    Metadata:
      title           : 西�牙文
    Stream #0:10(por): Subtitle: dvd_subtitle, 720x480
    Metadata:
      title           : 葡�牙文
    Stream #0:11(rus): Subtitle: dvd_subtitle, 1280x720
    Metadata:
      title           : ä¿„æ–‡
    Stream #0:12: Attachment: ttf
    Metadata:
      filename        : sylfaen.ttf
      mimetype        : application/x-truetype-font
    Stream #0:13: Attachment: ttf
    Metadata:
      filename        : WendelinNormal.ttf
      mimetype        : application/x-truetype-font
    Stream #0:14: Attachment: ttf
    Metadata:
      filename        : framd.ttf
      mimetype        : application/x-truetype-font
[22:12:28] scan: decoding previews for title 1
[22:12:28] scan: audio 0x1: flac, rate=96000Hz, bitrate=1 ??? (FLAC) (5.1 ch)
[22:12:29] scan: 10 previews, 1920x1060, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:12:29] scan: supported video decoders: avcodec qsv
[22:12:29] libhb: scan thread found 1 valid title(s)
[22:12:29] Starting Task: Encoding Pass
[22:12:29] Skipping crop/scale filter
[22:12:29] job configuration:
[22:12:29]  * source
[22:12:29]    + G:\@films_a_enco\[Kamigami] Tokyo Godfathers [BD x264 1920×1060 FLAC(5.1ch) Sub(GB,BIG5,JP,EN,FR,SP,PT,RU)].mkv
[22:12:29]    + title 1, start 00:35:0.00 stop 00:36:0.00
[22:12:29]    + container: matroska,webm
[22:12:29]    + data rate: 8645 kbps
[22:12:29]  * destination
[22:12:29]    + G:\@enco_temp\[Kamigami] Tokyo Godfathers medium sample crf16 aq3 s0.9.mkv
[22:12:29]    + container: Matroska (libavformat)
[22:12:29]  * video track
[22:12:29]    + decoder: h264
[22:12:29]    + filter
[22:12:29]      + Framerate Shaper (mode=1)
[22:12:29]        + frame rate: 23.976 fps -> constant 23.976 fps
[22:12:29]    + Output geometry
[22:12:29]      + storage dimensions: 1920 x 1060
[22:12:29]      + pixel aspect ratio: 1 : 1
[22:12:29]      + display dimensions: 1920 x 1060
[22:12:29]    + encoder: H.265 10-bit (libx265)
[22:12:29]      + preset:  medium
[22:12:29]      + options: --aq-mode 3 --aq-strength 0.9
[22:12:29]      + profile: auto
[22:12:29]      + level:   auto
[22:12:29]      + quality: 16.00 (RF)
[22:12:29]      + color profile: 1-1-1
[22:12:29] sync: expecting 1462 video frames
[22:12:29] encx265: unknown option '--aq-mode 3 --aq-strength 0.9'
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Windows][GCC 9.2.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main 10 profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(17 rows)
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
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 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-16.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip signhide tmvp b-intra
x265 [info]: tools: strong-intra-smoothing lslices=6 deblock sao
[22:12:29] sync: first pts video is 0
[22:14:49] sync: reached video pts 5401646, exiting early
[22:14:58] work: average encoding speed for job is 10.269631 fps
[22:14:58] vfr: 1439 frames output, 0 dropped and 0 duped for CFR/PFR
[22:14:58] vfr: lost time: 0 (0 frames)
[22:14:58] vfr: gained time: 0 (0 frames) (0 not accounted for)
[22:14:58] h264-decoder done: 3302 frames, 0 decoder errors
[22:14:59] sync: got 1439 frames, 1462 expected
[22:14:59] sync: framerate min 23.976 fps, max 23.976 fps, avg 23.976 fps
x265 [info]: frame I:     14, Avg QP:13.86  kb/s: 28088.72
x265 [info]: frame P:    357, Avg QP:14.96  kb/s: 9742.49
x265 [info]: frame B:   1068, Avg QP:20.58  kb/s: 957.87
x265 [info]: Weighted P-Frames: Y:3.4% UV:1.1%
x265 [info]: consecutive B-frames: 4.3% 2.7% 7.0% 72.8% 13.2%
encoded 1439 frames in 149.83s (9.60 fps), 3401.19 kb/s, Avg QP:19.12
[22:14:59] mux: track 0, 1439 frames, 25522460 bytes, 3401.96 kbps, fifo 1024
[22:14:59] Finished work at: Tue Jan 07 22:14:59 2020
[22:14:59] libhb: work result = 0

# Encode Completed ...
@rombat rombat closed this as completed Jan 7, 2020
@woodstockathbf
Copy link

Handbrake does not call the x265 command line; the format for "extra options" is a list. Examples can be seen in the presets.

@bradleysepos
Copy link
Contributor

aq-mode=3:aq-strength=0.9 is the syntax, for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants