summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* libhb: Add rebeccapurple to color map.Bradley Sepos2015-10-231-0/+1
|
* libhb: fix dereference of null pointerJohn Stebbins2015-10-201-1/+2
|
* libhb: Fix potentially uninitialized variableJohn Stebbins2015-10-201-0/+2
|
* Merge pull request #21 from jstebbins/grayscaleJohn Stebbins2015-10-198-27/+279
|\ | | | | grayscale: make it a real filter
| * grayscale: make it a real filterJohn Stebbins2015-10-148-27/+279
| | | | | | | | | | It only worked properly with the x264 encoder. Now it works with all encoders.
* | ports: make hb_opendir param constJohn Stebbins2015-10-192-2/+2
| |
* | mux: simplify muxFlushJohn Stebbins2015-10-141-11/+4
| |
* | mux: flush cached buffers when closingJohn Stebbins2015-10-141-1/+30
|/ | | | | | | When an encode is cancelled, cached mux buffers are not currently written to the output file. Since we don't start writing output till 50MB of data has been cached, this can result in no data being written when an encode is cancelled early.
* tx3g: remove 2 line limitJohn Stebbins2015-10-121-14/+1
| | | | This is no longer a problem with new versions of iOS and QuickTime
* decsrt: don't combine > 2 lines into 2John Stebbins2015-10-121-28/+6
| | | | | | This was originally done because > 2 lines is not supported in mp4 timed text. But this line combining is now performed only when necessary in muxavformat.
* Remove invalid presets in presets_do()Damiano Galassi2015-10-121-1/+1
|
* presets: add result to indicate if preset import modified presetsJohn Stebbins2015-10-092-11/+29
| | | | | This information is useful to the frontends in creation of preset backups.
* Make deinterlace/decomb behave similar to nlmeans/hqdn3dJohn Stebbins2015-10-096-173/+137
| | | | | I.e. use a dropdown to select between the filters instead of a radio button.
* Use the non deprecated kIOPMAssertPreventUserIdleSystemSleep assertion to ↵Damiano Galassi2015-10-051-1/+1
| | | | prevent sleep on OS X.
* scan: fix rescan avoidance logicJohn Stebbins2015-09-294-6/+23
| | | | We need to rescan when the number of previews changes.
* fix to prevent lazy compiler assumption and avoid full computation, no local ↵Max Dmytrychenko2015-09-271-3/+2
| | | | var needed
* fix to prevent lazy compiler assumption and avoid full computationMax Dmytrychenko2015-09-271-2/+3
|
* libhb: add hb_buffer_listJohn Stebbins2015-09-2428-1030/+872
| | | | | This brings together several independent implementations of a simple buffer list manager.
* adjustment to report QSV availability in MASK formMax Dmytrychenko2015-09-241-2/+2
|
* rendersub: handle mismatched video and subtitle dimensionsJohn Stebbins2015-09-244-83/+162
| | | | | The video frame subtitles are meant to be rendered to may not match the actual video we are encoding. So scale to match as needed.
* libhb: Skylake microarchitecture detection, RB 859Max Dmytrychenko2015-09-223-1/+13
|
* libhb: fix OpenCL initialization.Tim Walker2015-09-211-4/+7
| | | | It was borken in 293083e5