SOLVED Set a custom preset for HandbrakeCLI in FreeNAS

Status
Not open for further replies.

fahadshery

Contributor
Joined
Sep 29, 2017
Messages
179
All,

I found an easier way to set custom preset using HandbrakeCLI.

  1. Install Handbrake on a windows/linux machine
  2. Set the preset settings that you want from GUI i.e. width of the picture, CRF, bitrates etc.
  3. Save the preset within the GUI
  4. Click Presets menu at the top and select 'export to file'
  5. Save it on your HDD as a *.json
  6. move this file to FreeNas
  7. Call it using the following command
  8. HandBrakeCLI --preset-import-file /mnt/path/to/custom_preset.json -Z "give it a name (any name you want)" -i /mnt/path/to/media_file/my_video.MTS -o /mnt/path/to/converted/file/location/output.mp4

    It uses PresetName. The file name is only used for the purpose of opening the file, then it is forgotten and ignored.

    So if PresetName == "My Custom Preset" and file is "somepreset.json", the correct command line to use that preset is: HandBrakeCLI --preset-import-file somepreset.json -Z "My Custom Preset" ...
 
Status
Not open for further replies.
Top