HandBrakeCLI: Read preset from JSON file

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
Arboriculteur
Posts: 2
Joined: Tue Aug 27, 2019 10:07 am

HandBrakeCLI: Read preset from JSON file

Post by Arboriculteur »

Description of problem or question:
As HandBrake allows the export of user defined presets as a JSON file, it would be great if one could set the detailled CLI options by something like that:

--preset_file "C:\HandBrake\myownpreset.json"

Steps to reproduce the problem (If Applicable):
No problem - just a suggestion

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

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

HandBrake Activity Log ***required***
Not provided as this posting contains only a suggestion

Kind regards,
Franz
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: HandBrakeCLI: Read preset from JSON file

Post by Woodstock »

You don't have to export-then-import them...

--preset-import-gui Import presets from GUI config preset file.

But you can:

--preset-import-file <filespec> Import presets from a json preset file. 'filespec' may be a list of files separated by spaces, or it may use shell wildcards.
Arboriculteur
Posts: 2
Joined: Tue Aug 27, 2019 10:07 am

Re: HandBrakeCLI: Read preset from JSON file

Post by Arboriculteur »

Hello, Woodstock,

thanks a lot for your assistance and my apology for not doing my homework carefully enough before posting: I overlooked it in the --help command and as the link https://handbrake.fr/docs/de/1.2.0/cli/ ... rence.html is a dead link, it took me some time to think "If the link for German doesn't work, let's try the one for English", which, of course works.

Kind regards,

Franz
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: HandBrakeCLI: Read preset from JSON file

Post by BradleyS »

This is the working link: https://handbrake.fr/docs/de/1.2.0/cli/ ... rence.html

I'll try to find and fix wherever it is broken. Thanks.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: HandBrakeCLI: Read preset from JSON file

Post by BradleyS »

Broken url fixed in https://github.com/HandBrake/HandBrake- ... 3195dac3a9

This will go live the next time the documentation is published.
Post Reply