]> granicus.if.org Git - handbrake/log
handbrake
6 years agoLinGui: simplify dest name selection
John Stebbins [Tue, 10 Jul 2018 19:36:48 +0000 (12:36 -0700)]
LinGui: simplify dest name selection

Removes cruft that wasn't realy used.

6 years agoMacGui: remove a bunch of unneeded compatibility code.
Damiano Galassi [Tue, 10 Jul 2018 18:06:09 +0000 (20:06 +0200)]
MacGui: remove a bunch of unneeded compatibility code.

6 years agoMacGui: made possible to localise more UI strings.
Damiano Galassi [Tue, 10 Jul 2018 15:13:19 +0000 (17:13 +0200)]
MacGui: made possible to localise more UI strings.

6 years agoflatpak: disable flatpak-builder cache
John Stebbins [Tue, 10 Jul 2018 04:22:17 +0000 (21:22 -0700)]
flatpak: disable flatpak-builder cache

It fails to rebuild things that need to be rebuilt

6 years agoVCE: Fix a typo that was preventing the VCE H.265 encoder from working.
sr55 [Mon, 9 Jul 2018 19:39:02 +0000 (20:39 +0100)]
VCE: Fix a typo that was preventing the VCE H.265 encoder from working.

6 years agoWinGui: Simplify the Deinterlace / Decomb / Interlace Detection Tab and associated...
sr55 [Sun, 8 Jul 2018 17:23:50 +0000 (18:23 +0100)]
WinGui:  Simplify the Deinterlace / Decomb / Interlace Detection Tab and associated code. Tweak the layout of the deinterlace controls to match the Mac/Linux UI's.   Pull Presets  from libhb.

6 years agoWinGui: Remove Unused OpenCL call.
sr55 [Sun, 8 Jul 2018 14:36:06 +0000 (15:36 +0100)]
WinGui: Remove Unused OpenCL call.

6 years agoWinGui: Tidy up some unused variables.
sr55 [Sun, 8 Jul 2018 13:19:27 +0000 (14:19 +0100)]
WinGui: Tidy up some unused variables.

6 years agoWinGui: Initial work to refactor the queue infrastructure to use the same JSON format...
sr55 [Sun, 8 Jul 2018 13:17:17 +0000 (14:17 +0100)]
WinGui: Initial work to refactor the queue infrastructure to use the same JSON format as the CLI + extensions.

6 years agoWinGui: Update the Encode Json Factory to produce human readable Json for audio and...
sr55 [Sat, 7 Jul 2018 14:20:55 +0000 (15:20 +0100)]
WinGui: Update the Encode Json Factory to produce human readable Json for audio and video encoders.

6 years agoWinGui: Tidyup around the Scan Objects. Complete some incomplete models. Introduce...
sr55 [Sat, 7 Jul 2018 11:20:34 +0000 (12:20 +0100)]
WinGui: Tidyup around the Scan Objects. Complete some incomplete models. Introduce a factory for Title objects.

6 years agoVCE: Implement missing compile time availability flag. This should stop it showing...
sr55 [Sat, 7 Jul 2018 11:19:02 +0000 (12:19 +0100)]
VCE: Implement missing compile time availability flag. This should stop it showing up when it's not compiled in.

6 years agolibhb: Fix broken encoder masks.
sr55 [Thu, 5 Jul 2018 18:51:39 +0000 (19:51 +0100)]
libhb: Fix broken encoder masks.

6 years agoSpecify flatpak branch when building the bundle
Frederick Ding [Wed, 4 Jul 2018 21:09:25 +0000 (17:09 -0400)]
Specify flatpak branch when building the bundle

Fixes a bug introduced in 70a0ad3b0088f86fa26e3f8fe9006834155c7d4d. Branch must be either `development` or `stable`, can't rely on defaults. See http://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-build-bundle for CLI reference.

6 years agolibhb: Fix an ifdef typo
sr55 [Mon, 2 Jul 2018 20:50:41 +0000 (21:50 +0100)]
libhb: Fix an ifdef typo

6 years agobuild: Fix to not pass --enable-nvenc to FFmpeg configure on FreeBSD.
Yuichiro NAITO [Mon, 2 Jul 2018 13:57:41 +0000 (22:57 +0900)]
build: Fix to not pass --enable-nvenc to FFmpeg configure on FreeBSD.

Nvenc is not currently supported by Nvidia on FreeBSD. If it becomes supported on FreeBSD, please check nvidia-driver and FFmpeg.

6 years agobuild: Fix libavresample link order.
Yuichiro NAITO [Sat, 30 Jun 2018 13:41:08 +0000 (22:41 +0900)]
build: Fix libavresample link order.

avfilter referes to avresample.

6 years agobuild: Fix to add FreeBSD to nvenc target.
Yuichiro NAITO [Sat, 30 Jun 2018 13:28:08 +0000 (22:28 +0900)]
build: Fix to add FreeBSD to nvenc target.

6 years agoflatpak: set the branch for flatpak bundles
John Stebbins [Sun, 1 Jul 2018 22:28:59 +0000 (15:28 -0700)]
flatpak: set the branch for flatpak bundles

This allows differentiation between stable and development builds in a
flatpak repository

6 years agoflatpak: fix CLI flatpak platform dependency
John Stebbins [Sun, 1 Jul 2018 21:05:02 +0000 (14:05 -0700)]
flatpak: fix CLI flatpak platform dependency

6 years agonvenc: fix crash in nvenc_load_functions
John Stebbins [Fri, 29 Jun 2018 21:29:18 +0000 (14:29 -0700)]
nvenc: fix crash in nvenc_load_functions

nvenc_load_functions tries to free the input NvencFunctions before
loading.  Set pointer to NULL to prevent free of invalid pointer.

6 years agoWinGui: Extend the "Video" preference tab to allow the hardware encoders to be disabled.
sr55 [Fri, 29 Jun 2018 20:23:07 +0000 (21:23 +0100)]
WinGui: Extend the "Video" preference tab to allow the hardware encoders to be disabled.

6 years agoAdd NVEnc encoder. (Round 3) (#1437)
Scott [Fri, 29 Jun 2018 18:48:26 +0000 (19:48 +0100)]
Add NVEnc encoder. (Round 3) (#1437)

Adding the Nvidia NVEnc H.264 and H.265 encoders.
Based on Initial work by sgothel

--enable-nvenc is the new compile time configure option to enable for builds.

6 years agocontrib: Add additional AVX-512 compatibility patches to libvpx.
Bradley Sepos [Fri, 29 Jun 2018 01:42:56 +0000 (21:42 -0400)]
contrib: Add additional AVX-512 compatibility patches to libvpx.

#1401.

6 years agoLinGui: Fix default destination filename for BDs
John Stebbins [Thu, 28 Jun 2018 17:34:19 +0000 (10:34 -0700)]
LinGui: Fix default destination filename for BDs

It was including the MPLS number as part of the default destination
filename

6 years agobd: fix title->name for BDs that have disc info
John Stebbins [Thu, 28 Jun 2018 17:32:41 +0000 (10:32 -0700)]
bd: fix title->name for BDs that have disc info

This was defaulting to the device name when scanning raw devices, e.g.
"sr0" on linux.

6 years agopresets: fix importing file with "Official" presets
John Stebbins [Wed, 27 Jun 2018 18:06:02 +0000 (11:06 -0700)]
presets: fix importing file with "Official" presets

Convert any presets with "Type" official to custom before importing.
This can happen if someone decides to try to import a full user presets
file from a previous install of HandBrake.

6 years agoresample: fix dithering
John Stebbins [Fri, 15 Jun 2018 00:34:31 +0000 (17:34 -0700)]
resample: fix dithering

It was only being allowed for certain codecs when it should be allowed
for all.

6 years agoaudio_resample: switch from avresample to swresample
John Stebbins [Fri, 15 Jun 2018 00:20:58 +0000 (17:20 -0700)]
audio_resample: switch from avresample to swresample

Eliminates deprecation warnings for avresample

6 years agoflatpak: add flatpak extensions support
John Stebbins [Wed, 27 Jun 2018 01:22:30 +0000 (18:22 -0700)]
flatpak: add flatpak extensions support

This allows us to add additional libraries or executables as separate
flatpak bundles

6 years agoffmpeg: alternate fix for corrupt preview frames
John Stebbins [Fri, 22 Jun 2018 22:27:04 +0000 (15:27 -0700)]
ffmpeg: alternate fix for corrupt preview frames

This leaves the recovery point heuristic intact and fixes the problem
that was triggering the heuristic to return an early frame

6 years agoLinGui: add appstream metadata to translatable files
John Stebbins [Thu, 21 Jun 2018 16:40:34 +0000 (09:40 -0700)]
LinGui: add appstream metadata to translatable files

6 years agoLinGui: icon name in desktop should not have file extension
John Stebbins [Thu, 21 Jun 2018 16:16:00 +0000 (09:16 -0700)]
LinGui: icon name in desktop should not have file extension

6 years agoflatpak: add link to translation project on transifex
John Stebbins [Thu, 21 Jun 2018 16:15:19 +0000 (09:15 -0700)]
flatpak: add link to translation project on transifex

6 years agometa: Fix git parameter in contributing doc.
Bradley Sepos [Thu, 21 Jun 2018 14:17:30 +0000 (10:17 -0400)]
meta: Fix git parameter in contributing doc.

Sadly, --branch does not exist as an alias for -b.

6 years agocontrib: Update to FFmpeg 4.0.1.
Bradley Sepos [Tue, 19 Jun 2018 00:45:10 +0000 (20:45 -0400)]
contrib: Update to FFmpeg 4.0.1.

Changelog: https://github.com/FFmpeg/FFmpeg/blob/e049f7c24fc6aa5fc925f860e2ad940a75cfd84f/Changelog

- avcodec/aacdec_fixed: Fix undefined integer overflow in apply_independent_coupling_fixed()
- avcodec/dirac_dwt_template: Fix undefined behavior in interleave()
- avutil/common: Fix undefined behavior in av_clip_uintp2_c()
- fftools/ffmpeg: Fallback to duration if sample rate is unavailable
- avformat/mov: Only set pkt->duration to non negative values
- avcodec/mpeg4videodec: Clear bits_per_raw_sample if it has originated from a previous instance
- avformat/movenc: fix recognization of cover image streams
- avformat/movenc: properly handle cover image codecs
- avcodec/h264_slice: Fix overflow in recovery_frame computation
- avcodec/h264_ps: Move MAX_LOG2_MAX_FRAME_NUM to header so it can be used in h264_sei
- avcodec/h264_mc_template: Only prefetch motion if the list is used.
- avcodec/xwddec: Use ff_set_dimensions()
- avcodec/wavpack: Fix overflow in adding tail
- avcodec/shorten: Fix multiple integer overflows
- avcodec/shorten: Fix undefined shift in fix_bitshift()
- avcodec/shorten: Fix a negative left shift in shorten_decode_frame()
- avcodec/shorten: Sanity check nmeans
- avcodec/shorten: Check non COMM chunk len before skip in decode_aiff_header()
- avcodec/mjpegdec: Fix integer overflow in ljpeg_decode_rgb_scan()
- avcodec/truemotion2: Fix overflow in tm2_apply_deltas()
- avcodec/opus_silk: Change silk_lsf2lpc() slightly toward silk/NLSF2A.c
- avcodec/amrwbdec: Fix division by 0 in find_hb_gain()
- avcodec/h263dec: Reinitialize idct context if it has not been setup for the active profile
- avcodec/idctdsp: Clear idct/idct_add for studio profile
- avformat/mov: replace a value error by clipping into valid range in mov_read_stsc()
- avformat/bintext: Reduce detection for random .bin files as it more likely is not a multimedia related file
- avformat/mov: Break out early if chunk_count is 0 in mov_build_index()
- avcodec/fic: Avoid some magic numbers related to cursors
- avcodec/mpeg4video: Detect reference studio streams as studio streams
- avcodec/mpeg4videodec: Do not corrupt bits_per_raw_sample
- avcodec/mpeg4videode: Eliminate out of loop VOP startcode reading for studio profile
- avcodec/g2meet: ask for sample with overflowing RGB
- avcodec/idctdsp: Transmit studio_profile to init instead of using AVCodecContext profile
- avcodec/ac3dec: Check that the number of channels with dependant streams is valid
- avcodec/ac3dec: Fix null pointer dereference in ac3_decode_frame()
- avcodec/aacdec_fixed: use 64bit to avoid overflow in rounding in apply_dependent_coupling_fixed()
- oavcodec/aacpsdsp_template: Use unsigned for hs0X to prevent undefined behavior
- avcodec/g723_1dec: Clip bits2 in both directions
- avcodec/mpeg4videoenc: Use 64 bit for times in mpeg4_encode_gop_header()
- avcodec/mlpdec: Only change noise_type if the related fields are valid
- indeo4: Decode all or nothing of a band header.
- avcodec/ac3dec: Use frame_size if superframe_size is 0
- avformat/mov: Only fail for STCO/STSC contradictions if both exist
- avcodec/dirac_dwt: Fix integer overflow in COMPOSE_DD97iH0 / COMPOSE_DD137iL0
- avcodec/fic: Check available input space for cursor
- avcodec/mpeg4videodec: Check bps (VOL header) before VOP for studio profile
- avcodec/g2meet: Check RGB upper limit
- avcodec/jpeg2000dec: Fix undefined shift in the jpeg2000_decode_packets_po_iteration() CPRL case
- avcodec/jpeg2000dec: Skip init for component in CPRL if nothing is to be done
- avcodec/g2meet: Change order of operations to avoid undefined behavior
- avcodec/flac_parser: Fix infinite loop
- avcodec/mpeg4videodec: Split decode_studio_vol_header() out of decode_studiovisualobject()
- avcodec/mpeg4videodec: Move decode_studiovisualobject() parsing in the branch for visual object parsing
- avcodec/mpeg4video_parser: Avoid litteral 0x1B6, use named constant instead
- avcodec/mpeg4video_parser: Fix incorrect spliting of MPEG-4 studio frames
- avformat/m4vdec: Use the same constant names as libavcodec
- avformat/m4vdec: Fix detection of raw MPEG-4 ES Studio
- avcodec/wavpack: Fix integer overflow in DEC_MED() / INC_MED()
- avcodec/wavpack: Fix integer overflow in wv_unpack_stereo()
- avcodec/error_resilience: Fix integer overflow in filter181()
- avcodec/h263dec: Check slice_ret in mspeg4 slice loop
- avcodec/elsdec: Fix memleaks
- avcodec/vc1_block: simplify ac_val computation
- avcodec/ffv1enc: Check that the crc + version combination is supported
- configure: The eac3_core bitstream filter needs the ac3 parser.
- configure: fix arm inline asm checks
- lavf/libssh: translate a read of 0 to EOF
- ffprobe: fix SEGV when new streams are added
- avformat/mpegts: fix incorrect indentation
- avformat/mpegts: initialize section_buf to fix valgrind test failure
- avformat/mpegts: reindent after last change
- avformat/mpegts: parse sections with multiple tables
- avformat/mpegts: clean up whitespace
- avformat/mpegts: use MAX_SECTION_SIZE instead of hardcoded value
- avformat/mpegts: skip non-PMT tids earlier
- avcodec/mediacodecdec: add workaround for buggy amlogic mpeg2 decoder
- avcodec/mediacodecdec: wait on first frame after input buffers are full
- avcodec/mediacodecdec: restructure mediacodec_receive_frame
- avcodec/mediacodec_wrapper: add helper to fetch SDK_INT
- avcodec/mediacodecdec: refactor pts handling
- avcodec/mediacodecdec: use AV_TIME_BASE_Q
- avcodec/mediacodecdec: clarify delay_flush specific code
- avcodec/videotoolbox: fix decoding of some HEVC videos
- avcodec/hevc: remove videotoolbox hack
- avcodec/videotoolbox: split h264/hevc callbacks
- avcodec/videotoolbox: cleanups
- avcodec/videotoolbox: fix kVTCouldNotFindVideoDecoderErr trying to decode HEVC on iOS
- avcodec/videotoolbox: improve logging of decoder errors
- avcodec/xwddec: fix palette alpha
- avformat/webm_chunk: always use a static buffer for get_chunk_filename
- configure: fix configure check for lilv-0
- avcodec/nvdec_hevc: fix scaling lists
- avcodec/hevcdec: make ff_hevc_frame_nb_refs take a const pointer
- lavf/bluray: translate a read of 0 to EOF
- lavf/dashenc: don't call flush_init_segment before avformat_write_header
- avdevice/decklink_dec: unref packets on avpacket_queue_put error
- avcodec/hnm4video: fix palette alpha
- avcodec/anm: fix palette alpha
- avformat/qtpalette: parse color table according to the QuickTime file format specs
- ffplay: Fix realloc_texture when input texture is NULL.
- hwcontext_vaapi: Fix compilation with libva versions < 1.4.0
- lavf/qsv: clone the frame which may be managed by framework
- lavf: make overlay_qsv work based on framesync
- avformat/segafilm - revert keyframe detection
- avformat/utils: refactor upstream_stream_timings
- avformat/utils: ignore outlier durations on subtitle/data streams as well

6 years agoLinGui: handle missing $HOME directory
John Stebbins [Wed, 20 Jun 2018 18:07:10 +0000 (11:07 -0700)]
LinGui: handle missing $HOME directory

Improves determination of a user config dir under these circumstances
and prevents access to NULL file pointer

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

6 years agoffmpeg: fix currupt h.264 preview frames
John Stebbins [Wed, 20 Jun 2018 16:10:47 +0000 (09:10 -0700)]
ffmpeg: fix currupt h.264 preview frames

The ffmpeg developers added a "heuristic" to the h.264 recovery point
code I wrote to prevent display of corrupt frames.  The heuristic
doesn't work very reliably, so I've disabled it.

When I get a chance I'll see if I can come up with a better way to
handle what the heuristic was added for.

6 years agodecavcodec: fix crash during audio probe
John Stebbins [Wed, 20 Jun 2018 15:58:38 +0000 (08:58 -0700)]
decavcodec: fix crash during audio probe

Audio probe does not set w->audio.

6 years agoflatpak: fix missing directory for flathub target
John Stebbins [Wed, 20 Jun 2018 04:15:04 +0000 (21:15 -0700)]
flatpak: fix missing directory for flathub target

6 years agoflatpak: prebuild some dependencies
John Stebbins [Wed, 20 Jun 2018 00:20:24 +0000 (17:20 -0700)]
flatpak: prebuild some dependencies

Rather than using HandBrake's build for libass, fontconfig, freetype,
fribidi, harfbuzz.

The runtime platform already has fontconfig, freetype and harfbuzz.  We
just need to add libass and fribidi.

6 years agoflatpak: improve manifest creation script
John Stebbins [Wed, 20 Jun 2018 00:39:40 +0000 (17:39 -0700)]
flatpak: improve manifest creation script

make script compatible with multiple modules

6 years agoLinGui: don't override PKG_CONFIG_PATH
John Stebbins [Tue, 19 Jun 2018 23:30:04 +0000 (16:30 -0700)]
LinGui: don't override PKG_CONFIG_PATH

Add to the front, but don't override what was there.

(cherry picked from commit db23f90fbe195361e1f147b392f76bda787bf95f)

6 years agoflatpak: use freedesktop platform instead gnome
John Stebbins [Tue, 19 Jun 2018 23:04:13 +0000 (16:04 -0700)]
flatpak: use freedesktop platform instead gnome

It's smaller

6 years agoLinGui: add fr.handbrake.ghb.svg icon
John Stebbins [Tue, 19 Jun 2018 23:03:41 +0000 (16:03 -0700)]
LinGui: add fr.handbrake.ghb.svg icon

6 years agoLinGui: use normal priority for notification
John Stebbins [Tue, 19 Jun 2018 22:48:00 +0000 (15:48 -0700)]
LinGui: use normal priority for notification

6 years agoLinGui: use GNotification instead of libnotify
John Stebbins [Tue, 19 Jun 2018 21:57:59 +0000 (14:57 -0700)]
LinGui: use GNotification instead of libnotify

6 years agoLinGui: use fr.handbrake.ghb consistently
John Stebbins [Tue, 19 Jun 2018 21:53:51 +0000 (14:53 -0700)]
LinGui: use fr.handbrake.ghb consistently

6 years agoflatpak: sort manifest entries by using OrderedDict
John Stebbins [Tue, 19 Jun 2018 20:16:50 +0000 (13:16 -0700)]
flatpak: sort manifest entries by using OrderedDict

6 years agoflatpak: add notifications permission
John Stebbins [Tue, 19 Jun 2018 19:05:26 +0000 (12:05 -0700)]
flatpak: add notifications permission

6 years agoRevert "contrib: Enable PIC when building x264 Flatpak on Linux."
Bradley Sepos [Mon, 18 Jun 2018 20:36:35 +0000 (16:36 -0400)]
Revert "contrib: Enable PIC when building x264 Flatpak on Linux."

This reverts commit a589396d51a11a8697e2909e75e097db5bed22a1.

6 years agocontrib: Enable PIC when building x264 Flatpak on Linux.
Bradley Sepos [Mon, 18 Jun 2018 16:03:21 +0000 (12:03 -0400)]
contrib: Enable PIC when building x264 Flatpak on Linux.

6 years agocontrib: Set libvpx target to minimum system version we support on macOS.
Bradley Sepos [Mon, 18 Jun 2018 16:01:30 +0000 (12:01 -0400)]
contrib: Set libvpx target to minimum system version we support on macOS.

6 years agoLinGui: add cmake back to debian control file
John Stebbins [Mon, 18 Jun 2018 14:29:33 +0000 (07:29 -0700)]
LinGui: add cmake back to debian control file

I should have only removed yasm. Not sure what I was thinking :-\

6 years agometa: Update NEWS.markdown for 1.1.1 release, take two.
Bradley Sepos [Sun, 17 Jun 2018 17:43:07 +0000 (13:43 -0400)]
meta: Update NEWS.markdown for 1.1.1 release, take two.

Missed one.

6 years agometa: Update NEWS.markdown for 1.1.1 release.
Bradley Sepos [Sun, 17 Jun 2018 17:40:02 +0000 (13:40 -0400)]
meta: Update NEWS.markdown for 1.1.1 release.

6 years agoscripts: Update to mingw-w64-build 4.1.0.
Bradley Sepos [Sun, 17 Jun 2018 07:32:02 +0000 (03:32 -0400)]
scripts: Update to mingw-w64-build 4.1.0.

Removes yasm dependency.

6 years agoLinGui: remove unused dependencies from debian control files
John Stebbins [Mon, 11 Jun 2018 15:51:47 +0000 (08:51 -0700)]
LinGui: remove unused dependencies from debian control files

6 years agocontrib: make: Remove CMake contrib.
Bradley Sepos [Mon, 11 Jun 2018 02:04:02 +0000 (22:04 -0400)]
contrib: make: Remove CMake contrib.

Still required, only HandBrake will not build it anymore.

6 years agocontrib: make: Remove --enable-local-autotools and --enable-local-pkgconfig.
Bradley Sepos [Sun, 10 Jun 2018 20:31:46 +0000 (16:31 -0400)]
contrib: make: Remove --enable-local-autotools and --enable-local-pkgconfig.

Closes #549.

6 years agocontrib: Enable asm for libtheora on Mac x86_64.
Bradley Sepos [Fri, 1 Jun 2018 20:30:27 +0000 (16:30 -0400)]
contrib: Enable asm for libtheora on Mac x86_64.

This rule is 9 years old and homebrew builds theora with asm.

6 years agocontrib: gtk: libhb: make: scripts: Remove yasm contrib.
Bradley Sepos [Fri, 1 Jun 2018 21:08:13 +0000 (17:08 -0400)]
contrib: gtk: libhb: make: scripts: Remove yasm contrib.

6 years agocontrib: Switch yasm dependencies to nasm.
Bradley Sepos [Fri, 1 Jun 2018 20:28:42 +0000 (16:28 -0400)]
contrib: Switch yasm dependencies to nasm.

6 years agolibhb: Allow 7.1 channels AAC encoding.
Simon Lämmle [Sat, 16 Jun 2018 12:23:48 +0000 (14:23 +0200)]
libhb: Allow 7.1 channels AAC encoding.

Allow 7.1 channels for AAC, but dissalow 6.1 for FDK (H)AAC, because it is not supported.

6 years agomuxavformat: silence mp4 frame size warning
John Stebbins [Fri, 15 Jun 2018 22:31:39 +0000 (15:31 -0700)]
muxavformat: silence mp4 frame size warning

Set samples per frame for audio tracks

6 years agomuxavformat: use alternate API to initialize out context
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.

6 years agomuxavformat: fix crash on windows
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.

6 years agoWinGui: Fix a bug in queue recovery where old files were not deleted.
sr55 [Fri, 15 Jun 2018 19:00:31 +0000 (20:00 +0100)]
WinGui: Fix a bug in queue recovery where old files were not deleted.

6 years agoWinGui: Fix a potential crash in HandBrakeEncoderHelpers.cs
sr55 [Fri, 15 Jun 2018 18:51:24 +0000 (19:51 +0100)]
WinGui: Fix a potential crash in HandBrakeEncoderHelpers.cs

6 years agoWinGui: Fix a crash in a converter.
sr55 [Fri, 15 Jun 2018 18:45:17 +0000 (19:45 +0100)]
WinGui: Fix a crash in a converter.

6 years agoWinGui: Fix an integer overflow in the UI layer for the start/stop controls. Fixes...
sr55 [Thu, 14 Jun 2018 18:56:44 +0000 (19:56 +0100)]
WinGui: Fix an integer overflow in the UI layer for the start/stop controls.  Fixes #1327

6 years agoWinGui: Soften the colour of the grid lines in the chapters table
Sam H [Wed, 13 Jun 2018 21:16:20 +0000 (22:16 +0100)]
WinGui: Soften the colour of the grid lines in the chapters table

6 years agoWinGui: Make MenuItems the same height as the Menu
Sam H [Wed, 13 Jun 2018 21:27:27 +0000 (22:27 +0100)]
WinGui: Make MenuItems the same height as the Menu

6 years agoWinGui: Add HintPath to newtonsoft json in the worker process project. It shouldn...
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

6 years agolibopus: run autoreconf
ilovezfs [Fri, 8 Jun 2018 16:44:35 +0000 (16:44 +0000)]
libopus: run autoreconf

configure.ac is modified by the patch from #1380

6 years agoFix PGS subtitle decoding...
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.

6 years agolibhb: fix snprintf compiler warnings
John Stebbins [Wed, 13 Jun 2018 17:11:30 +0000 (10:11 -0700)]
libhb: fix snprintf compiler warnings

Our handling of temporary directory paths could truncate resulting
filenames.  This fixes the warnings and prevents possible truncation.

6 years agolibhb: eliminate use of deprecated av_register_all...
John Stebbins [Wed, 13 Jun 2018 15:13:44 +0000 (08:13 -0700)]
libhb: eliminate use of deprecated av_register_all...

...and avformat_register_all

6 years agolibhb: eliminate use of deprecated ffmpeg lockmgr
John Stebbins [Wed, 13 Jun 2018 15:07:23 +0000 (08:07 -0700)]
libhb: eliminate use of deprecated ffmpeg lockmgr

It's a NOP and does nothing in current code

6 years agomuxavformat: fix use of deprecated AVFormat.filename
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).

6 years agoMacGui: do not play a sound for notification if alerts are disabled in prefs.
Damiano Galassi [Wed, 13 Jun 2018 11:04:41 +0000 (13:04 +0200)]
MacGui: do not play a sound for notification if alerts are disabled in prefs.

6 years agoMacGui: fix x264 unparsed string and advanced panel.
Damiano Galassi [Wed, 13 Jun 2018 11:04:02 +0000 (13:04 +0200)]
MacGui: fix x264 unparsed string and advanced panel.

6 years agoLinGui: change language lists from GtkListBox to GtkTreeView
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.

6 years agocomb_detect: fix crash when no valid frames are passed
John Stebbins [Mon, 11 Jun 2018 22:36:52 +0000 (15:36 -0700)]
comb_detect: fix crash when no valid frames are passed

6 years agoLinGui: add search function to language popups
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.

6 years agoflatpak: update appstream snapshot images
John Stebbins [Mon, 11 Jun 2018 17:39:33 +0000 (10:39 -0700)]
flatpak: update appstream snapshot images

6 years agoWinGui: Don't compile the AppX project when building the solution. It's not currently...
sr55 [Mon, 11 Jun 2018 17:52:01 +0000 (18:52 +0100)]
WinGui: Don't compile the AppX project when building the solution. It's not currently in use.

6 years agoMacGui: do not use NSMatrix for radio buttons, fix some layout issues.
Damiano Galassi [Mon, 11 Jun 2018 09:54:49 +0000 (11:54 +0200)]
MacGui: do not use NSMatrix for radio buttons, fix some layout issues.

6 years agoencavcodec: fix encoding with vp8 and vp8 encoders
John Stebbins [Mon, 11 Jun 2018 01:47:55 +0000 (18:47 -0700)]
encavcodec: fix encoding with vp8 and vp8 encoders

Was broken by the AMF merge

6 years agocontrib: Add macOS 10.13 High Sierra detection patch to libvpx.
Bradley Sepos [Mon, 11 Jun 2018 01:34:59 +0000 (21:34 -0400)]
contrib: Add macOS 10.13 High Sierra detection patch to libvpx.

Seems like libvpx should have a generic target for future/unknown macOS versions.

6 years agocontrib: Add compatibility patches for libvpx.
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.

6 years agoWinGui: Implement most of the HTTP Worker Process stubs.
sr55 [Sun, 10 Jun 2018 20:21:45 +0000 (21:21 +0100)]
WinGui: Implement most of the HTTP Worker Process stubs.

6 years agoMacGui: remove unused localization files.
Damiano Galassi [Sun, 10 Jun 2018 15:25:35 +0000 (17:25 +0200)]
MacGui: remove unused localization files.

6 years agoMacGui: Change the "Picture Size" label to "Dimensions" to avoid confusion on the...
Damiano Galassi [Sun, 10 Jun 2018 15:02:23 +0000 (17:02 +0200)]
MacGui: Change the "Picture Size" label to "Dimensions" to avoid confusion on the Add Preset View. #1309

6 years agoMacGui: update Sparkle to 1.19.0.
Damiano Galassi [Sun, 10 Jun 2018 14:55:57 +0000 (16:55 +0200)]
MacGui: update Sparkle to 1.19.0.

6 years agoWinGui: Stub the RemoteInstance implementation of IEncodeInstance.
sr55 [Sun, 10 Jun 2018 12:46:17 +0000 (13:46 +0100)]
WinGui: Stub the RemoteInstance implementation of IEncodeInstance.

6 years agoWinGui: Split out the encode portion of IHandBrakeInstance into IEncodeInstance....
sr55 [Sun, 10 Jun 2018 12:38:13 +0000 (13:38 +0100)]
WinGui: Split out the encode portion of IHandBrakeInstance into IEncodeInstance. API remains compatible.

6 years agoWinGui: HandBrake.Worker tidyup.
sr55 [Sun, 10 Jun 2018 12:34:39 +0000 (13:34 +0100)]
WinGui: HandBrake.Worker tidyup.

6 years agoWinGui: Stub out a background worker process.
sr55 [Sun, 10 Jun 2018 12:25:53 +0000 (13:25 +0100)]
WinGui:  Stub out a background worker process.

6 years agoRemove the unused "rows" header from the chapters DataGrid
Sam H [Sun, 10 Jun 2018 08:32:53 +0000 (09:32 +0100)]
Remove the unused "rows" header from the chapters DataGrid