summaryrefslogtreecommitdiffstats
path: root/libhb/preset.c
Commit message (Collapse)AuthorAgeFilesLines
* CLI: add option to log version, title, and progress in jsonJohn Stebbins2017-11-061-2/+2
| | | This is useful for scripts and other frontends that need to parse CLI output.
* presets: enforce 2 level hierarchy when importing presetsJohn Stebbins2017-11-061-1/+193
| | | | See https://github.com/HandBrake/HandBrake/issues/833#issuecomment-333193971
* LinGui: Add "Category" dropdown to preset save dialogJohn Stebbins2017-11-061-12/+23
| | | | | | | | | | | This replaces the "New Folder" option in the presets menu. It enforces the folder structure we have agreed to and hopefully helps the user keep things organized. Note that users are allowed to save a custom preset to the same "Category" as an official preset. When they do this, a new custom category is created with the same name and the preset is saved in that folder.
* sync: work-around players with broken edit list supportJohn Stebbins2017-06-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This adds a preset key AlignAVStart that enables this work-around. When enabled, blank frames are inserted or frames are dropped to force alignment of the initial timestamp of every audio and video stream. Aligning the start times minimizes the impact of broken edit list support in players. Closes #763. Squashed: sync: improve alignment when passthru audio is present presets: enable AlignAVStart for General and Gmail presets LinGui: Improve AlignAVStart tooltip sync: avoid inserting a black frame < nominal frame duration sync: fix start alignment when doing p-to-p encoding sync: add comments
* opencl: removit it (#777)John Stebbins2017-06-121-9/+17
| | | | It was only used for scaling, it fails far too often and is only faster on a limited selectoin of hardware.
* Allow audio fallback to be "None" (#623)John Stebbins2017-06-121-4/+9
| | | | | | | | | | | * Allow audio fallback to be "None" When audio fallback is "None", a failure to do passthru will result in no output audio track being added. * simplify audio autopassthru fallback logic Drop track when fallback codec is invalid instead of falling back to a default. Since all presets have a fallback set, the default fallback condition would only ever be triggered by an invalid setting.
* preset: fix importing some preset versions (#774)John Stebbins2017-06-071-6/+18
| | | | | If a preset file is read that has a version where no specific changes to the preset format were made, we did not perform an import even though some later preset version has changes.
* libhb: Add LapSharp sharpening filter.Bradley Sepos2017-05-301-1/+5
|
* libhb: Add Unsharp sharpening filter.Bradley Sepos2017-05-301-0/+46
| | | | Closes #525.
* preset: fix audio settings when samplerate == autoDamiano Galassi2017-04-141-0/+4
|
* preset: fix sanitizing audio settings when samplerate != AutoJohn Stebbins2017-04-121-2/+7
| | | | | The samplerate was incorrectly copied to the job as a string instead of an int which caused invalid sanitizing of audio settings.
* preset: fix application of anamorphic "Off"John Stebbins2017-02-191-1/+1
|
* preset: fix behavior of AudioSecondaryEncoderModeJohn Stebbins2017-01-291-2/+2
| | | | | When true, this is meant to use the secondary encoder only for the first selected audio track. It was completely broken :(
* preset: fix "all" AudioTrackSelectionBehaviorJohn Stebbins2017-01-111-5/+10
| | | | | When all tracks are requested, do not filter out secondary audio types. This should only be done when only the "first" track is requested.
* Update copyright dates to 2017.Bradley Sepos2017-01-011-1/+1
|
* presets: fix hb_preset_moveJohn Stebbins2016-12-301-1/+1
| | | | | Moving between different folder levels was broken. This broke preset drag-and-drop in LinGui.
* libhb: Remove redundant check in preset.c.midzer2016-12-141-4/+3
|
* Add new anamorphic mode "Automatic", delete "Strict" (#367)John Stebbins2016-10-311-5/+38
| | | | | | | | | * Add new anamorphic mode "Automatic", delete "Strict" Anamorphic mode automatic is added to support Bradley's new presets that are designed to pick a PAR that maximizes storage resolution. Strict is converted to Loose + mod == 2 + UsesPictureSettings == 2 when importing presets
* LinGui: fix some issues with reloading audio defaultsJohn Stebbins2016-09-081-0/+99
| | | | | Reloading the audio defaults basically didn't work right. Some settings didn't get loaded, some got loaded and not displayed or displayed wrong.
* libhb: add a declaration for hb_presets_add_internalSean McGovern2016-07-011-1/+2
| | | | Also, mark it as static as it is not used outside of this file.
* preset: Add CLI Default preset. (#214)Bradley Sepos2016-06-271-5/+25
|
* preset: Move preset-related resources to separate directory.Bradley Sepos2016-06-251-1/+1
|
* libhb: pass through "default" subtitle flag ... (#203)John Stebbins2016-05-281-1/+23
| | | ... when applying presets
* remove dxva hw decode (#189)John Stebbins2016-05-171-5/+0
| | | | | | | | | * remove dxva hw decode It provides practically no speed increase even on a slow CPU and results in a speed decrease on fast CPUs. And the code is exceptionally fugly. * cli: remove USE_HWD
* json: fix sanitization of vqualityJohn Stebbins2016-04-031-4/+4
| | | | ... and other assorted cleanups ;)
* presets: fix PictureRotate importJohn Stebbins2016-03-281-1/+2
| | | | | When it's value's type is an int instead of a string, it was not imported correctly.
* presets: fix memory leakJohn Stebbins2016-03-231-2/+6
|
* presets: fix import of old version-less preset filesJohn Stebbins2016-03-211-28/+43
| | | | | The version number was not added after import causing an attempt to do import conversions twice. The second conversion breaks values.
* decomb: split comb detection out into it's own filterJohn Stebbins2016-03-111-1/+184
|
* filters: make job filter settings an hb_dict_tJohn Stebbins2016-03-091-98/+234
| | | | | | This simplifies accessing and changing filter parameters programatically. It also changes the custom filter string format to a ':' separated list of key/value pairs.
* deinterlace: use avfilter yadif deinterlacerJohn Stebbins2016-02-151-0/+110
|
* libhb: Add libavfilter support and pad filterJohn Stebbins2016-01-211-0/+22
| | | | | | | | | | | | | | New filter types HB_FILTER_AVFILTER and HB_FILTER_PAD. Settings for HB_FILTER_AVFILTER are the same as you would pass to avconv from the command line -vf option, except that we do not support multi-input or multi-output filters. Settings for HB_FILTER_PAD are "width:height:color:x_offset:y_offset". width x height is the size of the output frame after padding. color may be a w3c color name or RGB value (default black). x_offset, y_offset is the position of the video within the padded area (default centered). Any of the values may be omitted or "auto".
* Merge pull request #48 from bradleysepos/copyrightJohn Stebbins2016-01-031-1/+1
|\ | | | | Update copyright dates to 2016.
| * Update copyright dates to 2016.Bradley Sepos2016-01-011-1/+1
| |
* | presets: fix PicturePAR importJohn Stebbins2016-01-021-1/+1
|/ | | | ... when it is a "number" stored as a string.
* presets: use first audio lang for foreign audio search...John Stebbins2015-11-151-1/+9
| | | | ...when a prefered language is not specified.
* x264: add multilib support (a.k.a. 10-bit)John Stebbins2015-11-121-1/+1
| | | | | This adds the structure to load an libx264 10-bit shared library. The user must install this library themselves to an appropriate place.
* presets: handle importing old string PicturePAR "integers"John Stebbins2015-11-101-0/+37
|
* Update HandBrakeCLI to read presets.json on Windows. This is the file that ↵Scott2015-10-241-2/+2
| | | | | | windows gui stores all presets in now. This should allow the CLI to read GUI presets now.
* grayscale: make it a real filterJohn Stebbins2015-10-141-3/+8
| | | | | It only worked properly with the x264 encoder. Now it works with all encoders.
* Remove invalid presets in presets_do()Damiano Galassi2015-10-121-1/+1
|
* presets: add result to indicate if preset import modified presetsJohn Stebbins2015-10-091-9/+27
| | | | | This information is useful to the frontends in creation of preset backups.
* Make deinterlace/decomb behave similar to nlmeans/hqdn3dJohn Stebbins2015-10-091-65/+83
| | | | | I.e. use a dropdown to select between the filters instead of a radio button.
* libhb: Clock/frame rate handling improvements.Bradley Sepos2015-09-101-24/+35
| | | | | | | | Allows for arbitrary frame rates between 1 and 1000 fps. Adds min/max frame rates to CLI help. Removes hardcoded instances of the internal clock rate in favor of hb_video_framerate_get_limits(). Unfortunately, much of the codebase generally refers to clock rate as frame rate, so a little extra care is still necessary going forward.
* presets: fix preset search by namejstebbins2015-08-131-0/+2
| | | | | | | It was not continuing if it failed to find the preset in the first folder git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7401 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb fix some typos in hb_preset_apply_filters().Rodeo2015-06-281-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7330 b64f7644-9d1e-0410-96f1-a4d463321fa5
* presets: add hb_presets_read_file_json()jstebbins2015-06-241-0/+13
| | | | | | | First tries to intrepret file as json. If that fails, tries plist. Returns a json string. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7314 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix application of custom anamorphic settingsjstebbins2015-06-141-2/+2
| | | | | | | Thanks to wickning1 in the forums https://forum.handbrake.fr/viewtopic.php?f=4&t=32631&sid=e05d32d1f34bbcaab59d321f6c6222cf git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7296 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Initialize the copy_mask variable before using itritsuka2015-06-031-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7266 b64f7644-9d1e-0410-96f1-a4d463321fa5
* preset: fix application of VideoScaler to jobjstebbins2015-05-291-1/+1
| | | | | | | Broken strcasecmp conditional caused OpenCl to be added to the job when it should not have been and *not* added to the job when it should. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7241 b64f7644-9d1e-0410-96f1-a4d463321fa5