summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* preset: Add all audio formats to CLI Default copy mask.Bradley Sepos2016-07-301-1/+8
|
* preset: Fix auto frame rate for CLI Default.Bradley Sepos2016-07-301-1/+1
|
* libhb: make hb_ps_read_packet() more robustSean McGovern2016-07-281-6/+13
|
* libhb: make encavcodecInit() more robustSean McGovern2016-07-281-5/+41
|
* preset: Use Main profile for Android 1080p30 and use fast combing detection ↵Bradley Sepos2016-07-261-6/+6
| | | | for Very Fast presets.
* libhb: make preview reader and writer both more robustSean McGovern2016-07-111-4/+42
|
* libhb: add an implementation of strerror_r()Sean McGovern2016-07-112-0/+47
|
* configure: check for strerror_r()Sean McGovern2016-07-101-0/+4
|
* Revert "libhb: don't ignore the return result from fread()"Bradley Sepos2016-07-073-24/+9
| | | | | | Broke image previews on Linux and Windows (mingw). This reverts commit b7645e7842703d52c44feaa85cfb3c490e09c8dc.
* libhb: Replace PTW32_STATIC_LIB with PTW32_VERSION.Bradley Sepos2016-07-071-1/+1
| | | | For consistency with 36c415e. In practice the include this encapsulates is already included elsewhere, so no underlying change takes place; <pthread.h> is already included.
* libhb: Move ogg in link order.Bradley Sepos2016-07-011-2/+2
| | | | For consistency with test/module.defs.
* libhb: don't ignore the return result from pipe()Sean McGovern2016-07-011-1/+2
|
* libhb: don't ignore the return result from fread()Sean McGovern2016-07-013-9/+24
|
* 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.
* decssasub: fix ssa start times when p-to-p is usedJohn Stebbins2016-06-271-6/+7
|
* reader: fix p-to-p start pos in avformat demuxed streamsJohn Stebbins2016-06-271-27/+27
|
* preset: Add CLI Default preset. (#214)Bradley Sepos2016-06-273-5/+133
|
* Merge pull request #232 from bradleysepos/mingwScott2016-06-271-2/+2
|\ | | | | Update to mingw-w64 5.0-rc2 and pthreads-win32 2.9.1.
| * libhb: Improve pthreads-win32 compatibility when PTW32_STATIC_BUILD isn't ↵Bradley Sepos2016-06-211-2/+2
| | | | | | | | | | | | defined. As may be the case with newer mingw with pthreads precompiled.
* | preset: Remove invalid VideoTune none from template in preset_builtin.h.Bradley Sepos2016-06-261-1/+1
| |
* | preset: Remove 'Vita' from Playstation preset names.Bradley Sepos2016-06-251-3/+3
| |
* | preset: Move preset-related resources to separate directory.Bradley Sepos2016-06-255-6919/+1
|/
* subtitle scan: tighten up scan pass dropping logicJohn Stebbins2016-06-111-1/+3
| | | | | | | Also drop the scan pass if there is only one subtitle track and "force" is not specified. When scanning for foreign audio subtitles without force, you need at least 2 tracks in order for the 10% selection logic to apply.
* subtitle scan: drop scan pass if there are no suitable subtitlesJohn Stebbins2016-06-101-2/+21
| | | | A suitable subtitle is one that matches the users preferred language.
* libhb: Add "Very Fast" presets.Bradley Sepos2016-06-103-2/+782
|
* sync: speed up p-to-p finalization when there are subtitlesJohn Stebbins2016-06-101-0/+46
| | | | | | | | | | | | | When doing point-to-point encoding, subtitles can cause a long delay in finishing the job when the stop point is reached. This is due to the sparse nature of subtitles. We may not even see any additional subtitle till we reach the end of the file. So when all audio and video streams have reached the end point, force the termination of all subtitle streams by pushing an end-of-stream buffer into each subtitles input fifo. This will cause each subtitle sync worker to wake and return HB_WORK_DONE.
* sync: fix potential stall when searching for p-to-p startJohn Stebbins2016-06-101-2/+11
| | | | A full input queue could cause the search to stall
* sync: when p-to-p end reached return HB_WORK_DONE asapJohn Stebbins2016-06-101-0/+12
|
* libhb: Make new presets names less verbose.Bradley Sepos2016-06-103-114/+114
| | | | Only the names have been changed, to protect the innocent.
* decsrtsub: simplify code and improve commentsJohn Stebbins2016-06-091-23/+19
|
* decsrt: don't add extra hard line break at end of subtitleJohn Stebbins2016-06-091-5/+11
|
* decsrt: fix dropping of first srt when it's start time is 0John Stebbins2016-06-091-2/+2
|
* sync: fix some p-to-p issuesJohn Stebbins2016-06-091-72/+123
| | | | | | | | | After finding the start position, some data prior to the start from other streams could leak through causing duplicate timestamps in the output. Also, improves alignment of stop times of all streams when a stop time is set.
* json: fix extraction of negative SRT offsetsJohn Stebbins2016-06-091-9/+9
|
* libhb: Fix invalid VideoTune value in new presets.Bradley Sepos2016-06-022-108/+108
|
* libhb: Add new built-in presets, mark old presets as legacy.Bradley Sepos2016-06-023-254/+11388
| | | | | | Will change VP9 presets' audio to Opus if/when that lands. Closes #159.
* encavcodec: error out on invalid encoder presetJohn Stebbins2016-05-301-11/+18
|
* vpx: fix NULL encoder preset caseJohn Stebbins2016-05-291-1/+7
|
* vpx: add encoder presetsJohn Stebbins2016-05-294-19/+91
| | | | | | | | | | | presets are veryfast - deadline=good:cpu-used=5 faster - deadline=good:cpu-used=4 fast - deadline=good:cpu-used=3 medium - deadline=good:cpu-used=2 slow - deadline=good:cpu-used=1 slower - deadline=good:cpu-used=0 veryslow - deadline=best:cpu-used=0
* vpx: allow user to change deadline and cpu-used settingsJohn Stebbins2016-05-281-3/+17
|
* libhb: pass through "default" subtitle flag ... (#203)John Stebbins2016-05-282-1/+28
| | | ... when applying presets
* vpx: use faster settingsJohn Stebbins2016-05-271-4/+1
| | | | | cpu-used=0 is very slow, and the various recommendations are to use cpu-used=2
* enable libvpx VP9 encoderJohn Stebbins2016-05-275-1/+22
|
* contrib: Update to libass 0.13.2 and add HarfBuzz 1.2.6.Bradley Sepos2016-05-251-2/+3
| | | | | | | | | | | | HarfBuzz is now enabled when building libass. Resolves #162. Additional libass notes: - Add yasm dependency for better performance. - Remove no longer valid configure params. - Disable new coretext and directwrite font selection backends pending additional testing (coretext did not build properly).
* sync: fix CC burn-inJohn Stebbins2016-05-251-1/+2
| | | | | | It was dropping subtitles because the "end of CC" marker buffer can have the same time as the next valid CC which triggered the subtitle overlap dropping code.
* bd: log playlist clips at log level 2John Stebbins2016-05-251-0/+22
|
* encx265: simplify chapter mark handlingJohn Stebbins2016-05-252-79/+24
| | | | Use hb_chapter_enqueue/dequeue
* sync: correct timestamp discontinuities in sync instead of reader (#192)John Stebbins2016-05-2412-892/+1022
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sync: correct timestamp discontinuities in sync instead of reader This patch passes discontinuity information through the pipeline till it reaches sync.c. The timestamps are passed through the pipeline as read and unmodified to sync.c (instead of attempting to correct discontinuities in reader). In sync, when we see a discontinuity, we know where the next timestamp should be based on the timestamp and duration of the previous buffer (before the discontinuity). So we calculate an "SCR" offset based on the timestamp after the discontinuity and what we calculate it should be. The old discontinuity handling code was broken due to the following. The MPEG STD timing model relies heavily on the decoder having an STC that is phase lock looped to the PCRs in the stream. When decoding a broadcast stream, the decoder can count on the time measure between PCRs using the STC to match to a high degree of accuracy. I.e. STC - lastSTC == PCR - lastPCR. When a discontinuity occurs, the decoder calculates a new PCR offset = PCR - STC. I.e. the offset is the new PCR value minus what it would have been if there had been no discontinuity. The above does not work without a reliable STC, which we do not have. We have been attempting to approximate one by avereraging the duration of received packets and extrapolating an "STC" based on the last PTS and the average packet duration. But this is highly variable and unreliable. * decavcodec: fix data type of next_pts It needs to be double so that partial ticks are not lost * deccc608sub: clarify comment * sync: allow queueing more audio Audio is small, and there is often a significant amount of audio in the stream before the first video frame. * sync: improve handling of damaged streams When data is missing, the audio decoder was extrapolating timestamps from the last pts before the error caused by the missing data which caused sync issues. Also, missing data can cause the video decoder to output a frame out of order with the wrong scr sequence. Drop such frames.
* muxcommon: fix check_realloc_outputJohn Stebbins2016-05-241-9/+2
| | | | brainfart!
* sync: fill queues completelyJohn Stebbins2016-05-211-1/+1
| | | | | | essentially an off-by-one error. OutputBuffer had to wait for one more buffer before any output was performed after the queue should have already been filled to it's minimum levels.