John Stebbins [Wed, 6 Jun 2018 23:20:34 +0000 (16:20 -0700)]
scripts: add script for creating flatpak manifests
This script can generate manifests that are suitable for submitting to
flathub for publishing to their repository. It can also be used for
generating manifests suitable for building local flatpak bundles and is
used during 'make pkg.create.flatpak'
Damiano Galassi [Wed, 6 Jun 2018 10:36:59 +0000 (12:36 +0200)]
MacGui: make it possible to resize down the "add titles to queue" toolbar button icon. It won't get as small as the others toolbar icon, but it's as good as it can get now. Fixes #1318
John Stebbins [Mon, 4 Jun 2018 18:04:11 +0000 (11:04 -0700)]
decavcodec: fix issues with audio that has no explicit channel_layout
ffmpeg doesn't set a default channel layout for audio that has no
explicit layout (e.g. pcm_216le). So we need to guess it from the
number of channels.
Fixes "no audio" in https://github.com/HandBrake/HandBrake/issues/1387
John Stebbins [Sun, 3 Jun 2018 21:19:46 +0000 (14:19 -0700)]
libvpx: fix vpx.pc pkg-config file for static builds (#1385)
The generated vpx.pc file results in undefined symbols during ffmpeg's
configure tests. libpthread is not getting added to the link line as
required. The vpx.pc file needs to include -lpthread in the Libs instead
of Libs.private when generating only a static library.
John Stebbins [Sat, 2 Jun 2018 18:05:48 +0000 (11:05 -0700)]
opus: fix opus.pc pkg-config file for static builds (#1380)
The generated opus.pc file results in undefined symbols during ffmpeg's
configure tests. libm is not getting added to the link line as
required. The opus.pc file needs to include -lm in the Libs instead of
Libs.private when generating *only* a static library.
Frederick Ding [Thu, 31 May 2018 07:35:03 +0000 (03:35 -0400)]
Update WinGUI build script: allow SignTool.exe location to be specified and assume x64 (#1376)
* WinGUI: fix `SignToolLocation` typos in build.xml
Previously, a mismatch between the condition (which checked for an empty `SignToolLocation`) and the action it took (by setting `SighToolLocation`) made it difficult to override the actual location of `SignTool.exe`. The bug was introduced in HandBrake/HandBrake@d375071be1158deb73ccb1d262310f15f231eca9
* WinGUI: Assume x64 platform in examples
Since 32-bit Windows is no longer supported (HandBrake/HandBrake@ecbd10efbdf286b9a5248fd0a870036cd4437360), the comment at the top of `build.xml` for WinGUI shouldn't need a platform property anymore. `build.xml` is already set to assume x64 as the default platform.
* WinGUI: minor typo fixes
Just a few aesthetic changes with no effect on functionality
John Stebbins [Wed, 30 May 2018 22:00:04 +0000 (15:00 -0700)]
scan: rationalize ffmpeg codec/profile names
ffmpeg is inconsistent in the format of returned profile names.
Sometimes the profile name includes the codec name and sometimes it does
not. So search for the codec name in the profile name and add codec
name if it's not there. Ugh!
John Stebbins [Wed, 30 May 2018 16:21:56 +0000 (09:21 -0700)]
encx264: fix encoding of very short duration frames
We had a hash of limited size where we stored frame durations in
encx264. This hash has not been necessary since we moved to using
libavformat for muxing. Since the limited size of the hash put
constraints on how short frame durations could be, I've eliminated it.
This means that after the encoder, hb_buffer_t s.stop and s.duration are
no longer valid. But since they are not used during muxing, this is not
a problem.
John Stebbins [Tue, 29 May 2018 21:27:13 +0000 (14:27 -0700)]
LinGui: remove Ubuntu xenial and trusty from nightly builds
Neither of these support a recent enough version of nasm to build x265
with assembly optimizations. Running without assembly optimizations
isn't acceptable, so just stop building these releases.
Sven Gothel [Fri, 12 Jan 2018 00:53:01 +0000 (01:53 +0100)]
FFMPEG: Use avcodec_free_context(..) instead of deprecated leaking avcodec_close(..)
Hence rename hb_avcodec_close -> hb_avcodec_free_context and pass the required ptr-ptr.
avcodec_free_context(..) ensures releasing of all resources attached to the context.
Sven Gothel [Thu, 28 Dec 2017 03:28:26 +0000 (04:28 +0100)]
Using AV_CODEC_ID_SUBRIP instead of AV_CODEC_ID_SRT (libav->ffmpeg)
This fixes issue https://trac.ffmpeg.org/ticket/6304
See https://github.com/HandBrake/HandBrake/pull/981#issuecomment-347364763
See https://github.com/HandBrake/HandBrake/issues/974#issuecomment-353986772
Sven Gothel [Mon, 25 Dec 2017 22:53:54 +0000 (23:53 +0100)]
FFMPEG #974: Use latest FFMPEG 3.4.1 (2/2)
Patch 2/2 for https://github.com/HandBrake/HandBrake/issues/974
moving to FFMPEG 3.4.1 from LIBAV 12.2.
All patches have been moved to subfolder 'old' since they do not apply cleanly anymore.
Work has to be performed to validate whether patches are still required.
sr55 [Thu, 24 May 2018 19:59:08 +0000 (20:59 +0100)]
WinGui: Add support for dropping .srt files onto the main window. When you do this, the Subtitles tab is activated and a subtitle track for each file dropped will be added.