fahadshery
Contributor
- Joined
- Sep 29, 2017
- Messages
- 179
All,
I found an easier way to set custom preset using HandbrakeCLI.
I found an easier way to set custom preset using HandbrakeCLI.
- Install
Handbrake
on a windows/linux machine - Set the preset settings that you want from GUI i.e.
width of the picture, CRF, bitrates
etc. - Save the preset within the GUI
- Click
Presets
menu at the top and select'export to file'
- Save it on your HDD as a
*.json
- move this file to
FreeNas
- Call it using the following command
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 usesPresetName
. 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" ...