summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* decomb: oops, fix overread when height is mod 4jstebbins2015-03-161-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6994 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: add "creation_time" metadatajstebbins2015-03-151-0/+5
| | | | | | | Tags mp4 files with current time. This was previously done by mp4v2 for us. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6991 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decomb: fix green line when source hight is modulus 2jstebbins2015-03-141-4/+4
| | | | | | | | | decomb requires mod 4 height. we pad our frame buffer heights to allow for this kind of thing, but need to allow decomb to operate on those extra blank lines. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6989 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix building with QSV enabled.Rodeo2015-03-131-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6985 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix crash when foreign audio search is *not* enabledjstebbins2015-03-112-1/+8
| | | | | | | | | Also, prevent crashes that occur when the json is not properly parsed. It will still fail to encode, but we will capture the parse failure in the log. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6983 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: use jansson for hb_dictjstebbins2015-03-098-377/+814
| | | | | | | | This paves the way to doing preset processing in libhb. Initially for the CLI but other frontends may benefit eventually. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6981 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: automatically scan title when processing json jobsjstebbins2015-03-0718-127/+249
| | | | | | | | | | | | | | | Simplifies the WinGui. This also changes how jobs are processed. Creating the sub-jobs for multiple passes is delayed until after scanning and immediately before running the job. Working status has also changed. Sub-job passes are identified in status with an ID that allows the frontend to definitively identify what pass is in progress. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6976 b64f7644-9d1e-0410-96f1-a4d463321fa5
* nlmeans: fix build on non-x86 architecturesjstebbins2015-02-263-8/+10
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6945 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: only set subtitle "forced" flag when *user* sets default trackjstebbins2015-02-251-3/+6
| | | | | | | | Forced shouldn't be set when hb chooses a default track for mp4, which we do for quicktime compatibility. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6944 b64f7644-9d1e-0410-96f1-a4d463321fa5
* mkv: mark "default" subtitle tracks with both default and forced flagsjstebbins2015-02-241-1/+2
| | | | | | | Makes "default" do the right thing in plex git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6941 b64f7644-9d1e-0410-96f1-a4d463321fa5
* stream: fix potential overflow in pts calculationjstebbins2015-02-171-5/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6919 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix memory alignment issue in nlmeans.bradleys2015-02-161-1/+1
| | | | | | | | Solves crash in accelerated code when source dimensions are not mod 16. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6915 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: don't pass "auto" profile to libx265.Rodeo2015-02-161-1/+3
| | | | | | | This isn't a valid H.265 profile and will cause encoder initialization to fail. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6913 b64f7644-9d1e-0410-96f1-a4d463321fa5
* bd: fix printf format conversion warningjstebbins2015-02-161-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6911 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix compiler warnings and more const correctness in nlmeans.bradleys2015-02-161-32/+33
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6910 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix compiler warnings in denoise (hqdn3d).bradleys2015-02-161-4/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6909 b64f7644-9d1e-0410-96f1-a4d463321fa5
* New audio output options.Rodeo2015-02-1510-38/+213
| | | | | | | | | Dolby Digital Plus (E-AC-3), Dolby TrueHD and FLAC can now be passed through without re-encoding. They aren't covered by Auto Passthru yet, however. In addition, encoding to E-AC-3 is now possible. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6908 b64f7644-9d1e-0410-96f1-a4d463321fa5
* scan: work around libav mpeg2 dummy first framejstebbins2015-02-151-1/+11
| | | | | | | | | | libav generates a dummy first frame after any seek for some mpeg2 streams. This results in black preview frames and invalid autocrop values. So always decode at least 2 frames before using the frame for preview. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6906 b64f7644-9d1e-0410-96f1-a4d463321fa5
* H.265: don't allow requesting Main 10 profile.Rodeo2015-02-153-3/+29
| | | | | | | | | This is pointless since we only do 8-bit encoding for now. Also add a few extra tables for future use. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6904 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Additional minor optimizations to nlmeans.bradleys2015-02-113-56/+59
| | | | | | | | | | | Assume buffered planes are equal size in nlmeans. Make nlmeans scalar counters read like accelerated counters (more readable and saves ~2 cycles). Yet more const correctness. Clarify some variable names for readability. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6896 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Minor nlmeans optimizations.bradleys2015-02-062-71/+84
| | | | | | | | | | | | | | Use calloc for nlmeans integral instead of memsets in-loop zeroing. Replace superfluous const with literal in SSE implementation. Move exponential table calculation out of the main loop. More const correctness. Add some braces. Overall, slightly more readable/maintainable and (very) slightly faster. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6874 b64f7644-9d1e-0410-96f1-a4d463321fa5
* mux: remove obsolete comment about generation of AAC extradata from TS filesjstebbins2015-02-041-5/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6872 b64f7644-9d1e-0410-96f1-a4d463321fa5
* mux: fix chapter timestamps, factor in video encoder delayjstebbins2015-02-042-2/+23
| | | | | | | | libav does not fix chapter timestamps for us, so we must do this until I can figure out a good fix to libav. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6871 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Fix AAC passthru from TS filesjstebbins2015-02-042-1/+50
| | | | | | | | | | Apply aac_adtstoasc bitstream filter while muxing AAC stream and extract AudioSpecificConfig during scan. Patch submitted by Taihei Momma git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6867 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: fix mp4 edit lists to eliminate initial black framesjstebbins2015-02-031-35/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6865 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: add support for detection of new Intel processor releases.Rodeo2015-02-033-1/+22
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6864 b64f7644-9d1e-0410-96f1-a4d463321fa5
* scan: improve preview generation for short videos that have no IDRsjstebbins2015-02-021-1/+14
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6862 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: fix defaultduration in mkv filesjstebbins2015-02-011-0/+2
| | | | | | | libav 11 now requires avg_frame_rate be set for video streams git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6858 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Update year to 2015.bradleys2015-02-0186-86/+86
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6852 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: refactor plugin loadingRodeo2015-02-011-18/+32
| | | | | | | We may need to load more than one plugin per session, e.g. one for decoding and one for encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6851 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: reduce logging in encqsvInitRodeo2015-02-011-23/+27
| | | | | | | Only log non-essential parameters when their values differ from our global default; this avoids tempting users with options they know nothing about. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6850 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: update hb_qsv_force_workarounds()Rodeo2015-02-011-4/+6
| | | | | | | Disabling API 1.6 detection is no longer required (our own DTS is now always available); disabling BRefType support may be useful to check that our old B-Pyramid code still works with newer drivers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6849 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: improve ICQ and LA handlingRodeo2015-02-011-2/+2
| | | | | | | ICQ is incompatible with ABR encoding; LA is incompatible with CQP. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6848 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: improve B-Pyramid handling.Rodeo2015-02-011-110/+139
| | | | | | | Newer drivers support enabling/disabling it via a dedicated option without having to modify other GOP parameters. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6847 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: refactor logging of encoder capabilitiesRodeo2015-02-012-24/+69
| | | | | | | | | | | Only log H.265/HEVC information with verbosity 2, as encoding is not supported yet. Log H.264 capabilities with verbosity 1, as this may be useful and doesn't take up that much space. Shorten the string as much as possible. Also rename NMBSLICE capability to NMPSLICE (Num Mb Per Slice) for consistency. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6846 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add support for open type font attachments.ritsuka2015-01-314-11/+25
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6839 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: fix avformat stream time_base warningjstebbins2015-01-301-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6831 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: automatically add rendersub filter when requiredjstebbins2015-01-303-30/+51
| | | | | | | | | | | | This requires the addition of a filter->post_init function to inform filters of the final job configuration after all filters have been initialized. Rendersub needs to know cropping, but cropping isn't known till after crop_scale filter is initialized. Since crop_scale is initialized *after* rendersub is initialized, post_init is needed. Currently, rendersub is the only filter that defines post_init. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6830 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: NLMeans x86 SSE acceleration/optimizations.bradleys2015-01-294-36/+268
| | | | | | | | Speed improvements of 1-6% seem typical. Most benefit seems to be for older hardware and/or hardware with fewer threads. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6826 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Build: fix compilation with some MinGW-w64 distributions.Rodeo2015-01-281-0/+8
| | | | | | | Some distributions provide their own strtok_r via a preprocessor directive, which conflicts with our implementation; prefer our own as it is thread-safe. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6825 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: revert last commitjstebbins2015-01-221-4/+2
| | | | | | | | made a bad assumption. internal libhb track number is not needed by the front-end git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6795 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: add "Track" to audio and subtitle in titlesjstebbins2015-01-221-2/+4
| | | | | | | | This is the track that must be passed to libhb in the job to select desired audio and subtitle tracks git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6794 b64f7644-9d1e-0410-96f1-a4d463321fa5
* build: fix mingw Jenkins buildsjstebbins2015-01-191-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6773 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Work around fedora mingw pthread library requirementjstebbins2015-01-182-2/+11
| | | | | | | | | | Fedora mingw seems to require it's own pthread library which causes build conflicts with our pthread lib. So this patch distinguishes whether libpthread or libpthreadGC2 is already installed on the system and uses the appropriate system lib when found. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6766 b64f7644-9d1e-0410-96f1-a4d463321fa5
* json: fix srt filename parsingjstebbins2015-01-171-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6762 b64f7644-9d1e-0410-96f1-a4d463321fa5
* dvd: demote an hb_error to hb_log to prevent GUI error dialog spamjstebbins2015-01-151-1/+1
| | | | | | | This "error" always happens with non-dvd sources. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6755 b64f7644-9d1e-0410-96f1-a4d463321fa5
* stream: Fix scanning files with large PNGsjstebbins2015-01-141-1/+15
| | | | | | | | Increase libavformat probe buffer size. The default size of 5MB is not large enough to successfully scan some files. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6749 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix libdvdnav dvd name and add additional fallback if no name is foundritsuka2015-01-131-1/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6744 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Revert a change Xcode committed on its own.ritsuka2015-01-131-8/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6742 b64f7644-9d1e-0410-96f1-a4d463321fa5