summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* reader: fix subtitle start time not advancingjstebbins2015-04-071-2/+37
| | | | | | | | | We must set a start time for subtitles or the vobsub decoder (and probably other subtitle decoders) will assign duplicate timestamps. So when a discontinuity occurs, make the closest guess that we can. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7072 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: don't ignore text attributes in PACjstebbins2015-04-071-4/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7071 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix copy_mask (again) :(jstebbins2015-04-071-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7070 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix audio autopassthru copy_mask and fallbackjstebbins2015-04-071-4/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7068 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: fix range for tab offsetsjstebbins2015-04-071-1/+1
| | | | | | | taboffset3 command was getting ignored so alignment was incorrect git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7067 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix potential crash when source file or title number doesn't existjstebbins2015-04-071-0/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7064 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: improve CC positioningjstebbins2015-04-058-28/+59
| | | | | | | | The safe zone margin was not wide enough and the font size was a little too small. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7063 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_dict: fix prototypes for functions that take no paramsjstebbins2015-04-051-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7062 b64f7644-9d1e-0410-96f1-a4d463321fa5
* deccc608sub: fix column alignment issuesjstebbins2015-04-057-52/+92
| | | | | | | | Use a fixed width font, and insert hard spaces where necessary to allign columns correctly in multi-line CCs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7061 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Propagate an error when hb_json_to_job fails.Rodeo2015-04-051-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7059 b64f7644-9d1e-0410-96f1-a4d463321fa5
* encx264: fix hb_dict_init call.Rodeo2015-04-051-1/+1
| | | | | | | Was broken since revision 6981. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7058 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Add filter preset/tune lookup and setting validation for more filter ↵jstebbins2015-04-044-36/+453
| | | | | | | | | | | | | | types All filters except for crop_scale now have preset/tune support and basic validation. This code could also be used by the other frontends to simplify some things. For example, it can be used to query libhb for a list of available presets and tunes for each filter. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7050 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Improvements and key changes to json/hb_dict_t job definitionsjstebbins2015-04-041-129/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | MetaData -> Metadata Video {Codec} -> Video {Encoder} Filter -> Filters AudioList [Force] -> AudioList [Forced] Added audio key DitherMethod Simplified encoding range spec Was: Range {ChapterStart, ChapterEnd, PtsToStart, PtsToStop, FrameToStart, FrameToStop, StartAtPreview, SeekPoints} Now: Range {Type, Start, End, SeekPoints} Type is "chapter", "time", "frame", or "preview". Start and End units depend on Type. SeekPoints is only used for live preview. Added keys for control of hardware encode/decode OpenCL, HWDecode, QSV {Decode, AsyncDepth} Changed the data type of CopyMask. Was an int bitmask. Now it is an array of strings, each string describes a passthru option. e.g. "copy:ac3" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7049 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_dict: add 'const' to a few prototypes and add a couple new helper funcsjstebbins2015-04-032-4/+27
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7045 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Bump libx265 to version 1.6Rodeo2015-04-031-0/+3
| | | | | | | | | Miscellaneous bugfixes and performance improvements. Also, x265_cleanup lets us drop both patches. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7044 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: use hb_dict_t, hb_value_array_t, and hb_value_t in hb_json.cjstebbins2015-04-022-329/+370
| | | | | | | ...instead of going direct to json_t git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7040 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: log "default" filter settings when settings string is 0 lengthjstebbins2015-04-021-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7039 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add language lookup based on any of iso639_1/2/2b, eng_name, or nativejstebbins2015-04-022-1/+23
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7038 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add functions to lookup details of mixdown, video, audio, containerjstebbins2015-04-022-2/+72
| | | | | | | | ... from int id. And add defines to eliminate some magic numbers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7037 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add conversions hb_value_t <-> jsonjstebbins2015-04-022-12/+44
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7036 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Eliminate global variable hb_gui_use_hwd_flagjstebbins2015-03-2917-82/+129
| | | | | | | | | | | | This global was shared between the CLI and libhb and used as a back door to force scan and encode passes to use the same ffmpeg context for hardware decoding. Aside from the fact that this context sharing should not be necessary and needs fixing, this information belongs in the hb_handle_t that is shared between the scan and the encode. So put it there and make sure the hb_handle_t get propagated to where the flag is needed. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7028 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove unused hb_get_scancount functionritsuka2015-03-292-12/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7026 b64f7644-9d1e-0410-96f1-a4d463321fa5
* rendersub: remove unnecessary filter settingsjstebbins2015-03-181-20/+10
| | | | | | | | crop comes from job during post_init so isn't necessary. also, fix frame size (again) :( git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7001 b64f7644-9d1e-0410-96f1-a4d463321fa5
* rendersub: fix text rendering frame sizejstebbins2015-03-171-44/+33
| | | | | | | | | | | | Rendered text was in wrong position and sometimes dropped due to being out of frame. This got broken when I added filter post_init to set cropping *after* it is determined by the cropscale filter. I forgot to check text rendering initialization when I made this change. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6997 b64f7644-9d1e-0410-96f1-a4d463321fa5