Migrate GUI Options to CLI

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
spetrillo
Posts: 25
Joined: Sun Oct 20, 2019 10:41 pm

Migrate GUI Options to CLI

Post by spetrillo »

Description of problem or question: I am currently using the GUI version and I do not change options often. I would like to migrate these options to the CLI version, so I can automate processing of video files throughout the day. Is there a file or log that will show me all the options Handbrake uses during a video processing run?

Steps to reproduce the problem (If Applicable):

HandBrake version (e.g., 1.0.0):1.82

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):Windows 11 24H2

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.8.2 (2024081000)
OS: Microsoft Windows NT 10.0.26100.0
CPU: Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz
Ram: 16335 MB, 
GPU Information:
  Radeon RX Vega M GH Graphics - 31.0.21001.46001
Screen: 2560x1440
Temp Dir: C:\Users\Steven Petrillo\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Steven Petrillo\AppData\Roaming\HandBrake

-------------------------------------------
[17:23:03] hb_init: starting libhb thread

 # Starting Scan ...

[17:23:03] CPU: Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz
[17:23:03]  - Intel microarchitecture Kaby Lake
[17:23:03]  - logical processor count: 8
[17:23:03] Intel Quick Sync Video support: no
[17:23:03] hb_scan: path=Y:\Transcode\Pre\TV Shows\Tulsa King {tmdb-153312}\Season 02\Tulsa King - S02E09 - Triad.mkv, title_index=0
Input #0, matroska,webm, from 'Y:\Transcode\Pre\TV Shows\Tulsa King {tmdb-153312}\Season 02\Tulsa King - S02E09 - Triad.mkv':
  Metadata:
    encoder         : libebml v1.4.4 + libmatroska v1.7.1
  Duration: 00:36:35.07, start: 0.000000, bitrate: 5720 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x960 [SAR 1:1 DAR 2:1], 23.98 fps, 23.98 tbr, 1k tbn (default)
      Metadata:
        BPS             : 5078376
        DURATION        : 00:36:35.068000000
        NUMBER_OF_FRAMES: 52629
        NUMBER_OF_BYTES : 1393422721
        _STATISTICS_WRITING_APP: mkvmerge v74.0.0 ('You Oughta Know') 64-bit
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
      Metadata:
        BPS             : 640000
        DURATION        : 00:36:35.072000000
        NUMBER_OF_FRAMES: 68596
        NUMBER_OF_BYTES : 175605760
        _STATISTICS_WRITING_APP: mkvmerge v74.0.0 ('You Oughta Know') 64-bit
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: subrip (srt)
      Metadata:
        title           : English (SDH)
        BPS             : 71
        DURATION        : 00:35:37.102000000
        NUMBER_OF_FRAMES: 701
        NUMBER_OF_BYTES : 19140
        _STATISTICS_WRITING_APP: mkvmerge v74.0.0 ('You Oughta Know') 64-bit
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[17:23:03] scan: decoding previews for title 1
[17:23:03] scan: audio 0x1: eac3, rate=48000Hz, bitrate=640000 English (E-AC3, 5.1 ch, 640 kbps)
[17:23:04] using container PAR 1:1
[17:23:04] scan: 10 previews, 1920x960, 23.976 fps, autocrop = 0/0/0/0, aspect 2.00:1, PAR 1:1, color profile: 1-1-1, chroma location: left
[17:23:04] libhb: scan thread found 1 valid title(s)

 # Scan Finished ...


mduell
Veteran User
Posts: 8355
Joined: Sat Apr 21, 2007 8:54 pm

Re: Migrate GUI Options to CLI

Post by mduell »

Ideally, read the CLI docs and pick the options you want.

Alternatively, you can import the GUI presets in the CLI and use one by name.
spetrillo
Posts: 25
Joined: Sun Oct 20, 2019 10:41 pm

Re: Migrate GUI Options to CLI

Post by spetrillo »

I just found that you could export the presets but where do they put the file?
rollin_eng
Veteran User
Posts: 4997
Joined: Wed May 04, 2011 11:06 pm

Re: Migrate GUI Options to CLI

Post by rollin_eng »

You can have the CLI import presets from the GUI, no need for an external file.
spetrillo
Posts: 25
Joined: Sun Oct 20, 2019 10:41 pm

Re: Migrate GUI Options to CLI

Post by spetrillo »

Unfortunately the GUI version is on one machine and the CLI version is on a VM.
mduell
Veteran User
Posts: 8355
Joined: Sat Apr 21, 2007 8:54 pm

Re: Migrate GUI Options to CLI

Post by mduell »

Export the presets to a file and source them.
Post Reply