summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* encoders: save chapter markers in a list.Rodeo2014-01-072-25/+121
| | | | | | | If chapters were a few seconds apart or less, we would encounter a new marker before the previous one had been placed in an output buffer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5956 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: don't forget to delete chapter markers after saving them in filter_loop.Rodeo2014-01-071-0/+2
| | | | | | | Some filters will propagate them, and since filter_loop also restores them, this can result in duplicate chapters or other related issues. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5955 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: use av_pix_fmt_desc_getjstebbins2014-01-061-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5954 b64f7644-9d1e-0410-96f1-a4d463321fa5
* qsv: log occurrences of invalid DTS (i.e. DTS > PTS) in the encoder.Rodeo2014-01-021-0/+9
| | | | | | | The muxer is not verbose enough, plus we have access to some additional info not available downstream. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5951 b64f7644-9d1e-0410-96f1-a4d463321fa5
* qsv: add some frame type helper functions.Rodeo2014-01-023-11/+64
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5950 b64f7644-9d1e-0410-96f1-a4d463321fa5
* muxavformat: print the actual error name, rather than a hard-to-lookup error ↵Rodeo2014-01-021-2/+8
| | | | | | code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5949 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix green line in deinterlace preview and fast deinterlacejstebbins2013-12-291-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5947 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Print the av_interleaved_write_frame error code in muxavformat.csr552013-12-291-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5943 b64f7644-9d1e-0410-96f1-a4d463321fa5
* ports: detect more Intel microarchitecture families.Rodeo2013-12-273-4/+27
| | | | | | | Also disable QSV hardware support on Bonnell-based microprocessors. Some Cloverview processors apparently support media SDK with third-party hardware, and until we can access hardware to test and fix the crashes we have on that platform, let's not enable it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5942 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: avoid a hang when GopRefDist 0 is requested by the user.Rodeo2013-12-151-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5932 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: check whether b_pyramid is respected in the non-workaround path too. Rodeo2013-12-151-22/+23
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5931 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: don't print BPyramid value when it's not supported by the ↵Rodeo2013-12-151-3/+10
| | | | | | | | | implementation used, as it's somewhat pointless (would always say off anyway). This also allows to notice whether b-pyramid is available more quickly when reading the log. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5930 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix a Segfault (attempt 2) where the job struct is used after it's closed.sr552013-12-121-3/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5928 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix a Segfault where the job struct is used after it's closed.sr552013-12-111-4/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5927 b64f7644-9d1e-0410-96f1-a4d463321fa5
* OpenCL: disable on Ivy Bridge integrated GPUs.Rodeo2013-12-112-1/+9
| | | | | | | Ivy Bridge supports OpenCL on GPU, but it's too slow to be usable for scaling. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5926 b64f7644-9d1e-0410-96f1-a4d463321fa5
* stream: don't treat attached artwork as valid video tracks, which they aren't.Rodeo2013-12-051-0/+1
| | | | | | | Fortunately, there's a flag for that. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5921 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: fix previous commit.Rodeo2013-12-051-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5920 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: find the AAC encoder by name.Rodeo2013-12-051-1/+1
| | | | | | | FDK is non-experimental, so if it's compiled in, it will be selected over the libavcodec encoder, which is what we want to use for consistency (quality hardly matters when encoding silence). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5919 b64f7644-9d1e-0410-96f1-a4d463321fa5
* sync: use "drop video to sync" fallback also when audio encoding fails or we ↵Rodeo2013-12-051-1/+9
| | | | | | do not get an output packet after 10 tries. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5918 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: update libhb presets to match a more recent recommendation.Rodeo2013-12-053-17/+96
| | | | | | | Based on a patch by Maxym Dmytrychenko. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5913 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: remove use of avpicture_deinterlacejstebbins2013-12-024-132/+338
| | | | | | | | This function is being remove from libav. so replace it's functionality with a threaded implementation of our own. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5911 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix a bunch of compiler warningsjstebbins2013-11-269-47/+42
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5905 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix fps detection for libav "raw" demuxersjstebbins2013-11-251-1/+4
| | | | | | | Fixes https://forum.handbrake.fr/viewtopic.php?f=11&t=28695&p=133276#p133276 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5904 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix problem with gereration of dts for lavc encoded videojstebbins2013-11-191-14/+30
| | | | | | | The old method resulted in dts > pts in some cases. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5899 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix reporting of buffer allocation statistics during scanjstebbins2013-11-181-2/+1
| | | | | | | | Put hb_buffer_pool_free() in the right position after all buffers allocated during scan are free. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5895 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: don't use DXYVA2-accelerated decoding when QSV-accelerated decoding ↵Rodeo2013-11-081-1/+3
| | | | | | is enabled. The latter is ebtter and faster. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5891 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: make avformat-based muxers the default.Rodeo2013-11-082-4/+4
| | | | | | | | They've matured enough by now. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5890 b64f7644-9d1e-0410-96f1-a4d463321fa5
* OpenCL: use the new library loading architecture for all OpenCL code.Rodeo2013-11-0819-679/+857
| | | | | | | | | | | An OpenCL SDK is no longer needed to build OpenCL support. Note: as a result, the --enable-opencl configure option is removed. Also, libOpenCL is no longer needed to run the application (it is still necessary to use OpenCL features, of course). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5886 b64f7644-9d1e-0410-96f1-a4d463321fa5
* New getters for video presets, tunes, profiles and levels.Rodeo2013-11-084-1/+74
| | | | | | | | | | x264 is no longer the only encoder with a built-in preset system; QSV has its own presets, and supports setting the H.264 profile and level, too. Old getters still in place for compatibility with the old API.. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5883 b64f7644-9d1e-0410-96f1-a4d463321fa5
* ports: cosmetics.Rodeo2013-11-081-1/+1
| | | | | | | | Also, previous patch is by icchan. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5882 b64f7644-9d1e-0410-96f1-a4d463321fa5
* ports: cast return result from getpid().Rodeo2013-11-081-1/+1
| | | | | | | Fixes a warning caused by a type mismatch (int vs. pid_t). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5881 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Denoise (hqdn3d) syntax change: accept settings for individual chroma channels.Rodeo2013-11-081-33/+50
| | | | | | | Patch by BradleyS. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5880 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix a small leak in encca_aac.ritsuka2013-11-051-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5878 b64f7644-9d1e-0410-96f1-a4d463321fa5
* RB626: return code support addedmaxd2013-11-0512-7/+59
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5876 b64f7644-9d1e-0410-96f1-a4d463321fa5
* decomb: don't use frame flags to modify deinterlace behaviorjstebbins2013-11-051-15/+5
| | | | | | | | | They are not a reliable indicator that the frame is truly progressive. Also, fix mask mode. It generated nothing but black frames. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5875 b64f7644-9d1e-0410-96f1-a4d463321fa5
* OpenCL: initial work on a new OpenCl wrapper, which will eventually phase ↵Rodeo2013-11-026-70/+995
| | | | | | | | | | out the existing one. Based on an x264 patch by Anton Mitrofanov. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5870 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix problem with SSA render when muxer is avformatjstebbins2013-11-011-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5864 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix BD audio detection problemjstebbins2013-10-281-15/+24
| | | | | | | | | | | BDs can (and occasionally do) have different audio stream types in different clips that compose a playlist. We try to pick the audios that appear in the most clips, but this breaks down when there are only 2 clips to choose from. So in the case of only 2 clips, choose audio from the longest clip. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5863 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix another case of spurious "missing start code" messagesjstebbins2013-10-281-0/+11
| | | | | | | | | | I have a poorly mastered BD that does not pad the adaptation field of the PCR PID properly. Since these packets are only used to extract the PCR, we can drop them early before the code that would generate these error messages. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5862 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix double hb_buffer_closejstebbins2013-10-281-1/+0
| | | | | | | Don't close a list of buffers then also close the last item in the list :-\ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5861 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix "missing start code" error message when encoding BDjstebbins2013-10-281-3/+9
| | | | | | | | | CC subtitles which are embedded in the video stream have an id of 0 assigned. We should ignore these when setting up the PID filter list since they do not use an independent PID. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5860 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix compiler warningsjstebbins2013-10-281-2/+1
| | | | | | | unused variables in denoise.c git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5859 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Denoise (hqdn3d) performance improvements.Rodeo2013-10-281-49/+54
| | | | | | | | | | Based on http://git.libav.org/?p=libav.git;a=commit;h=0f583e6 by Loren Merritt. Patch by BradleyS. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5858 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Denoise (hqdn3d) optimizations.Rodeo2013-10-281-160/+74
| | | | | | | | | | Based on http://git.libav.org/?p=libav.git;a=commit;h=85e228c by Loren Merritt. Patch by BradleyS. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5857 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Plug some leaks and clean up the buffer pool code a little.jstebbins2013-10-237-50/+62
| | | | | | | | | | | Filters were leaking buffers when a job is cancelled. decavcodec could leak when job cancelled. decavcodec leaked audio extradata in BSInfo encavcodec and encavcodecaudio leaked AVCodecContext sync leaked subtitle_sanitizer_t data git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5853 b64f7644-9d1e-0410-96f1-a4d463321fa5
* QSV: temporarily work around a bug in the Intel 33.x driver series.Rodeo2013-10-221-0/+22
| | | | | | | | Based on a patch by Maxym Dmytrychenko. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5851 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: check AVIOContext.error for errors while muxingjstebbins2013-10-211-1/+4
| | | | | | | | | libavformat doesn't always check this, so the return code from av_interleaved_write_frame doesn't indicate an error when there is a failure to write to disk. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5850 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix duration of initial audio frame when decoding with avcodecjstebbins2013-10-211-11/+15
| | | | | | | | | | | | | For some codecs, the samplerate is not known until we decode some data. So postpone calculation of frame duration till after we have decoded some data. The effect of this error is that the first 2 audio frames could have the same start time. This causes the "non monotonically increasing dts" error in libavformat mp4 muxer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5849 b64f7644-9d1e-0410-96f1-a4d463321fa5
* OpenCL: ship our own headers, to reduce our dependency on external OpenCL SDKs.Rodeo2013-10-207-24/+2483
| | | | | | | | Part 1 of a broader OpenCL refactoring. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5844 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix pgs timestamp problemsjstebbins2013-10-191-23/+35
| | | | | | | | Fixes "pts < dts" and "non-monotically increasing dts" errors in avformat muxing. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5843 b64f7644-9d1e-0410-96f1-a4d463321fa5