Scott [Sat, 12 Dec 2015 21:07:26 +0000 (21:07 +0000)]
WinGui: Fix an issue where presets crop settings could be incorrectly stored for fresh installs of the app until the user reset built-in presets manually.
Scott [Sat, 12 Dec 2015 14:01:01 +0000 (14:01 +0000)]
WinGui: Cosmetic fixes on the Video and Audio Tabs. Bug fix with the Fast Decode checkbox not setting correctly all the time. Improved scan cancel handling.
Tim Walker [Sat, 21 Nov 2015 23:26:54 +0000 (00:26 +0100)]
libav: remove a pointless check in the DTS decoder.
The check resulted in an error with many real-world streams,
which are otherwise perfectly valid. The auxiliary data length
is not reliable and/or the ETSI DTS specification is incorrect.
Fixing importing and exporting of chapters via CSV files. Adding proper handling of escape characters, handling of most common alternative value separators. Fixing resource leakage via undisposed FileDialogs.
John Stebbins [Fri, 13 Nov 2015 18:01:23 +0000 (10:01 -0800)]
reader: remove track count limitation
Don't use hard coded 100 fifo array, allocate what is needed.
We probably just crashed if the number of tracks was > 99 since the
limit of 100 fifos was not universally checked.
schrotthaufen [Fri, 13 Nov 2015 16:11:28 +0000 (17:11 +0100)]
Added missing NULL pointer check in encx265Close
pv was never checked to be NULL, which would lead to a NULL pointer
dereference in the pv->delayed_chapters != NULL check, when
w->private_data is NULL.
John Stebbins [Thu, 12 Nov 2015 17:31:19 +0000 (09:31 -0800)]
bd: fix discontinuity handling
Tag only one buffer with discontinuity flag, not multiple.
Flush pre-discontinuity buffers before signaling the discontinuity, not
after.
Make sure discontinuity flag is on the buffer with the PCR change
when possible.
Scott [Tue, 10 Nov 2015 23:21:57 +0000 (23:21 +0000)]
WinGui: Add warning dialog on Destination Browse Button if disk space is low. Added new Advanced Option in preferences that will force the queue to check for low disk space before starting each job and pause if necessary.
Low Disk Space level is currently set at 10GB. Will add a preference to adjust this at a later point
John Stebbins [Tue, 10 Nov 2015 20:40:54 +0000 (12:40 -0800)]
libhb: repair split packets in reader
We split PES packets when there is a PCR change in the middle of the
packet. This works fine for audio and video where the decoder parses
the ES to find frame boundaries. But it does not work for some decoders
such as PGS subtitles. So mark split buffers and reassemble them in
reader after processing the PCR change.
John Stebbins [Wed, 28 Oct 2015 18:30:02 +0000 (11:30 -0700)]
scan: increase sensitivity to video flags
We were mis-detecting framerate often because we did not see enough
samples of various video flags while scanning previews. So move
sampling of these flags into the inner video decode loop and collect
more samples.
John Stebbins [Tue, 3 Nov 2015 17:46:28 +0000 (09:46 -0800)]
libhb: make muxer, sync, and reader behave like other work objects
simplify job initialization sequence, clean up code, and document
dependencies in the sequence better.
Make hb_add set job->sequence_id. It is no longer necessary for the
frontend to do this. If the frontend needs the sequence_id, it is
returned by hb_add().
Clean up use of interjob. do_job() now uses sequence_id to detect when
a new sequence of related jobs is running and automatically clears
interjob.
John Stebbins [Mon, 9 Nov 2015 18:11:55 +0000 (10:11 -0800)]
LinGui: Force override ubuntu package versions
Idiot ubuntu packagers add a suffix to the "upstream" version number
that causes their handbrake packages to be seen as "more recent"
than our packages. So add "zhb" suffix to our version number to
force our packages to be seen a "more recent".
Damiano Galassi [Thu, 29 Oct 2015 07:55:47 +0000 (08:55 +0100)]
MacGui: use an pair of 'OK' and 'Cancel' buttons in the defaults sheets instead of a single done button. Fixed the bitrates and mixdowns popups in the audio defaults.
Damiano Galassi [Wed, 28 Oct 2015 07:15:52 +0000 (08:15 +0100)]
MacGui: annotate the type of some arrays, and check the count of the input jobs in HBQueueController addJobsFromArray:, so we don't add an empty undo command.
John Stebbins [Wed, 21 Oct 2015 21:41:54 +0000 (14:41 -0700)]
Enforce min/max dimensions
In both hb_set_anamorphic_size and hb_get_preview, check that image
dimensions are > 32x32 and < 10240x10240. This should help to prevent
crashes with unusual dimensions settings.
John Stebbins [Wed, 21 Oct 2015 16:36:16 +0000 (09:36 -0700)]
libhb: prevent crashes in hb_get_preview2
Try to avoid failures to initialize sws context by setting minimum
dimensions. And if initialization does fail, exit gracefully instead of
crashing in sws_scale.
John Stebbins [Tue, 13 Oct 2015 17:11:27 +0000 (10:11 -0700)]
Fix bizarre custom anamorphic behavior
When "keep aspect" is unset in custom anamorphic, it was making very
uintuitive changes to PAR. This simplifies the code and makes the
behavior more sane.
John Stebbins [Fri, 16 Oct 2015 18:32:48 +0000 (11:32 -0700)]
lame: Use libav wrapper to encode mp3lame
Fixes https://forum.handbrake.fr/viewtopic.php?f=12&t=33345
Some players expect each packet to start on an mp3 frame header. Our
mp3lame encoder did not ensure this and resulted in failure to play
audio on these players.
libav already has the necessary code to parse headers and
accumulate a full frame of data, so use it.
Scott [Sat, 24 Oct 2015 20:23:33 +0000 (21:23 +0100)]
Update HandBrakeCLI to read presets.json on Windows. This is the file that windows gui stores all presets in now.
This should allow the CLI to read GUI presets now.
Scott [Sat, 24 Oct 2015 20:20:16 +0000 (21:20 +0100)]
Adding a "When Done" Label and Context Menu to the Main Screen status bar.
This should make it more obvious to users that they have a "When done" action turned on, especially when coming back to the app after a period of time.