summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* rotate: use libavfilterJohn Stebbins2016-01-253-435/+142
|
* libhb: fix crash in hb_filter_info_closeJohn Stebbins2016-01-241-1/+4
| | | | filter info can be null, which caused a crash
* libhb: do not add invalid audio encoders to audio listJohn Stebbins2016-01-221-18/+19
| | | | | | hb_audio_add() did not check that an encoder exists before stripping away the passthru flag when source audio was not compatible with requested passthru codec.
* qsv: fix build with qsv enabledJohn Stebbins2016-01-221-1/+1
| | | | missing ';'
* libhb: Add libavfilter support and pad filterJohn Stebbins2016-01-2116-114/+848
| | | | | | | | | | | | | | New filter types HB_FILTER_AVFILTER and HB_FILTER_PAD. Settings for HB_FILTER_AVFILTER are the same as you would pass to avconv from the command line -vf option, except that we do not support multi-input or multi-output filters. Settings for HB_FILTER_PAD are "width:height:color:x_offset:y_offset". width x height is the size of the output frame after padding. color may be a w3c color name or RGB value (default black). x_offset, y_offset is the position of the video within the padded area (default centered). Any of the values may be omitted or "auto".
* sync: fix hang in ssa subtitle syncJohn Stebbins2016-01-211-1/+5
| | | | Failed to pass along EOF buffer.
* sync: gut and rewriteJohn Stebbins2016-01-219-1212/+1657
| | | | | | | | | | | sync.c was difficult to read, fragile, and prone to difficult to diagnose bugs (see https://forum.handbrake.fr/viewtopic.php?f=12&t=33147) This rewrite simplifies the code, removes signals, locking and yield that probably cause the above problem and is much more flexible. It fixes a wider variety of timestamp issues than before and is much easier to extend if other timestamp analysis is desired.
* libhb: fix hang during subtitle scanJohn Stebbins2016-01-192-2/+9
|
* Merge pull request #45 from RandomEngy/masterScott2016-01-171-170/+170
|\ | | | | Adding native language names to lang.c .
| * Updating header from lang.h to lang.c .RandomEngy2015-12-271-1/+1
| |
| * Adding native language names to lang.c .RandomEngy2015-12-261-169/+169
| |
* | sync: fix typo that could result in dropping subtitlesJohn Stebbins2016-01-151-1/+1
| |
* | work: fix failure to die upon canceled encodeJohn Stebbins2016-01-151-1/+2
| |
* | Change the PictureRotate key to be a string.Damiano Galassi2016-01-152-2/+2
| |
* | work: fix hang in p-to-p encodingJohn Stebbins2016-01-141-0/+9
| |
* | Merge pull request #48 from bradleysepos/copyrightJohn Stebbins2016-01-0397-97/+97
|\ \ | | | | | | Update copyright dates to 2016.
| * | Update copyright dates to 2016.Bradley Sepos2016-01-0197-97/+97
| | |
* | | presets: fix PicturePAR importJohn Stebbins2016-01-021-1/+1
|/ / | | | | | | ... when it is a "number" stored as a string.
* | using dispatcher from https://github.com/lu-zero/mfx_dispatchMax Dmytrychenko2015-12-273-4/+4
| |
* | libhb: use LL for int64 constants to make mingw happyJohn Stebbins2015-12-266-16/+16
|/
* libhb: Remove stray UTF-8 BOM character from lang.c.Bradley Sepos2015-12-251-1/+1
|
* reader: fix stream discontinuity splicing...John Stebbins2015-12-091-3/+9
| | | | | | | Splicing of buffers that got duplicated to multiple output fifos was broken. Caused https://forum.handbrake.fr/viewtopic.php?f=11&t=33666
* qsv: fix compile errorJohn Stebbins2015-11-191-1/+1
| | | | missed renaming hb_h265_profile_names in qsv code
* ports: add NULL checksJohn Stebbins2015-11-151-0/+8
|
* encx264: only show warning log after first frameJohn Stebbins2015-11-151-1/+2
|
* libhb: add some NULL checksJohn Stebbins2015-11-151-0/+4
|
* vfr: timestamps are signedJohn Stebbins2015-11-151-9/+17
|
* decsrt: configure as buffer sourceJohn Stebbins2015-11-152-19/+11
| | | | | set fifo_in to NULL so hb_work_loop will call repeadedly without the hack that primes it's input fifo.
* presets: use first audio lang for foreign audio search...John Stebbins2015-11-151-1/+9
| | | | ...when a prefered language is not specified.
* reader: remove track count limitationJohn Stebbins2015-11-131-7/+15
| | | | | | Don't use hard coded 100 fifo array, allocate what is needed. We probably just crashed if the number of tracks was > 99 since the limit of 100 fifos was not universally checked.
* Added missing NULL pointer check in encx265Closeschrotthaufen2015-11-131-0/+1
| | | | | | pv was never checked to be NULL, which would lead to a NULL pointer dereference in the pv->delayed_chapters != NULL check, when w->private_data is NULL.
* x265: add support for 10, 12, and 16 bit x265 libsJohn Stebbins2015-11-127-39/+100
| | | | | automatically pull in shared versions of these libs or allow statically building against any one of them.
* x265: use multi-lib APIJohn Stebbins2015-11-121-30/+45
| | | | | This does not yet support other bit depths. But it's the first step to doing so.
* x264: add multilib support (a.k.a. 10-bit)John Stebbins2015-11-1213-146/+518
| | | | | This adds the structure to load an libx264 10-bit shared library. The user must install this library themselves to an appropriate place.
* bd: fix discontinuity handlingJohn Stebbins2015-11-122-15/+19
| | | | | | | | Tag only one buffer with discontinuity flag, not multiple. Flush pre-discontinuity buffers before signaling the discontinuity, not after. Make sure discontinuity flag is on the buffer with the PCR change when possible.
* libhb: repair split packets in readerJohn Stebbins2015-11-105-1/+107
| | | | | | | | We split PES packets when there is a PCR change in the middle of the packet. This works fine for audio and video where the decoder parses the ES to find frame boundaries. But it does not work for some decoders such as PGS subtitles. So mark split buffers and reassemble them in reader after processing the PCR change.
* presets: handle importing old string PicturePAR "integers"John Stebbins2015-11-101-0/+37
|
* muxavformat: add support for mp4 fallback audio signallingJohn Stebbins2015-11-091-1/+51
|
* scan: increase sensitivity to video flagsJohn Stebbins2015-11-091-26/+34
| | | | | | | We were mis-detecting framerate often because we did not see enough samples of various video flags while scanning previews. So move sampling of these flags into the inner video decode loop and collect more samples.
* libhb: make muxer, sync, and reader behave like other work objectsJohn Stebbins2015-11-0920-1337/+1298
| | | | | | | | | | | | | simplify job initialization sequence, clean up code, and document dependencies in the sequence better. Make hb_add set job->sequence_id. It is no longer necessary for the frontend to do this. If the frontend needs the sequence_id, it is returned by hb_add(). Clean up use of interjob. do_job() now uses sequence_id to detect when a new sequence of related jobs is running and automatically clears interjob.
* decavcodec: don't try to memset NULL buffersJohn Stebbins2015-11-061-2/+8
|
* decavcodec: fix hang in avcodec decoderJohn Stebbins2015-11-061-0/+10
| | | | | libavcodec/mpeg12dec.c expects input buffers to be zero padded to 32 bit alignment. If not zero padded, it can get caught in an infinite loop.
* stream: fix pts to buffer start conversionJohn Stebbins2015-11-051-6/+6
| | | | | AV_NOPTS_VALUE was getting modified by subtracting an offset. This lead to garbage start values reaching the muxer and causing hangs.
* libhb: don't use deprecated AVPictureJohn Stebbins2015-10-297-55/+84
| | | | | libav just deprecated AVPicture and all av_picture_*/avpicture_* functions.
* Double HB_MAX_WIDTH/HEIGHTJohn Stebbins2015-10-261-2/+2
| | | | Per BradleyS suggestion
* Enforce min/max dimensionsJohn Stebbins2015-10-262-24/+103
| | | | | | In both hb_set_anamorphic_size and hb_get_preview, check that image dimensions are > 32x32 and < 10240x10240. This should help to prevent crashes with unusual dimensions settings.
* libhb: prevent crashes in hb_get_preview2John Stebbins2015-10-261-1/+23
| | | | | | Try to avoid failures to initialize sws context by setting minimum dimensions. And if initialization does fail, exit gracefully instead of crashing in sws_scale.
* Fix bizarre custom anamorphic behaviorJohn Stebbins2015-10-261-37/+0
| | | | | | When "keep aspect" is unset in custom anamorphic, it was making very uintuitive changes to PAR. This simplifies the code and makes the behavior more sane.
* lame: Use libav wrapper to encode mp3lameJohn Stebbins2015-10-265-232/+6
| | | | | | | | | | Fixes https://forum.handbrake.fr/viewtopic.php?f=12&t=33345 Some players expect each packet to start on an mp3 frame header. Our mp3lame encoder did not ensure this and resulted in failure to play audio on these players. libav already has the necessary code to parse headers and accumulate a full frame of data, so use it.
* Update HandBrakeCLI to read presets.json on Windows. This is the file that ↵Scott2015-10-241-2/+2
| | | | | | windows gui stores all presets in now. This should allow the CLI to read GUI presets now.