summaryrefslogtreecommitdiffstats
path: root/libhb/hb_json.c
Commit message (Collapse)AuthorAgeFilesLines
* qsv: fix incorrect async depth values in GUI binaryagalin892020-07-291-2/+7
|
* hb_json: make it easier for UI to zero out metadataJohn Stebbins2020-07-201-13/+35
| | | | | | | | By default, the job is populated with the metadata from the source title. If the metadata dict is present in the json job, assume any fields not present are to be removed from the job's metadata
* Added track number to audio and subtitle scan JSONRandomEngy2020-06-171-2/+4
| | | | | | Technically not needed, but makes working with the objects easier. As long as you have the object, you have the track number needed to put it into the output.
* json: improve logging of json pack failuresJohn Stebbins2020-03-161-9/+9
| | | | | Can't tell where these failures are comming from because all the logs look the same :(
* json: fix PtoP range when converting job struct to jsonJohn Stebbins2020-03-151-6/+6
| | | | | | | seconds and frames were not writting to the "Range" dict but instead writting to the "Source" dict. Fortunately, nobody has been relying on this behavior
* Update copyright dates to 2020.Bradley Sepos2020-01-011-1/+1
|
* Gardening: Clean up trailing whitespaceNomis1012019-11-041-2/+2
| | | | Remove trailing whitespace in "*.c", "*.m", "*.h" and "*.cpp" files.
* qsv: full mode only when neededagalin892019-10-241-10/+1
| | | | | | | | Squashed: - qsv: check filter_count instead of variable - fix: remove unchanged files from review - qsv: simplified code
* libhb: resolve header conflicts with pango/harfbuzzJohn Stebbins2019-09-121-3/+3
| | | | | | | 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
* hb_json: fix subtitle import crashJohn Stebbins2019-09-091-1/+1
| | | | make sure pointers in hb_subtitle_config_t are initialized to NULL
* hb_json: fix double freeJohn Stebbins2019-08-301-4/+13
| | | | | json_unpack returns references to embedded strings. We need to strdup these when filling job structure.
* hb_json: fix title dict format stringJohn Stebbins2019-08-261-1/+1
| | | | | missing format specifier results in LFECount getting dropped from audio track settings
* libhb: eliminate file path length limitsJohn Stebbins2019-08-111-3/+4
|
* add subtitle track name read/writeJohn Stebbins2019-08-111-1/+14
| | | | | | | | | | | | | | | | 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
* a few fixes for audio track name handlingJohn Stebbins2019-08-111-4/+1
| | | | fixes a memory leak makes name const
* libhb: make source audio track name available to frontendsJohn Stebbins2019-08-111-2/+19
| | | | | | | | | | | | | 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-1/+1
| | | Fix some typos
* LinGui: change chapter list to GtkListBoxJohn Stebbins2019-07-301-4/+11
| | | | | | | | | GtkListBox is more flexible than GtkTreeView. It is possible now to process key press events without creating a custom text cell renderer. Also due to the way event handling changes in GTK4, it was no longer even possible to create a custom cell renderer that can process key events. So this GtkListBox implementation is compatible with GTK4.
* hb_json: don't fail if audio is invalid for muxJohn Stebbins2019-07-121-6/+13
| | | | Just drop the track. If audio is 'none' drop silently.
* hb_json: add new hb_state_t fieldsJohn Stebbins2019-06-251-1/+4
|
* LinGui: add queue statisticsJohn Stebbins2019-06-251-3/+4
| | | | and tweak the layout per BradleyS suggestions
* qsv: zero-copy re-implementationmaximd332019-05-261-1/+10
|
* make: finish correcting host/build semanticsJohn Stebbins2019-04-171-2/+2
|
* libhb: change preset key to VideoColorMatrixCodeOverrideJohn Stebbins2019-04-081-4/+26
| | | | | | Reserve VideoColorMatrixCode for doing color conversion. VideoColorMatrixCodeOverride sets color flags without transforming video frame colors.
* libhb: propagate color matrix info through the pipelineJohn Stebbins2019-04-081-3/+13
| | | | | | | | | Propagates pix_fmt, range, primaries, transfer, and matrix everywhere. Everything that passes or creates video frames tags the frames with their color matrix info. All filters know the expected color matrix info of input frames.
* Add SSA subtitle importJohn Stebbins2019-01-141-17/+40
|
* 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-8/+12
|
* fix race in getting sequence_id of completed jobJohn Stebbins2018-08-071-2/+3
| | | | | | | | | The sequence_id was only available for the WORKING state and not the WORKDONE state. But frontends poll for status periodically and can miss all status updates for the WORKING state if the file is very short or an error occurs early during transcoding. When WORKING status is missed, there was no way to know the sequence_id associated with the WORKDONE status.
* libhb: fix a number of issues reported by clang.Damiano Galassi2018-01-121-4/+0
|
* Update copyright dates to 2018.Bradley Sepos2018-01-011-1/+1
|
* Add adaptive streaming support (#972)John Stebbins2017-11-091-4/+8
| | | | | | | "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-21/+156
| | | This is useful for scripts and other frontends that need to parse CLI output.
* sync: work-around players with broken edit list supportJohn Stebbins2017-06-131-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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-6/+4
| | | | It was only used for scaling, it fails far too often and is only faster on a limited selectoin of hardware.
* json: revise range "End" for time and frame rangesJohn Stebbins2017-01-111-11/+30
| | | | | "End" was a duration. It is now the actual "End" position in 90khz ticks or frames.
* json: Decoding JSON now checks if QSV is available before setting QSV… (#509)Scott2017-01-111-0/+4
| | | json: Decoding JSON now checks if QSV is available before setting QSV… #509
* json: fix use of freed memoryJohn Stebbins2017-01-081-18/+23
| | | | | | | | audio.out.name was getting assigned a string from a json object that could be freed resulting in a double free. also make unpack_s check for const char * type to help prevent such abuses in the future.
* libhb: allow removal of tagsJohn Stebbins2017-01-031-18/+81
| | | | | | Setting an empty string tag allows removal of existing tags. Note that setting a NULL string does not remove an existing tag but instead results in the tag getting passed through from the source.
* Update copyright dates to 2017.Bradley Sepos2017-01-011-1/+1
|
* json: fix extraction of negative SRT offsetsJohn Stebbins2016-06-091-9/+9
|
* remove dxva hw decode (#189)John Stebbins2016-05-171-12/+7
| | | | | | | | | * 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 typo.Tim Walker2016-04-031-1/+1
|
* json: fix sanitization of vqualityTim Walker2016-04-031-4/+8
| | | | …for encoders that check for a valid bitrate before quality.
* json: fix sanitization of vqualityJohn Stebbins2016-04-031-20/+31
| | | | ... and other assorted cleanups ;)
* hb_json: sanitize JSON where both of video bitrate and quality are valid.Tim Walker2016-03-311-0/+6
| | | | Check against vbitrate since it doesn't depend on a preprocessor define.
* libhb: fix incorrect assumption that video quality is always positive.Tim Walker2016-03-311-1/+1
|
* filters: make job filter settings an hb_dict_tJohn Stebbins2016-03-091-6/+5
| | | | | | This simplifies accessing and changing filter parameters programatically. It also changes the custom filter string format to a ':' separated list of key/value pairs.
* Update copyright dates to 2016.Bradley Sepos2016-01-011-1/+1
|