summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* batch: Support --min-duration when doing batch scansJohn Stebbins2017-02-273-4/+11
| | | | Fixes https://github.com/HandBrake/HandBrake/issues/501
* libav: gracefully handle a broken AVI indexJohn Stebbins2017-02-271-0/+42
| | | | Fixes https://github.com/HandBrake/HandBrake/issues/439
* libav: fix rawvideo in mkv corruptionJohn Stebbins2017-02-261-0/+44
| | | | fixes https://github.com/HandBrake/HandBrake/issues/128
* vfr: fix invalid read/writeJohn Stebbins2017-02-261-3/+2
| | | | | | Probably the cause of crash seen in nightly builds fixes https://github.com/HandBrake/HandBrake/issues/597
* Revise NEWS.markdown for 1.0.3.Bradley Sepos2017-02-251-13/+28
|
* Update NEWSsr552017-02-251-2/+7
|
* encca_aac: fix a small leakDamiano Galassi2017-02-241-0/+1
|
* encca_aac: use the libhb list helper functions to append buffersDamiano Galassi2017-02-241-34/+20
|
* encca_aac: no need to pad manually the remaining dataDamiano Galassi2017-02-241-12/+0
|
* encca_aac: flush all the remaining packets from encodersDamiano Galassi2017-02-241-17/+30
|
* audio_resample: fix mapping of mono to single channel (#593)John Stebbins2017-02-241-0/+27
| | | | | | | | | | | | | | | | | * audio_resample: fix mapping of mono to single channel libav's mixer code can't map single channel layouts to other single channel layouts. And we were asking it to map e.g. front left to front center because out MONO mixdown == libav front center. So when we request MONO and the source is any single channel, change our output layout to match the input. fixes https://forum.handbrake.fr/viewtopic.php?f=12&t=36016&sid=c5993fa7375792a940152c8adda19a54 * Incorporate Rodeo's suggestions * fix grammar
* MacGui: fix a typo.Damiano Galassi2017-02-241-1/+1
|
* MacGui: set a sort descriptor by default in the titles selection table.Damiano Galassi2017-02-241-0/+6
|
* libav: fix latm aac decoder hangJohn Stebbins2017-02-231-0/+71
| | | | | | | | | Don't return EAGAIN from decoders. When waiting for codec parameters, the decoder returned EAGAIN which was meant to be interpreted as "send more data". But the new libav decoder API changed the definition of EAGAIN to mean "send the same packet again". So hang.
* libav: fix reading wmv larger than 2GJohn Stebbins2017-02-231-0/+27
| | | | fixes https://github.com/HandBrake/HandBrake/issues/587
* libav: fix crash when encoding aac at high bitrateJohn Stebbins2017-02-231-0/+28
| | | | Fixes https://github.com/HandBrake/HandBrake/issues/510
* encx265: fix compiler warningJohn Stebbins2017-02-221-1/+0
|
* encx265: fix 2 pass encoding when framerate is wrongJohn Stebbins2017-02-221-3/+2
| | | | | | x265 expects the framerate specified to be the same for both passes. So we must set the same value even when we compute that the actual framerate differs from what the file's header says.
* MacGui: preserve the output file name if auto naming is not enabled and the ↵Damiano Galassi2017-02-222-2/+13
| | | | source is not a stream. Revert to the 0.10.x behaviour.
* libav: fix mkv seek crashJohn Stebbins2017-02-211-0/+57
| | | | | | Remove hopelessly broken code that attempted to rewind the seek point to a position in the file where subtitles in every subtitle track after the seek time are after the computed position.
* dvd: add widescreen/letterbox/pan&scan/4:3 to vobsub descriptionJohn Stebbins2017-02-213-10/+55
|
* dvd: add widescreen vobsubs when letterbox is permittedJohn Stebbins2017-02-212-154/+228
| | | | | | We were only adding subtitle tracks specifically designed for letterbox when letterbox is permitted. We should also add the subtitle tracks that are specifically designed for wide screen.
* vfr: add cfr frame drop debugging logsJohn Stebbins2017-02-211-0/+32
| | | | | | | | | | | | | These logs can be enabled by uncommenting HB_DEBUG_CFR_DROPS at the top of the file. If you have any sources that use progressive frame upsampling that you would like to test with this new frame drop algo, enable these debug logs to get full details of what frames are dropped and passed. They show which frames are dropped and the metrics that the decision to drop is based on. They also show which frames are passed and the cadence of passed vs. dropped frames.
* vfr: simplify and improve CFR frame dropping algoJohn Stebbins2017-02-211-158/+198
| | | | | | | | | | | | | | | | The new algo caches extra frames so it can select a "best" frame to drop from a list. A metric for each buffer is calculated as it is added to the list. The metric indicates how much the frame differes from the previous frame. The one with the lowest metric is selected for dropping when a drop is required. The old algo tried to latch on to a pattern without keeping any extra frames. When "in sync" it would drop the buffer that fit the pattern. But this only worked for a few specific patterns I had tested with and did not work for all possible patterns (e.g. issue 50 where 1 in 5 needed to be dropped to convert 29.97 to 23.976). fixes https://github.com/HandBrake/HandBrake/issues/50
* decavcodec: drop initial_padding audio samplesJohn Stebbins2017-02-213-18/+61
| | | | | | These are samples that were not in the original source and were added by the encoder. To get a faithful reproduction of the source, they must be dropped.
* libav: extract initial_padding from mp4 edit listJohn Stebbins2017-02-211-0/+42
|
* libav: fix mp4 edit list delay rounding errorJohn Stebbins2017-02-211-10/+14
| | | | | The error was small, but could result in a 1ms shift for every generation of remuxing.
* encavcodecaudio: set encoder time_base to 90khzJohn Stebbins2017-02-211-7/+9
| | | | | Setting the time_base to 90khz reduces rounding errors when converting back and forth from the default which was sample_rate.
* encavcodecaudio: fix dropping of final input packetJohn Stebbins2017-02-211-1/+1
| | | | | When exactly input_samples were left in the input buffer, we were dropping them when they could be encoded.
* opencl: better release of OpenCL context to avoid more leaksmaxd2017-02-202-0/+10
|
* opencl: fixing leaks for clBuffersmaxd2017-02-201-0/+5
|
* encca_aac: factory encoder delay into timestampsJohn Stebbins2017-02-201-2/+15
| | | | | And set audio init_delay so that we can record the encoder delay in the output container.
* libav: explicitly write encoder delay and preroll to mp4John Stebbins2017-02-202-0/+178
| | | | | | | | | | This will make it possible to read encoder delay back and drop the samples appropriately. Writing preroll sample group to the mp4 fixes post-processing of the file with Apple tools. If the roll sample group is not present, Apple tools will apply an implicit rule to remove encoder delay which results in the delay being dropped twice.
* libav: revise edit list offset patchJohn Stebbins2017-02-191-37/+67
| | | | No functional difference
* preset: fix application of anamorphic "Off"John Stebbins2017-02-191-1/+1
|
* sync: fix sync problem with delayed streamsJohn Stebbins2017-02-181-5/+5
| | | | | | If a stream is delayed by a large amount and the first timestamp from the stream is AV_NOPTS_VALUE, sync assumed a 0 timestamp which caused loss of sync. Drop the buffer instead.
* decavcodec: fix commentJohn Stebbins2017-02-181-1/+1
|
* Enabled "Per monitor DPI awareness"Waterflames2017-02-182-0/+14
| | | | | | | | | This commit adds entries to app.config and app.manifest to enable per monitor DPI awareness in Windows 10. The application will behave as before on platforms that do not support this. The implementation was done using official Microsoft documentation: https://github.com/Microsoft/WPF-Samples/tree/master/PerMonitorDPI
* WinGui: Fix a logic error in 8vs10bit video encoder detection in the ↵sr552017-02-171-1/+1
| | | | advanced view.
* qsv: fix init_delay referenceJohn Stebbins2017-02-151-1/+1
| | | | Missed changing this when moving init_delay out of esconfig union
* muxavformat: Inform muxer of encoder delayJohn Stebbins2017-02-151-0/+2
| | | | | | | initial_padding is used to inform libav muxers of initial encoder delay duration. When set for mkv it can be used to remove the silence samples during playback since the delay value gets stored in the mkv CodecDelay element.
* libav: fix mkv timestamps when initial_padding is setJohn Stebbins2017-02-151-0/+12
| | | | | | initial_padding is used to inform libav muxers of initial encoder delay duration. When set for mkv it can be used to remove the silence samples during playback.
* libav: fix mp4 edit list A/V sync properlyJohn Stebbins2017-02-151-7/+69
|
* libav: fix failure to scan wmv fileJohn Stebbins2017-02-151-0/+117
| | | | | | | | | Fixes problem reported here https://forum.handbrake.fr/viewtopic.php?f=11&t=35690 Also possibly related https://github.com/HandBrake/HandBrake/issues/466 https://github.com/HandBrake/HandBrake/issues/495
* libav: fix crash when scanning wmv fileJohn Stebbins2017-02-151-0/+31
| | | | | | | | | | | Fixes crash reported here https://forum.handbrake.fr/viewtopic.php?f=11&t=35690 Does not fix scan problem, but follow-up commit will. Also possibly related https://github.com/HandBrake/HandBrake/issues/466 https://github.com/HandBrake/HandBrake/issues/495
* mux: revert shift timestamps by largest encoder delayJohn Stebbins2017-02-141-35/+0
| | | | | | | | Ugh! I need a brain transplant! This would have cause a properly functioning player to insert silence at the start of playback that wasn't in the original source. reverts 5429a92c51682240acbbe7b150d314d993d7d3a0
* mux: shift timestamps by largest encoder delayJohn Stebbins2017-02-148-13/+49
| | | | | This prevents libav from adding an mp4 edit list entry that causes a properly functioning player to drop the first couple of audio frames.
* Fixed Botton to Bottomsupachris282017-02-121-2/+2
|
* WinGui: Further Relax the stylecop rules.sr552017-02-111-0/+12
|
* WinGui: Fix a number of stylecop warnings.sr552017-02-1147-167/+162
|