summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* stream: remove unused variable pix_fmtJohn Stebbins2015-09-201-2/+0
|
* qsv: HEVC encoding support.Tim Walker2015-09-206-71/+390
|
* libhb: Fix compiler issues in previous commit.Bradley Sepos2015-09-101-3/+7
| | | | gcc didn't like the way variables were being initialized.
* libhb: Clock/frame rate handling improvements.Bradley Sepos2015-09-106-33/+63
| | | | | | | | Allows for arbitrary frame rates between 1 and 1000 fps. Adds min/max frame rates to CLI help. Removes hardcoded instances of the internal clock rate in favor of hb_video_framerate_get_limits(). Unfortunately, much of the codebase generally refers to clock rate as frame rate, so a little extra care is still necessary going forward.
* libhb: Expand framerates to include 20 and 48.Bradley Sepos2015-09-101-0/+2
|
* libhb: remove unused hb_buffer_t.subJohn Stebbins2015-09-0411-73/+2
|
* build: use git version info instead of svnJohn Stebbins2015-08-253-8/+65
| | | | | | Migrate from svn to git. Since our build system automatically generates version info from the svn repo, this needs to change when we move the repo to git.
* cropscale: prevent crash when scale dimensions too smalljstebbins2015-08-242-1/+7
| | | | | | | | This will result in no video in the output file, but in such cases, this might actually be desirable. Scaling to such small dimensions is often used simply to re-encode audio. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7412 b64f7644-9d1e-0410-96f1-a4d463321fa5
* nlmeans: fix the default valuesjstebbins2015-08-171-2/+2
| | | | | | | Make the nlmeans default (when no string supplied) match "medium" preset. And make the CLI default the medium preset. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7402 b64f7644-9d1e-0410-96f1-a4d463321fa5
* presets: fix preset search by namejstebbins2015-08-131-0/+2
| | | | | | | It was not continuing if it failed to find the preset in the first folder git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7401 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix display of audio copy maskjstebbins2015-08-121-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7400 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix parsing job Audio->CopyMaskjstebbins2015-08-101-2/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7397 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix application of max width/heightjstebbins2015-07-221-4/+12
| | | | | | | | In non-anamorphic and custom-anamorphic, if keep-aspect is not set, don't adjust dimensions to fix aspect when applying max width or height. If the user is telling us to distort the image, do it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7362 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: disable OpenCL scaling when QSV scaling is used.Rodeo2015-07-041-0/+6
| | | | | | | This avoids issues with OpenCL buffer mapping. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7343 b64f7644-9d1e-0410-96f1-a4d463321fa5
* OpenCL: fix cleanup.Rodeo2015-07-041-0/+1
| | | | | | | OpenCL buffer mapping was not disabled during cleanup. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7342 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: don't be quite as picky about marking an encoder as available.Rodeo2015-07-031-11/+21
| | | | | | | While it worked fine w/HSW, it led to some false negatives on IVB hardware. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7334 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: detect read errors and propagatejstebbins2015-06-2910-26/+92
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7332 b64f7644-9d1e-0410-96f1-a4d463321fa5