]> granicus.if.org Git - handbrake/log
handbrake
5 years agoLinGui: fix missing x265 fastdecode tune 1.2.x
John Stebbins [Sun, 5 May 2019 21:16:24 +0000 (15:16 -0600)]
LinGui: fix missing x265 fastdecode tune

(cherry picked from commit faf3b92d86d31d261f7017fd311720286cd61dca)

5 years agolibhb: pass AV_PKT_FLAG_DISCARD through to decoder
John Stebbins [Thu, 2 May 2019 18:56:02 +0000 (12:56 -0600)]
libhb: pass AV_PKT_FLAG_DISCARD through to decoder

Edit list cuts are not always on keyframe boundaries and therefore
sometimes require dropping frames after decoding them.
AV_PKT_FLAG_DISCARD tells us when to do this.

Fixes https://github.com/HandBrake/HandBrake/issues/1900

(cherry picked from commit 9be711f822e4458d4d4edda1d00a6b752fc4e7b8)

5 years agovfr: improve duplicate frame drop detection
John Stebbins [Sun, 14 Apr 2019 23:34:28 +0000 (17:34 -0600)]
vfr: improve duplicate frame drop detection

More strictly limit the range of frames inspected when choosing a frame
to drop.

We were getting too many false positives which resulted in dropping
good frames. Limiting the range results in emitting good frames
before they can become the worst of a collection of other good
frames, and therefore be evaluated as droppable.

(cherry picked from commit d572956c90cffd6c221368af69ad129e2bc84bdb)

5 years agodecvobsub: fix crash due to malformed vobsub
John Stebbins [Thu, 4 Apr 2019 22:49:37 +0000 (16:49 -0600)]
decvobsub: fix crash due to malformed vobsub

Check that a runlength does not exceed the width of a line

(cherry picked from commit 10ca6f0f9d0a68de3df03203e561b76b0343dbd4)

5 years agoMacGui: don't allow empty output file names.
Damiano Galassi [Mon, 1 Apr 2019 09:46:25 +0000 (11:46 +0200)]
MacGui: don't allow empty output file names.

(cherry picked from commit 97e1f39d8427f3d18a29dd3214283f1828972a34)

5 years agoMacGui: don't allow nil chapters titles.
Damiano Galassi [Mon, 1 Apr 2019 07:13:03 +0000 (09:13 +0200)]
MacGui: don't allow nil chapters titles.

(cherry picked from commit 833c05dae403b3c92efc592e1702f149f58ae48a)

5 years agometa: Belatedly add news for 1.2.2 release.
Bradley Sepos [Fri, 29 Mar 2019 14:27:23 +0000 (10:27 -0400)]
meta: Belatedly add news for 1.2.2 release.

(cherry picked from commit b4ed40ff134ff8cdae35b5b8ec06bd7f5c4465ea)

5 years agoLinGui: fix video codec preset when switching codecs
John Stebbins [Mon, 4 Mar 2019 16:19:22 +0000 (08:19 -0800)]
LinGui: fix video codec preset when switching codecs

If the codec doesn't have a 'medium' preset, the GUI was left in an
indeterminate state

(cherry picked from commit 90c8d6031205f1e06642006e63ac021515ab2a5e)

5 years agocontrib: Fix FreeType bzip2 dependency typo.
Bradley Sepos [Tue, 26 Feb 2019 22:00:28 +0000 (17:00 -0500)]
contrib: Fix FreeType bzip2 dependency typo.

(cherry picked from commit 982adb1b79f4075cfc7790c0bbbdb8438fc37f1a)

5 years agoMacGui: upgrade Sparkle to version 1.21.3 1.2.2
Damiano Galassi [Tue, 19 Feb 2019 08:03:48 +0000 (09:03 +0100)]
MacGui: upgrade Sparkle to version 1.21.3

(cherry picked from commit 21fd957bb57782db35243d5f44e45e52fd595e4b)

5 years agocontrib: Update bzip2 upstream url.
Bradley Sepos [Thu, 21 Feb 2019 16:14:32 +0000 (11:14 -0500)]
contrib: Update bzip2 upstream url.

The previous url is gone.

(cherry picked from commit a48f72e0b974924053c58e09b125ba4034ca4956)

5 years agoWinGui: Bump Version to 1.2.2
sr55 [Wed, 20 Feb 2019 20:30:48 +0000 (20:30 +0000)]
WinGui: Bump Version to 1.2.2

5 years agoWinGui: Fix summary tab delayed refresh. Fixes #1914
sr55 [Wed, 20 Feb 2019 20:28:47 +0000 (20:28 +0000)]
WinGui: Fix summary tab delayed refresh. Fixes #1914

5 years agoWinGui: Fix a crash for new installs or users upgrading from older versions. Fixes...
sr55 [Tue, 19 Feb 2019 21:56:10 +0000 (21:56 +0000)]
WinGui: Fix a crash for new installs or users upgrading from older versions. Fixes #1916

5 years agoWinGui: Undo some debugging code. 1.2.1
sr55 [Sun, 17 Feb 2019 17:13:41 +0000 (17:13 +0000)]
WinGui: Undo some debugging code.

5 years agoWinGui: Backout Handling of AccessViolations. Makes the hardware handling issue worse.
sr55 [Sun, 17 Feb 2019 17:10:28 +0000 (17:10 +0000)]
WinGui: Backout Handling of AccessViolations. Makes the hardware handling issue worse.

5 years agoWinGui: Attempt to fix the the exception handling when AccessViolations occur.
sr55 [Sat, 16 Feb 2019 21:21:54 +0000 (21:21 +0000)]
WinGui: Attempt to fix the the exception handling when AccessViolations occur.

5 years agoWinGui: Add HandleProcessCorruptedStateExceptions around Init.
sr55 [Sat, 16 Feb 2019 18:04:49 +0000 (18:04 +0000)]
WinGui: Add HandleProcessCorruptedStateExceptions around Init.

5 years agoMacGui: fix documentation urls to point to the right version of the docs.
Damiano Galassi [Sat, 16 Feb 2019 12:51:27 +0000 (13:51 +0100)]
MacGui: fix documentation urls to point to the right version of the docs.

5 years agoNEWS Updates and corrections
sr55 [Sat, 16 Feb 2019 12:25:08 +0000 (12:25 +0000)]
NEWS Updates and corrections

5 years agometa: Update NEWS.markdown for 1.2.1 release.
Bradley Sepos [Sat, 16 Feb 2019 00:31:35 +0000 (19:31 -0500)]
meta: Update NEWS.markdown for 1.2.1 release.

(cherry picked from commit 7c4b319f54271e18a72c5849c67d28163d46801c)

5 years agolibhb: enable SWS_CS_BT2020 matrix.
Damiano Galassi [Thu, 14 Feb 2019 13:22:58 +0000 (14:22 +0100)]
libhb: enable SWS_CS_BT2020 matrix.

(cherry picked from commit 54140f90ecb0e9e2ccb312bde22e64133518ed9b)

5 years agoCLI: fix initialization of audio bitrate override
John Stebbins [Thu, 14 Feb 2019 18:15:17 +0000 (11:15 -0700)]
CLI: fix initialization of audio bitrate override

(cherry picked from commit a058133585c9672d5737fbdda355c9c562e8c289)

5 years agodecavcodec: fix setting up AVCodecContext extradata
John Stebbins [Thu, 14 Feb 2019 18:00:30 +0000 (11:00 -0700)]
decavcodec: fix setting up AVCodecContext extradata

It was getting set up, but then deleted right after in
avcodec_free_context.

(cherry picked from commit c2a2f89974365db1314752c6a2f48ff32227feb3)

5 years agoCLI: interpret --all-audio as implicit list of all tracks
John Stebbins [Wed, 13 Feb 2019 17:00:12 +0000 (10:00 -0700)]
CLI: interpret --all-audio as implicit list of all tracks

--all-audio was setting up the preset to apply each audio encoder in the
preset to each source track. And it was adding new entries in the presets
audio encoder list for any audio command line overrides.  This results in very
unintuitive behavior.

(cherry picked from commit e1e0e211759ce1413252b168d2d01479fed9f579)

5 years agoCLI: fix error in setting up audio preset values
John Stebbins [Wed, 13 Feb 2019 16:59:43 +0000 (09:59 -0700)]
CLI: fix error in setting up audio preset values

duplication of "last" audio setting was done wrong and resulted in NULL
settings values

(cherry picked from commit 972aef5ea17869b7a36c48ffd54d68e1c6d975b5)

5 years agoflatpak: fix hb logo file
John Stebbins [Tue, 12 Feb 2019 20:49:49 +0000 (13:49 -0700)]
flatpak: fix hb logo file

Reduce the "resolution" of the SVG because flatpak-builder is anal

(cherry picked from commit 7cc7d562b6c67c875b684a48451910af37b3fda7)

5 years agoLinGui: sanitize preset export filename
John Stebbins [Tue, 12 Feb 2019 14:22:45 +0000 (07:22 -0700)]
LinGui: sanitize preset export filename

Removes illegal characters that may be in the preset name from the
suggested filename and trims leading and trailing white space.

(cherry picked from commit f7804e7ff4cd81986e09509e74e06e735c68408e)

5 years agoMerge WinGui: Update Min Title Scan label
sr55 [Thu, 24 Jan 2019 21:47:40 +0000 (21:47 +0000)]
Merge WinGui: Update Min Title Scan label

5 years agoWinGui: Fix instance handling in Libencode.
sr55 [Sun, 3 Feb 2019 22:15:53 +0000 (22:15 +0000)]
WinGui: Fix instance handling in Libencode.

5 years agoWinGui: Make the disposal of services more aggressive. May Fix or help in #1851
sr55 [Sat, 2 Feb 2019 10:56:34 +0000 (10:56 +0000)]
WinGui: Make the disposal of services more aggressive. May Fix or help in #1851

5 years agoWinGui: Remove hard coded ordering on the in-line presets selector.
sr55 [Mon, 11 Feb 2019 20:08:50 +0000 (20:08 +0000)]
WinGui: Remove hard coded ordering on the in-line presets selector.

5 years agoMacGui: Update min title duration preferences label.
Damiano Galassi [Tue, 22 Jan 2019 15:26:06 +0000 (16:26 +0100)]
MacGui: Update min title duration preferences label.

(cherry picked from commit c6639d32c6ca893a2893063428f57858ecd86dd7)

5 years agoscan: only apply min duration filter to BD and DVD
John Stebbins [Sat, 19 Jan 2019 00:40:14 +0000 (16:40 -0800)]
scan: only apply min duration filter to BD and DVD

Fixes https://github.com/HandBrake/HandBrake/issues/1590

(cherry picked from commit a4f27a449479afbd69b96bb52f36ddd5a00b8e04)

5 years agoconfigure: fix conftest turds
John Stebbins [Sat, 19 Jan 2019 19:12:07 +0000 (11:12 -0800)]
configure: fix conftest turds

(cherry picked from commit 8c7c73ca5fdc8ba448b5074326454d0dad9067f7)

5 years agoconfigure: fix LDProbe cleanup on mingw
John Stebbins [Sun, 6 Jan 2019 20:10:30 +0000 (12:10 -0800)]
configure: fix LDProbe cleanup on mingw

LDProbe tries to delete conftest, but should delete conftest.exe on
mingw.  So delete *both* in a try-catch block.

(cherry picked from commit b09c99829c9412b05888eb7ac017d9b26166396c)

5 years agoFix return value of hb_blobal_init_no_hardware
John Stebbins [Mon, 11 Feb 2019 14:30:23 +0000 (07:30 -0700)]
Fix return value of hb_blobal_init_no_hardware

control reaches end of non-void function

(cherry picked from commit 9a24efca579f841bc84b345969bd4582dbee24f8)

5 years agoLinGui: fix display of special characters in preset name
John Stebbins [Mon, 11 Feb 2019 16:26:53 +0000 (09:26 -0700)]
LinGui: fix display of special characters in preset name

(cherry picked from commit e3f179af5ee3cf48bc8cc2cbcaa1c5d14f1b294a)

5 years agoWinGui: Merging no_hardware fallback change over.
sr55 [Mon, 11 Feb 2019 14:25:46 +0000 (14:25 +0000)]
WinGui: Merging no_hardware fallback change over.

5 years agolibhb: Add a hb_global_init_no_hardware that disables all the hardware encoder/decode...
sr55 [Sat, 9 Feb 2019 18:12:44 +0000 (18:12 +0000)]
libhb: Add a hb_global_init_no_hardware that disables all the hardware encoder/decode init and check code. For users where drivers or other system issues prevent HandBrake from loading.

5 years agogtk: Link to libbcrypt on mingw-w64
mwayne [Fri, 25 Jan 2019 21:47:54 +0000 (22:47 +0100)]
gtk: Link to libbcrypt on mingw-w64

(cherry picked from commit b4c12bb2fa6f93514d221b6ab21fe0bf3dae9de8)

5 years agonvenc_common: fix compiler warning
John Stebbins [Mon, 11 Feb 2019 15:15:18 +0000 (08:15 -0700)]
nvenc_common: fix compiler warning

(cherry picked from commit 8a6542db8b53aa2a6572ecd94e4f2a35285becc4)

5 years agoencavcodec: fix potential use of uninitialized variable
John Stebbins [Mon, 11 Feb 2019 15:12:53 +0000 (08:12 -0700)]
encavcodec: fix potential use of uninitialized variable

(cherry picked from commit 0dfaca7611915764f4693dba189fc02d1bbf45fa)

5 years agodvdnav: fix potentially unterminated string
John Stebbins [Mon, 11 Feb 2019 15:08:21 +0000 (08:08 -0700)]
dvdnav: fix potentially unterminated string

(cherry picked from commit a54f09a9f1a292ac3b9e6699ea09d8e0239e6f7b)

5 years agoscan: fix potential buffer overflow in sprintf
John Stebbins [Mon, 11 Feb 2019 15:04:24 +0000 (08:04 -0700)]
scan: fix potential buffer overflow in sprintf

Use snprintf

(cherry picked from commit 67299770c013120ffdc4d86daffc9c48691ab802)

5 years agodecavcodec: fix error when ffmpeg parser changes the codec_id
John Stebbins [Sun, 10 Feb 2019 20:04:21 +0000 (13:04 -0700)]
decavcodec: fix error when ffmpeg parser changes the codec_id

The ffmpeg mpeg2 parser changes AVCodecContext.codec_id on the fly based
on what it parses. Normally this results in correct switching of decoders
internally in ffmpeg. Due to some unfortunate ordering of how we initialize
things when HandBrake is using our own demuxers, avcodec_open gets called
with the original AVCodec and the AVCodecContext.codec_id that was changed
by the parser resulting in an error.

Further explanation... When using our own demuxers, there are some codecs that
we have to parse out the extradata for _prior_ to calling avcodec_open.
avcodec_open fails if extradata isn't initialized for these codecs prior to
the call. To initialize the extradata, we use parser->parser->split. I.e. the
parser must be initialized and used prior to calling avcodec_open. When
avcodec_open is called, it is using the original AVCodec that was used with
avcodec_alloc_context3 (it will fail if AVCodec is not the same between
avcodec_alloc_context3 and avccodec_open). The call to avcodec_open fails with
"Codec type or id mismatches" since AVCodecContext.codec_id no longer matches
AVCodec.id due to the parser changing the codec_id.

The solution is to reset AVCodec and reallocate the context when we
detect that the parser has changed codec_id on us.

(cherry picked from commit 28934d9f0ba1a0e4adc76bcf90a3762429169ea8)

5 years agodvd: Add support for MPEG-1 on DVD
John Stebbins [Sun, 10 Feb 2019 19:08:53 +0000 (12:08 -0700)]
dvd: Add support for MPEG-1 on DVD

Use video attributes from IFO file to set video stream type.

May fix https://github.com/HandBrake/HandBrake/issues/1880

(cherry picked from commit 58a15a0dc83afb10dcd48eb428b707e268e320e8)

5 years agostream: Improve probing of unknown streams
John Stebbins [Sun, 10 Feb 2019 18:34:33 +0000 (11:34 -0700)]
stream: Improve probing of unknown streams

Fixes detection of MPEG-1 in program streams

(cherry picked from commit fd03d81a0c9de230cfc0f8040ab1b96cb2a62b81)

5 years agogtk: Fix minor cross compile issue in callbacks
mwayne [Thu, 3 Jan 2019 10:15:58 +0000 (11:15 +0100)]
gtk: Fix minor cross compile issue in callbacks

Fix undeclared variable introduced in commit 826d1a7fb862c292195d766f72c51dce120b47bd

(cherry picked from commit f2075c0522ab11b1a67a65b3bdc4e9ff10d5635a)

5 years agolibhb: do not set HB_STATE_WORKDONE before all the work threads are closed.
Damiano Galassi [Sun, 3 Feb 2019 07:28:01 +0000 (08:28 +0100)]
libhb: do not set HB_STATE_WORKDONE before all the work threads are closed.

(cherry picked from commit a8ef28a582283d34fda6dd81f4be60f810e0865d)

5 years agoMacGui: made the preview hud a bit larger.
Damiano Galassi [Wed, 30 Jan 2019 08:55:12 +0000 (09:55 +0100)]
MacGui: made the preview hud a bit larger.

(cherry picked from commit d1a9db0b1eb385f221e6fed7ffd0218a3ed71335)

5 years agoWinGui: Fix instance handling in Libencode.
sr55 [Sun, 3 Feb 2019 22:15:53 +0000 (22:15 +0000)]
WinGui: Fix instance handling in Libencode.

5 years agoWinGui: Make the disposal of services more aggressive. May Fix or help in #1851
sr55 [Sat, 2 Feb 2019 10:56:34 +0000 (10:56 +0000)]
WinGui: Make the disposal of services more aggressive. May Fix or help in #1851

5 years agoWinGui: Remove inline Destination check. It's more annoying than useful. Fixes #1857
sr55 [Wed, 30 Jan 2019 18:56:35 +0000 (18:56 +0000)]
WinGui: Remove inline Destination check. It's more annoying than useful. Fixes #1857

5 years agoWinGui: Adding some additional validation to the destination box.
sr55 [Fri, 25 Jan 2019 20:35:43 +0000 (20:35 +0000)]
WinGui: Adding some additional validation to the destination box.

5 years agolapsharp: mirror image data into stride region
John Stebbins [Sat, 19 Jan 2019 18:41:59 +0000 (10:41 -0800)]
lapsharp: mirror image data into stride region

Adds a function to mirror image data into stride region. Mirroring the
data results in a less visible artefact down the right edge of the
image. Blanking resulted in a dark edge artefact.

Keeps function that blanks stride region and improves it's speed,
although it's not currently used.

(cherry picked from commit 45e783372b35fe39f8ae7f488dfed7796793665e)

5 years agolapsharp: blank frame buffer stride region
John Stebbins [Fri, 18 Jan 2019 22:27:14 +0000 (14:27 -0800)]
lapsharp: blank frame buffer stride region

Zero is not black.  Stride is used in computations and is assumed black.

Fixes https://github.com/HandBrake/HandBrake/issues/1751

(cherry picked from commit 563958843beb27b410df19a020e35e51afa298a0)

5 years agolibhb: Remove some NLMeans TODO comments.
Bradley Sepos [Wed, 16 Jan 2019 08:34:27 +0000 (03:34 -0500)]
libhb: Remove some NLMeans TODO comments.

NLMeans has used frame threading for years, so SIMD aside, these areas are sufficiently parallelized overall.

(cherry picked from commit 96e63ecf50d0bafd273ea17ff3f3bbf49ff42f7b)

5 years agolibhb: Reduce the number of threads NLMeans uses with many logical cores.
Bradley Sepos [Wed, 16 Jan 2019 06:38:37 +0000 (01:38 -0500)]
libhb: Reduce the number of threads NLMeans uses with many logical cores.

Too many threads increases CPU cache pressure, reducing performance.

(cherry picked from commit a7e9979c4af79b97cbc57a77ff96223a24731d0b)

5 years agocontrib: Update x265 cross compilation directives.
Bradley Sepos [Tue, 8 Jan 2019 02:01:30 +0000 (21:01 -0500)]
contrib: Update x265 cross compilation directives.

Necessary for cross compiling with gcc 8.

(cherry picked from commit 4f38d4782fd9d192cc3c5d3cce691990877ca64d)

5 years agoencavcodec: Make VCE h.265 encoder emit an IDR for every GOP
John Stebbins [Thu, 17 Jan 2019 16:51:48 +0000 (08:51 -0800)]
encavcodec: Make VCE h.265 encoder emit an IDR for every GOP

(cherry picked from commit 96285fe66cbd4e03fcb88ac89245da8342c9292c)

5 years agowork: fix videotoolbox encoder logging
John Stebbins [Wed, 16 Jan 2019 17:18:08 +0000 (09:18 -0800)]
work: fix videotoolbox encoder logging

Log h.264 profile and level, and h.265 profile

(cherry picked from commit 1aa1278c0003fa8fee7b13b83ea81a1a851b10a2)

5 years agoencavcodec: Fix dts timestamps in VT h.265 encoding
John Stebbins [Wed, 16 Jan 2019 16:49:47 +0000 (08:49 -0800)]
encavcodec: Fix dts timestamps in VT h.265 encoding

The VT h.265 encoder appears to enable b-pyramid, but doesn't expose any
method to modify the setting or query for its value.  So we'll just
assume it's always on whenever there are b-frames.

Fixes https://github.com/HandBrake/HandBrake/issues/1689

(cherry picked from commit 271ad3952c54f46c0b2d6785a0a2f0830ae5c58e)

5 years agoencavcodec: set frame.key_frame for AMD VCE encoder
John Stebbins [Tue, 15 Jan 2019 00:45:27 +0000 (16:45 -0800)]
encavcodec: set frame.key_frame for AMD VCE encoder

AMD VCE encoder needs this in order to force an IDR rather than an I
frame.

Fixes https://github.com/HandBrake/HandBrake/issues/1762

(cherry picked from commit 9e6f310208ff7df7345724c87ca8ef84fdaa7270)

5 years agoffmpeg: enable pict_type setting in AMD VCE
John Stebbins [Tue, 15 Jan 2019 00:40:17 +0000 (16:40 -0800)]
ffmpeg: enable pict_type setting in AMD VCE

This is required by HandBrake in order to place IDR frames
at chapter boundaries

(cherry picked from commit f0af7632557face2d516829386e01bf0c7a6c549)

5 years agoWinGui: Fix preset updates. Built in presets should now automatically update. It...
sr55 [Fri, 18 Jan 2019 20:14:44 +0000 (20:14 +0000)]
WinGui: Fix preset updates. Built in presets should now automatically update. It will try and preserve old prests but this may not always be possible.

5 years agomuxavformat: use better approximation for duration of last video frame
John Stebbins [Wed, 16 Jan 2019 18:25:47 +0000 (10:25 -0800)]
muxavformat: use better approximation for duration of last video frame

Fixes https://github.com/HandBrake/HandBrake/issues/1802

(cherry picked from commit 71e73fec08f414574c74dd0b482c516faad2fbfb)

5 years agoWinGui: Improve the quality of text rendering on the installer on high DPI displays.
sr55 [Fri, 11 Jan 2019 21:59:32 +0000 (21:59 +0000)]
WinGui: Improve the quality of text rendering on the installer on high DPI displays.

5 years agoWinGui: Improvements to the installer. Fixed the issue where the uninstaller could...
sr55 [Fri, 11 Jan 2019 21:26:10 +0000 (21:26 +0000)]
WinGui: Improvements to the installer.  Fixed the issue where the uninstaller could appear behind the installer.  Updated the Background Image on the installer to the project logo.

5 years agocontrib: Revert libvpx clang patch added in e3817b13cfebce6f7542be6761bd9fa8b51e1005.
Bradley Sepos [Tue, 8 Jan 2019 13:46:43 +0000 (08:46 -0500)]
contrib: Revert libvpx clang patch added in e3817b13cfebce6f7542be6761bd9fa8b51e1005.

I must have forgotten to `make libvpx.xclean` before building.

5 years agocontrib: Fix potential assembly issues with libvpx and AVX-512.
Bradley Sepos [Tue, 8 Jan 2019 00:08:48 +0000 (19:08 -0500)]
contrib: Fix potential assembly issues with libvpx and AVX-512.

Fixes cross compilation with gcc 8 and where clang is acting weird.

5 years agodecavcodec: fix more potential uses of uninitialized variables
Tim Walker [Tue, 8 Jan 2019 17:57:40 +0000 (18:57 +0100)]
decavcodec: fix more potential uses of uninitialized variables

Fixes a crash I experienced locally following 76f14dad963db46961ce3d425a102ac3d898ce10

Inspired by 3c95342a8cdf5b3b03d8b5e94ec099b0bc6a4f35

5 years agoMacGui: try to fix an hang on Sierra.
Damiano Galassi [Sat, 5 Jan 2019 08:53:16 +0000 (09:53 +0100)]
MacGui: try to fix an hang on Sierra.

5 years agofix missing frames when transcoding m2ts files
John Stebbins [Mon, 7 Jan 2019 22:30:05 +0000 (15:30 -0700)]
fix missing frames when transcoding m2ts files

Fixes https://github.com/HandBrake/HandBrake/issues/1611

(cherry picked from commit 76f14dad963db46961ce3d425a102ac3d898ce10)

5 years agoscripts: Update to mingw-w64-build 4.1.1.
Bradley Sepos [Mon, 7 Jan 2019 21:43:15 +0000 (16:43 -0500)]
scripts: Update to mingw-w64-build 4.1.1.

Improves error reporting and allows use of sha256sum on systems without shasum.

(cherry picked from commit 58ed6c8a448ab61f55fcba4df03718346bfb81d4)

5 years agodecavcodec: fix potential use of uninitialized variables
John Stebbins [Sat, 5 Jan 2019 18:58:38 +0000 (11:58 -0700)]
decavcodec: fix potential use of uninitialized variables

(cherry picked from commit 3c95342a8cdf5b3b03d8b5e94ec099b0bc6a4f35)

5 years agoflatpak: fix access to gvfs mounted filesystems
John Stebbins [Sat, 5 Jan 2019 15:56:39 +0000 (08:56 -0700)]
flatpak: fix access to gvfs mounted filesystems

An additional access permission is needed to access the gvfs mount
point.

For the record, the "Right" (TM) way to do this is to use
GtkFileChooserNative dialog which will automatically use the flatpak
file chooser portal to access files.  But this portal currently is
missing features that would cripple HandBrake.  These features are:

1. Folder selection.  We require this for destination selection and for
batch processing.
2. Set current highlighted file in file chooser browser.  Without this,
a user processing a series of videos that are all in the same foder has
to navigate from the default "Recent files" selection to the folder
where their files are for each file.

Also note that GtkFileChooserNative transparently falls back to a
regular file chooser when the action requested is not supported.  So
sometimes the user would have access to remote filesystems, and
sometimes not with no obvious reason for the difference.  Not a good
user experience.

(cherry picked from commit d4761a9f2f07fe02935089356fd847530a8eec57)

5 years agoWinGui: Fix a potential crash in the OptionsTabNameConverter. Fixes #1784
sr55 [Fri, 4 Jan 2019 21:37:11 +0000 (21:37 +0000)]
WinGui: Fix a potential crash in the OptionsTabNameConverter.  Fixes #1784

5 years agoWinGui: Remove support for loading legacy settings files AND add VideoScaler to the...
sr55 [Thu, 3 Jan 2019 19:38:46 +0000 (19:38 +0000)]
WinGui: Remove support for loading legacy settings files AND add VideoScaler to the reset legacy settings list to avoid crash issues. Fixes #1782

5 years agoWinGui: Add CPU info back into the log header as it's not always available in the...
sr55 [Tue, 1 Jan 2019 16:50:12 +0000 (16:50 +0000)]
WinGui: Add CPU info back into the log header as it's not always available in the log body.

5 years agoWinGui: Fix restriction on the picture settings tab after setting a preset. It...
sr55 [Tue, 1 Jan 2019 15:24:46 +0000 (15:24 +0000)]
WinGui:  Fix restriction on the picture settings tab after setting a preset.    It will use whatever is smaller.  Source, or Preset   #1773

5 years agosetup: don't require the user to agree to GPL-3 to complete setup.
Diego Elio Pettenò [Mon, 31 Dec 2018 16:22:25 +0000 (16:22 +0000)]
setup: don't require the user to agree to GPL-3 to complete setup.

As @foone complains on twitter often enough, this should not require
agreement for use since GPL is not an EULA.

The definitions are inspired from the similar NSIS setup file from VLC.

5 years agoWinGui: Fix erroneous log message error about invalid x264 preset when not using...
sr55 [Tue, 1 Jan 2019 15:15:09 +0000 (15:15 +0000)]
WinGui: Fix erroneous log message error about invalid x264 preset when not using an x264 encoder.

5 years agoUpdate copyright dates to 2019.
Bradley Sepos [Tue, 1 Jan 2019 00:00:00 +0000 (00:00 +0000)]
Update copyright dates to 2019.

(cherry picked from commit 5a65df0d5838a3c8896ca0f5ce077cdf051358dc)

5 years agoWinGui: Fix Detelecine tooltip. Fixes #1760
sr55 [Sun, 30 Dec 2018 21:30:30 +0000 (21:30 +0000)]
WinGui: Fix Detelecine tooltip. Fixes #1760

5 years agoWinGui: Fix issues with "Any" language selection with the "First" option used. ...
sr55 [Sun, 30 Dec 2018 21:25:51 +0000 (21:25 +0000)]
WinGui:  Fix issues with "Any" language selection with the "First" option used.  For both Audio and Subtitle tabs, this should now only provide 1 track. Fixes #1735  and makes the behaviour consistent with the Mac/Linux GUI's

5 years agoWinGui: Fix an issue where picture settings (crop and anamorphic) are not correctly...
sr55 [Sun, 30 Dec 2018 19:58:13 +0000 (19:58 +0000)]
WinGui: Fix an issue where picture settings (crop and anamorphic) are not correctly restored on queue edit. Fixes #1771

5 years agoChange the Transifex link to include /public which doesn't require a login.
Scott [Sun, 30 Dec 2018 13:08:59 +0000 (13:08 +0000)]
Change the Transifex link to include /public which doesn't require a login.

5 years agoUpdate the mfx dispatch library to the head revision a7d95e5 to fix issues with newer...
sr55 [Sun, 30 Dec 2018 16:42:22 +0000 (16:42 +0000)]
Update the mfx dispatch library to the head revision a7d95e5 to fix issues with newer Intel Drivers.

5 years agoWinGui: Restore the options dropdown on the legacy queue design.
sr55 [Fri, 28 Dec 2018 21:11:33 +0000 (21:11 +0000)]
WinGui: Restore the options dropdown on the legacy queue design.

5 years agoWinGui: Tighten up the UI for marginal displays and move the "Back" button on the...
sr55 [Fri, 28 Dec 2018 20:55:08 +0000 (20:55 +0000)]
WinGui: Tighten up the UI for marginal displays and move the "Back" button on the options pane near the top.

5 years agoavfilter: fix yadif options
John Stebbins [Fri, 28 Dec 2018 17:24:54 +0000 (10:24 -0700)]
avfilter: fix yadif options

'mode' still worked, but I've changed to use mnemonic string values.
'parity' still worked, but I've changed to use mnemonic string values.
'auto' failed, was replaced by 'deint=deinterlaced'.

Fixes https://forum.handbrake.fr/viewtopic.php?f=6&t=38564

(cherry picked from commit 2965a5c02901e8ac1e4c5f6e637996c8576b2e7f)

5 years agoencavcodecaudio: fix AAC 5.1 encoding
John Stebbins [Thu, 27 Dec 2018 19:04:00 +0000 (12:04 -0700)]
encavcodecaudio: fix AAC 5.1 encoding

Use 5.1 back for AAC because 5.1 side uses a not-so-universally
supported feature to signal the non-standard layout

Fixes https://github.com/HandBrake/HandBrake/issues/1744

(cherry picked from commit bd4dc1dde6948389b0b7d98e501791a5ec6ec8c7)

5 years agoWinGui: Bump version to 1.2.1
sr55 [Wed, 26 Dec 2018 16:31:44 +0000 (16:31 +0000)]
WinGui: Bump version to 1.2.1

5 years agolibhb: Remove duplicate lines added to param.c in 822ce4df33f7550078688f86a68460bdfb4...
Bradley Sepos [Wed, 26 Dec 2018 02:08:50 +0000 (21:08 -0500)]
libhb: Remove duplicate lines added to param.c in 822ce4df33f7550078688f86a68460bdfb4d2c90.

#1754.

(cherry picked from commit 9508b5483739301dad112fd074b44362e0b34d2b)

5 years agoFix macOS codesign script.
Damiano Galassi [Sat, 22 Dec 2018 07:41:28 +0000 (08:41 +0100)]
Fix macOS codesign script.

(cherry picked from commit 25215bfa5a6d185bbc99a5d7e37753c623d0072a)

5 years agoMacGui: fix file extension when setting a preset.
Damiano Galassi [Sat, 22 Dec 2018 06:52:46 +0000 (07:52 +0100)]
MacGui: fix file extension when setting a preset.

(cherry picked from commit 84d552b7bb44bf65c680deeb6f40e91453398248)

5 years agoFix rotation of video flagged with 0 rotation
John Stebbins [Tue, 25 Dec 2018 16:23:38 +0000 (09:23 -0700)]
Fix rotation of video flagged with 0 rotation

Only breaks in cases that video is *explicitely* flagged with 0 rotation.

Fixes https://github.com/HandBrake/HandBrake/issues/1750

(cherry picked from commit a482041565c5ce3f6756b50062a3226505589e45)

5 years agoLinGui: bump ubuntu version number epoch
John Stebbins [Sat, 22 Dec 2018 18:03:17 +0000 (10:03 -0800)]
LinGui: bump ubuntu version number epoch

Overrides a bad version number for ubuntu cosmic in launchpad

(cherry picked from commit cd289c78397e5c207fa63c23e7a626e00f8ca88d)

5 years agoWinGui: Where the system language isn't English, allow English language to be used... 1.2.0
sr55 [Sun, 16 Dec 2018 17:16:51 +0000 (17:16 +0000)]
WinGui: Where the system language isn't English, allow English language to be used in GUI.