summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* presets: fix hb_preset_moveJohn Stebbins2016-12-301-1/+1
| | | | | Moving between different folder levels was broken. This broke preset drag-and-drop in LinGui.
* libhb: fix audio bitrate when using fallback encoderJohn Stebbins2016-12-291-31/+1
| | | | | | | Fixes https://github.com/HandBrake/HandBrake/issues/462 hb_audio_add was overwriting the desired output bitrate before we discovered that we needed to use the fallback encoder.
* encavcodec: fix 2 pass vp8 and vp9 encodingJohn Stebbins2016-12-271-0/+9
| | | | | libvpx only supplies the stats upon the final flush of the encoder. So we must also write stats after final flush.
* encavcodec: fix crash during 2 pass encodeJohn Stebbins2016-12-271-2/+2
| | | | This affect mpeg4, mpeg2, vp8 and vp9 encoding
* qsv: Fix a memory leak in enc_qsv.c Patch by maxim_d33sr552016-12-231-1/+1
|
* libhb: pass through BT.2020 transfer flagsJohn Stebbins2016-12-222-0/+6
|
* stream: fix SRT subtitle durationJohn Stebbins2016-12-221-0/+1
|
* fix unreachable code, really fix boolean logic this timeJohn Stebbins2016-12-211-1/+2
| | | | Thanks Rodeo for pointing this out
* fix compiler warning and operator precedence problemJohn Stebbins2016-12-211-1/+1
|
* libhb: add new color tags for Bt 2020 and SMPTE ST 2084Damiano Galassi2016-12-217-22/+60
|
* libhb: immediately set hb_state_t pass and pass_count to -1 in hb_start(), ↵Damiano Galassi2016-12-201-0/+2
| | | | so a UI can check if pass_count has been set or not yet, to avoid displaying a random value for half a second if it tries to display the pass state before the work thread has been initialized.
* fix memory leaksJohn Stebbins2016-12-173-2/+3
| | | | | | The series of commits starting with Tim's "libav: remove our custom QSV wrapper." Closes #46, closes #276, and closes #416.
* stream: fix SRT detectionJohn Stebbins2016-12-171-0/+1
| | | | libav changed the codec id they use for SRT in mkv
* unref AVPackets, fix merge issuesJohn Stebbins2016-12-172-3/+6
|
* qsv: rename av_qsv* to hb_qsv*John Stebbins2016-12-1715-435/+435
|
* qsv: fix more compiler warningsJohn Stebbins2016-12-174-6/+6
|
* qsv_memory: fix compiler warningsJohn Stebbins2016-12-171-4/+4
|
* qsv_libav: silence compiler warningJohn Stebbins2016-12-171-1/+1
| | | | | warning: "/*" within comment It's very noisy since this header gets pulled into everything.
* encavcodecaudio: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-111/+100
| | | | | avcodec_encode_audio2 is deprecated, use avcodec_send_frame and avcodec_receive_packet
* encavcodec: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-141/+136
| | | | | | | AVCodecContext.coded_frame is deprecated. We didn't really need it. avcodec_encode_video2 is deprecated, use avcodec_send_frame and avcodec_receive_packet
* decavcodec: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-164/+222
| | | | | | | avcodec_decode_audio4 is deprecated, use avcodec_send_packet and avcodec_receive_frame av_bitstream_filter is deprecated, use av_bsf
* stream: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-91/+87
| | | | AVStream.codec is deprecated, use AVStream.codecpar
* muxavformat: fix use of deprecated libav interfacesJohn Stebbins2016-12-171-90/+106
| | | | | AVStream.codec is deprecated, use AVStream.codecpar av_bitstream_filter is deprecated, use av_bsf
* decpgssub: fix use of deprecated rect->pictJohn Stebbins2016-12-171-2/+2
|
* fix chapter markers when encoding with libav video encoderJohn Stebbins2016-12-171-1/+1
| | | | | | encavcodec saved the chapter mark and set the buffers new_chap to 0. Then work copied the zero'd new_chap over the good mark that encavcodec set.
* potential fix for hard to reproduce crashJohn Stebbins2016-12-171-3/+12
|
* qsv: Update condition under which context is closed.Tim Walker2016-12-171-2/+6
|
* decavcodec: enable QSV-accelerated H.264 decoding with libavcodec.Tim Walker2016-12-174-43/+51
| | | | | | Videos get decoded to NV12 in system memory and converted to our internal colorspace via libswscale. It should be noted that QSV- accelerated decoding now works with all our videos encoders :-)
* qsv: Fix crash attempting to destroy mutex.Tim Walker2016-12-171-2/+6
| | | | Originally part of a2d31ec1c6109424d193832aa83db6958292d797.
* libhb: don't use av_log.Tim Walker2016-12-172-18/+16
| | | | qsv_libav.[ch] was previosuly use from libavcodec.
* libhb: fix build with --enable-qsvTim Walker2016-12-179-72/+26
| | | | | | | | | | Convert qsv_livav.[ch] to be built within libhb. Convert other files to use qsv_libav.h in place of libavcodec/qsv.h Don't attempt to build libav with QSV support (not available in unpatched release/11 branch). QSV-accelerated decoding is broken, so disable it for the time being.
* libhb: add code to support our QSV-accelerated encoder.Tim Walker2016-12-172-0/+1140
| | | | | | The files are copied verbatim from the patch we just removed, where they were known as: libavcodec/qsv.h libavcodec/qsv.c
* preset: Revise Gmail presets.Bradley Sepos2016-12-161-32/+32
| | | | | | | | Longer durations, better resolutions. Gmail Large 3 Minutes 720p30: Up to 3 minutes of 720p video in 25 MB or less. Gmail Medium 5 Minutes 480p30: Up to 5 minutes of 480p video in 25 MB or less. Gmail Small 10 Minutes 288p30: Up to 10 minutes of 288p video in 25 MB or less.
* sync: don't delay subtitles when duration is knownJohn Stebbins2016-12-151-5/+9
| | | | | | | | | | | | | | Delayed subtitles were causing incorrect muxing in mkv. The mkv muxer writes chunks where all samples should be relative to a chunk's base timestamp. When the subtitle is delayed long enough for a new chunk to start before it gets muxed, the calculated offset to the chunk's base time is negative (which is illegal). Note that this is still a possibility with subtitles that must be delayed (e.g. CC and VOBSUB) because the duration is not known until the next subtitle's start time is known. The only fix for this would be to add a special subtitle parsing pass that caches subtitle timestamps before the main encoding pass is performed.
* preset: Set default to false for Gmail presets.Bradley Sepos2016-12-151-3/+3
|
* sync: fix compiler warningJohn Stebbins2016-12-151-1/+1
|
* reader: fix compiler warning "buf uninitialized"John Stebbins2016-12-151-0/+7
|
* preset: Add Web presets category and Gmail presets.Bradley Sepos2016-12-151-1/+296
| | | | | | Gmail Large 1080p30: Up to 1 minute of 1080p video in 25 MB or less. Gmail Medium 720p30: Up to 2 minutes of 720p video in 25 MB or less. Gmail Small 360p30: Up to 5 minutes of 360p video in 25 MB or less.
* libhb: fix small leaksJohn Stebbins2016-12-143-2/+22
| | | | fixes various context leaks in error conditions
* libhb: Remove redundant check in common.cmidzer2016-12-141-1/+1
| | | | Closes #358.
* libhb: Remove redundant check in preset.c.midzer2016-12-141-4/+3
|
* qsv: Fix possible null pointer dereference.midzer2016-12-141-2/+2
|
* libhb: Fix possible null pointer dereference in stream.c.midzer2016-12-141-6/+6
|
* stream: fix invalid ES packet generationJohn Stebbins2016-12-101-2/+2
| | | | In some cases, the PES header was included in the "ES" data.
* sync: fix PtoP hangJohn Stebbins2016-11-211-7/+10
| | | | | | reader adjusts pts_to_start after seeking. if the adjustment makes pts_to_start == 0, sync didn't properly search for the start point and hung.
* stream: be more forgiving of TS continuity errorsJohn Stebbins2016-11-211-4/+8
|
* libhb: add a missing argument to a hb_sws_get_context.Damiano Galassi2016-11-121-1/+2
|
* libhb: do not free hb_work_private_t in reader_init() if the reader open ↵Damiano Galassi2016-11-121-1/+0
| | | | fail, it will be freed later in reader_close(). Fixes a crash that happens when hb_reader_open() fails because the source file was moved.
* libhb: remove scanCount variable from hb_handle_s, it's not needed anymore ↵Damiano Galassi2016-11-111-8/+3
| | | | since MacGui use multiple libhb instances.
* libhb: re-enable SWS_FULL_CHR_H_INT and SWS_FULL_CHR_H_INP swscale flags to ↵Damiano Galassi2016-11-111-2/+0
| | | | improve yuv->rgb conversion.