John Stebbins [Fri, 15 Jun 2018 21:51:59 +0000 (14:51 -0700)]
muxavformat: use alternate API to initialize out context
avformat_alloc_output_context2 does several things for us that we were
doing in separate steps. It also allocates AVFormatContext.url for us
so we do not have a case where we alloc something that ffmpeg frees.
John Stebbins [Fri, 15 Jun 2018 20:16:00 +0000 (13:16 -0700)]
muxavformat: fix crash on windows
We allocate AVFormatContext.url, but libavformat frees it. So we must
use an allocation function that is compatible with the free function
used by libavformat.
sr55 [Thu, 14 Jun 2018 16:00:52 +0000 (17:00 +0100)]
WinGui: Add HintPath to newtonsoft json in the worker process project. It shouldn't be needed but some VS installs appear to have issues without it. Fixes #1420
John Stebbins [Wed, 13 Jun 2018 22:07:25 +0000 (15:07 -0700)]
Fix PGS subtitle decoding...
...And add a timebase to every stream.
ffmpeg's subtitle decoder internally converts the packet pts to
AV_TIME_BASE units based on AVCodecContext.pkt_timebase. If
pkt_timebase is not set, the PGS subtitle decoder only returns
AV_NOPTS_VALUE for timestamps. So setting pkt_timebase in decpgssub.c
fixes PGS subtitle decoding.
Confusingly, the subtitle decoder does not convert the pts *back* to the
input timebase, but instead leaves them in AV_TIME_BASE units upon
returning a decoded subtitle.
To get a head start on fixing any other such issues that might arrise, I
have also set pkt_timebase in all other avcodec decoders.
John Stebbins [Wed, 13 Jun 2018 15:01:55 +0000 (08:01 -0700)]
muxavformat: fix use of deprecated AVFormat.filename
The new way is AVFormat.url. AVFormat.filename had lenght limitations
that url does not since it is allocated by the caller (and freed by
libavformat).
John Stebbins [Tue, 12 Jun 2018 19:09:59 +0000 (12:09 -0700)]
LinGui: change language lists from GtkListBox to GtkTreeView
The GtkTreeView is more flexible and more capable. Languages can be
searched for in the GtkTreeView by focusing the widget and typing what
you want to find. Double clicking an item in the list will add or
remove it from the "selected" languages list in audio and subtitle track
selection settings.
John Stebbins [Mon, 11 Jun 2018 22:15:01 +0000 (15:15 -0700)]
LinGui: add search function to language popups
The language list is long and displays native names while sorted by
English names, so it is difficult to find a language. This adds the
ability to "search" for a language based on it's initial character.
Typing a character will jump to the next entry that starts with that
character in its native name.
Bradley Sepos [Mon, 11 Jun 2018 01:22:43 +0000 (21:22 -0400)]
contrib: Add compatibility patches for libvpx.
The avx-512 patch should avoid breakage with wonky compilers and older systems such as macOS <= 10.11. The pthread detection patch can be applied more generally but really is a safety check targeting win32.
John Stebbins [Fri, 8 Jun 2018 17:47:03 +0000 (10:47 -0700)]
flatpak: add --filesystem=host to sandbox permissions
GtkFileChooserNative is required in order to use the document portal.
Using this file chooser will require significant rework of source
selection, so enable host filesystem access until I can do this.
The CLI will need host filesystem access anyway since it can't use the
document portal.
Damiano Galassi [Fri, 8 Jun 2018 14:59:25 +0000 (16:59 +0200)]
MacGui: set the minimum deployment target to 10.10. Remove Growl and use macOS standard notifications. Remove deprecated API usage and code that doesn't compile anymore (QTKit).
OARS https://hughsie.github.io/oars/ is a content description
system that allows software stores (such as GNOME Software) to
categorise and classify applications. Having the markup available
is a flathub requirement.
Nick Richards [Fri, 8 Jun 2018 14:41:47 +0000 (15:41 +0100)]
Add OARS metadata to appdata (#1397)
OARS https://hughsie.github.io/oars/ is a content description system that allows software stores (such as GNOME Software) to categorise and classify applications. Having the markup available is a flathub requirement.
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