summaryrefslogtreecommitdiffstats
path: root/libhb/preset.c
Commit message (Collapse)AuthorAgeFilesLines
* Gardening: Clean up trailing whitespaceNomis1012019-11-041-1/+1
| | | | Remove trailing whitespace in "*.c", "*.m", "*.h" and "*.cpp" files.
* crop/resize and vfr filters used only when needed (#2353)Artem2019-10-151-20/+2
| | | | crop/resize and vfr filters used only when needed
* Revert "crop/resize and vfr filters used only when needed"John Stebbins2019-10-061-13/+14
| | | | This reverts commit eb6b180a446dc1cabcf19eef42debca18ef429b8.
* crop/resize and vfr filters used only when neededmaximd332019-09-301-14/+13
|
* libhb: resolve header conflicts with pango/harfbuzzJohn Stebbins2019-09-121-6/+6
| | | | | | | Newest versions appear to have a "common.h" somewhere that is interfering with libhb/common.h. move headers into "handbrake" subdirectory
* Resolve conflict with harfbuzz include file hb.hJohn Stebbins2019-09-101-1/+1
| | | | Rename hb.h to handbrake.h
* preset: change last ditch audio selection behaviorJohn Stebbins2019-09-101-4/+2
| | | | | | | | Previously, it added "any" audio if the output track list was empty. Now only adds "any" audio if AudioLanguageList is empty. This allow e.g. "English or none" audio selections. If the user wants "English or any", they can specify [English, Any] in AudioLanguageList.
* Create separate fake iso639 "any" entryJohn Stebbins2019-09-101-11/+21
| | | | | | | Allows us to distinguish a selection of "any" which means match any language from "und" which means the language is not known. Fixes https://github.com/HandBrake/HandBrake/issues/731
* preset: fix NULL initializtion of subtitle nameJohn Stebbins2019-08-161-5/+8
| | | | Fixes https://github.com/HandBrake/HandBrake/issues/2246
* add subtitle track name read/writeJohn Stebbins2019-08-111-7/+10
| | | | | | | | | | | | | | | | Works similar to audio track names. If source has a subtitle track name, hb_subtitle_t.name is set. To set output subtitle track name, set hb_subtitle_config_t.name. Source track names are available in title returned by hb_title_to_dict and hb_title_to_json in SubtitleList[].Name In job dict it is also SubtitleList[].Name hb_preset_job_init and hb_preset_job_init_json initialize output tracks with the source track name. Also adds subtitle name support to LinGui
* libhb: make source audio track name available to frontendsJohn Stebbins2019-08-111-0/+4
| | | | | | | | | | | | | It gets stored in new hb_audio_config_t.in.name field. It is available in the title dict read through hb_title_to_dict() or hb_title_to_json() in AudioList[].Name. When a job is initialized with hb_preset_job_init or hb_preset_job_init_json(), output audio tracks are initialized with the source track name. Also adds output track name initialization to LinGui.
* Fix some typos (#2202)Nomis1012019-07-311-4/+4
| | | Fix some typos
* qsv: zero-copy re-implementationmaximd332019-05-261-4/+24
|
* qsv: adding LowPower support for AVC and HEVC encode on the appropriate HW ↵maxd2019-05-171-1/+6
| | | | generations
* deblock: replace pp7 with avfilter vf_deblockJohn Stebbins2019-05-021-4/+39
| | | | | | Adds deblock presets and tunes. Old preset values are converted upon preset import. Old PictureDeblock preset key is now PictureDeblockPreset.
* libhb: change preset key to VideoColorMatrixCodeOverrideJohn Stebbins2019-04-081-4/+7
| | | | | | Reserve VideoColorMatrixCode for doing color conversion. VideoColorMatrixCodeOverride sets color flags without transforming video frame colors.
* libhb: Initial implementation of Chroma Smooth filter.Bradley Sepos2019-03-281-0/+35
|
* Update copyright dates to 2019.Bradley Sepos2019-01-011-1/+1
|
* Refactor the color tag code, and pass it to the FFmpeg encoders.Damiano Galassi2018-08-281-4/+40
|
* presets: fix setting of default preset valuesJohn Stebbins2018-08-081-1/+1
| | | | | Fixes root cause of problem reported in: https://github.com/HandBrake/HandBrake/pull/1524
* presets: fix importing file with "Official" presetsJohn Stebbins2018-06-271-0/+11
| | | | | | Convert any presets with "Type" official to custom before importing. This can happen if someone decides to try to import a full user presets file from a previous install of HandBrake.
* Misc. typosluz.paz2018-02-201-2/+2
| | | Found via `codespell -q 3 --skip="./gtk/po`
* libhb: fix a number of issues reported by clang.Damiano Galassi2018-01-121-1/+6
|
* Update copyright dates to 2018.Bradley Sepos2018-01-011-1/+1
|
* presets: fix selection of audio tracksJohn Stebbins2017-11-101-1/+1
| | | | | The new audio attributes were not checked correctly and filtered out any audio tracks that had the DEFAULT flag.
* Add adaptive streaming support (#972)John Stebbins2017-11-091-0/+3
| | | | | | | "Adaptive streaming" allows changing video parameters mid-stream at IDR boundaries. Such changes require new SPS and PPS NALs at the IDR. MP4 supports this with 'avc3' and 'hev1' sample entry types.
* 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