summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* encx265: fix regression introduced in SVN revision 6366.Rodeo2015-06-081-6/+2
| | | | | | | Unknown options and bad values were never fatal for any libhb encoder. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7278 b64f7644-9d1e-0410-96f1-a4d463321fa5
* bd: use the correct printf specifier for unsigned variables.Rodeo2015-06-031-7/+7
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7273 b64f7644-9d1e-0410-96f1-a4d463321fa5
* bd: fix printf warningsjstebbins2015-06-031-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7269 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix green bottom line in preview with deinterlacejstebbins2015-06-031-0/+1
| | | | | | ... and "fast" deinterlace git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7267 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
* Fix flac fallback for passthruritsuka2015-06-031-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7263 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decomb: fix color distortion in last row of imagejstebbins2015-06-011-3/+28
| | | | | | Prevent blending uninitialized lines of data into last row. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7261 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fix three warnings.ritsuka2015-06-011-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7259 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix a couple of memory leaksjstebbins2015-06-011-0/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7254 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
* libhb: fix issues with video optionsjstebbins2015-05-282-0/+21
| | | | | | | | | | Fixes: https://forum.handbrake.fr/viewtopic.php?f=10&t=32535&sid=321e6d1092fd09c8d380e13e86d1a9ee - Sanitize empty video encoder settings strings to NULL. - In the CLI, use encoder defaults if user changes the preset's video encoder. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7237 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: use libhb to initialize job...jstebbins2015-05-272-319/+378
| | | | | | | ...and set some job settings as values change in the UI. This eliminates a large chunk of job setup code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7230 b64f7644-9d1e-0410-96f1-a4d463321fa5
* scan: skip scan if title has already been scannedjstebbins2015-05-264-4/+36
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7226 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix vorbis encodingjstebbins2015-05-251-1/+1
| | | | | | | Was broken when we switched to using EOF flag instead of 0 length buffer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7223 b64f7644-9d1e-0410-96f1-a4d463321fa5
* preset: fix application of mp4 mux optionsjstebbins2015-05-241-1/+1
| | | | | | | Fixes https://forum.handbrake.fr/viewtopic.php?f=10&t=32445&p=151040#p151008 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7219 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: use libhb to init audio and subtitle listsjstebbins2015-05-201-1/+12
| | | | | | | This eliminates a lot of essentially duplicate code in LinGui for initializing these lists. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7213 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: assume remix support when input layout is not set.Rodeo2015-05-191-0/+8
| | | | | | | | Allows querying an encoder's default mixdown from places where the input channel layout is unavailable (e.g. audio defaults panel). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7212 b64f7644-9d1e-0410-96f1-a4d463321fa5
* dict: make hb_value_get_json param constjstebbins2015-05-182-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7208 b64f7644-9d1e-0410-96f1-a4d463321fa5
* preset_template: allow all supported passthru codecs by default.Rodeo2015-05-173-9/+21
| | | | | | | | That way, very old presets and (more importantly) built-in presets do not force a restricted copy mask on the user. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7205 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: make libFDK the default (HE-)AAC encoder.Rodeo2015-05-171-1/+1
| | | | | | | | | | It's almost as fast as libavcodec's native encoder and offers much better audio quality at any bitrate. Under OS X, Apple's encoder is still used by default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7203 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: return the global bitrate limits for a given mixdown when the ↵Rodeo2015-05-161-0/+14
| | | | | | samplerate is not known. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7199 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Allow negative number in hb_validate_filter_settings. Fix deinterlace ↵ritsuka2015-05-161-2/+2
| | | | | | settings validation. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7193 b64f7644-9d1e-0410-96f1-a4d463321fa5
* rotate: Use more intuitive rotation parametersjstebbins2015-05-151-16/+75
| | | | | | Instead of cryptic bit flags, allow "angle:mirror" parameter git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7189 b64f7644-9d1e-0410-96f1-a4d463321fa5
* presets: add new UserPresets.json path for osx cli presetsjstebbins2015-05-141-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7184 b64f7644-9d1e-0410-96f1-a4d463321fa5
* lingui: use libhb preset management from linux guijstebbins2015-05-1411-934/+1580
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7179 b64f7644-9d1e-0410-96f1-a4d463321fa5
* cli: fix --heightjstebbins2015-05-141-0/+10
| | | | | | | | Didn't set the proper flag to make hb_set_anamorphic_size prefer keeping the height over the width. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7178 b64f7644-9d1e-0410-96f1-a4d463321fa5
* cli: fix initialization of encode rangesjstebbins2015-05-131-0/+2
| | | | | | | | | | | The default chapter start or end was used if one but not the other of start-at/stop-at were used. Also don't overwrite current pass and pass_count status in hb_state_t while searching for the position to start encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7177 b64f7644-9d1e-0410-96f1-a4d463321fa5
* scan: increase scan size thresh to accomodate raw 4K avijstebbins2015-05-121-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7170 b64f7644-9d1e-0410-96f1-a4d463321fa5
* cli: fix missing subtitle "Default" flag when --all-subtitles is usedjstebbins2015-05-111-1/+12
| | | | | | | Also fix case that can cause all subtitles to be added twice. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7169 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb,cli: add preset management to libhb, use it in clijstebbins2015-05-0616-12/+4945
| | | | | | | | This results in custom preset support in the CLI and additional command line options to fully support all preset keys. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7158 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: enable vbr encoding with fdk-aac and libav-aacjstebbins2015-05-042-0/+29
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7157 b64f7644-9d1e-0410-96f1-a4d463321fa5
* stream: fix TS parsing after a seekjstebbins2015-05-011-0/+1
| | | | | | This error was causing some garbled preview frames git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7148 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Use a buffer flat to indicate EOFjstebbins2015-05-0136-87/+94
| | | | | | | | | | | | ... instead of a 0 length buffer. This fixes this issue: https://forum.handbrake.fr/viewtopic.php?f=12&t=31959 Theora can create 0 length output. These 0 length frames indicate duplicate frames. So we can't use 0 length buffers to indicate the end of the stream. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7143 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix mingw link, undefined symbol CoTaskMemFreejstebbins2015-05-011-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7141 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_get_user_config_directory: improvements.Rodeo2015-04-303-17/+52
| | | | | | | | Fix build with older MinGW-w64 toolchains. Fix potential memory leak and crashes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7140 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix packig audio track in titlejstebbins2015-04-271-1/+1
| | | | | | ChannelLayout was getting dropped due to missing format specifier git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7129 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix "End" parsing of p-to-p frame rangejstebbins2015-04-261-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7128 b64f7644-9d1e-0410-96f1-a4d463321fa5
* p-to-p: fix seek to start pts source initial PTS != 0jstebbins2015-04-242-20/+6
| | | | | | | When a file demuxed by libav does not start to time 0, our seek to the initial start pts tried to seek too far forward. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7124 b64f7644-9d1e-0410-96f1-a4d463321fa5
* ports: use standardized sched_yield instead of pthread_yieldjstebbins2015-04-231-1/+1
| | | | | | Fixes build on osx git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7122 b64f7644-9d1e-0410-96f1-a4d463321fa5
* demuxmpeg: Don't drop frames with bad timestampsjstebbins2015-04-223-37/+22
| | | | | | Just invalidate the timestamps and let the decoders interpolate. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7121 b64f7644-9d1e-0410-96f1-a4d463321fa5
* stream: Improve transport stream PCR handlingjstebbins2015-04-224-286/+338
| | | | | | | | When a new PCR is seen, emit all currently cached data. This prevents data that was referenced to the previous PCR from being associated with the new PCR. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7120 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: fix frame p-to-p extra audio after end framejstebbins2015-04-227-330/+291
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7119 b64f7644-9d1e-0410-96f1-a4d463321fa5
* param: Allow ',' as decimal separator in filter valuesjstebbins2015-04-211-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7110 b64f7644-9d1e-0410-96f1-a4d463321fa5
* ports: add functions for looking up user config directoryjstebbins2015-04-195-2/+88
| | | | | | | These will be used by the CLI for loading custom user presets. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7105 b64f7644-9d1e-0410-96f1-a4d463321fa5
* filters: Fix generation of filter stringjstebbins2015-04-181-1/+2
| | | | | | | When there is no "tune" and extra ':' was added to the end of the string and caused a failure to validate the filter settings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7101 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix another cut/paste error. incorrect dither parsing.jstebbins2015-04-131-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7088 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: tweak font size once againjstebbins2015-04-112-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7085 b64f7644-9d1e-0410-96f1-a4d463321fa5
* text subtitles: make font height independent of croppingjstebbins2015-04-104-4/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7078 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decccsub608: make font size independent on the amount of croppingjstebbins2015-04-102-6/+6
| | | | | | | And use alignment tag \an1 instead of \a1 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7077 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Move strtok_r fallback to dedicated "compat" files.Rodeo2015-04-106-38/+75
| | | | | | | Also, check whether the toolchain already provides strtok_r instead of building it unconditionally. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7076 b64f7644-9d1e-0410-96f1-a4d463321fa5