]> granicus.if.org Git - handbrake/log
handbrake
9 years agolibhb: Allow log level changes and update checks *after* hb_init()
jstebbins [Fri, 12 Jun 2015 20:52:01 +0000 (20:52 +0000)]
libhb: Allow log level changes and update checks *after* hb_init()

- In the CLI, this allows calling hb_init() before parsing args, which
permits us to see any libhb log messages that are generated during
option parsing.  These messages were hidden before.
- In the GUIs, this allows dynamic changes to log level.  Previously an
application restart was required.  I have only updated the LinGui to
take advantage of this.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7295 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Move user control strings to resources.
sr55 [Thu, 11 Jun 2015 19:39:03 +0000 (19:39 +0000)]
WinGui: Move user control strings to resources.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7293 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Moving the bulk of the view model strings to resources.
sr55 [Thu, 11 Jun 2015 19:33:30 +0000 (19:33 +0000)]
WinGui: Moving the bulk of the view model strings to resources.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7292 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Adding missing resources files.
sr55 [Tue, 9 Jun 2015 18:14:04 +0000 (18:14 +0000)]
WinGui: Adding missing resources files.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7285 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoCLI: Use json job instead of job
jstebbins [Tue, 9 Jun 2015 15:17:30 +0000 (15:17 +0000)]
CLI: Use json job instead of job

This allows libhb to log the json job for the CLI.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7282 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibhb: log json job string
jstebbins [Tue, 9 Jun 2015 15:17:29 +0000 (15:17 +0000)]
libhb: log json job string

For now, the log leve of this is 1.  When we feel that the json job code
has stabilized, we may want to change the log level to 2 or 3.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7281 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibhb: Eliminate string length limit in hb_valog
jstebbins [Tue, 9 Jun 2015 15:17:26 +0000 (15:17 +0000)]
libhb: Eliminate string length limit in hb_valog

This eliminates the length limit of all libhb logging functions. The
previous limit was 361 chars.  Now it is only limited by available
memory.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7280 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoencx265: fix regression introduced in SVN revision 6366.
Rodeo [Mon, 8 Jun 2015 18:27:37 +0000 (18:27 +0000)]
encx265: fix regression introduced in SVN revision 6366.

Unknown options and bad values were never fatal for any libhb encoder.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7278 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Moving more of the view strings into resources.
sr55 [Sun, 7 Jun 2015 19:52:52 +0000 (19:52 +0000)]
WinGui: Moving more of the view strings into resources.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7277 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Starting to move UI text string to resources. This will allow us to start...
sr55 [Thu, 4 Jun 2015 20:54:14 +0000 (20:54 +0000)]
WinGui: Starting to move UI text string to resources. This will allow us to start looking at localisations on the windows gui.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7276 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: remove a unneeded statement, built-in presets already have the selection...
ritsuka [Thu, 4 Jun 2015 06:58:32 +0000 (06:58 +0000)]
MacGui: remove a unneeded statement, built-in presets already have the selection behaviour.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7275 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: update the layout of the add preset window.
ritsuka [Thu, 4 Jun 2015 06:57:22 +0000 (06:57 +0000)]
MacGui: update the layout of the add preset window.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7274 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agobd: use the correct printf specifier for unsigned variables.
Rodeo [Wed, 3 Jun 2015 21:40:39 +0000 (21:40 +0000)]
bd: use the correct printf specifier for unsigned variables.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7273 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Fix the Video Profile option in the JSON preset marshaller.
sr55 [Wed, 3 Jun 2015 17:50:34 +0000 (17:50 +0000)]
WinGui: Fix the Video Profile option in the JSON preset marshaller.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7272 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Revert last change. Only set the GUI to enabled when editing queue items...
sr55 [Wed, 3 Jun 2015 17:30:49 +0000 (17:30 +0000)]
WinGui: Revert last change.  Only set the GUI to enabled when editing queue items instead. It's not necessary for the queue runs as the toolbar is still active anyway.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7271 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Queue Recovery now sets the GUI to enabled if it recovers a job.
sr55 [Wed, 3 Jun 2015 17:21:56 +0000 (17:21 +0000)]
WinGui: Queue Recovery now sets the GUI to enabled if it recovers a job.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7270 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agobd: fix printf warnings
jstebbins [Wed, 3 Jun 2015 15:38:47 +0000 (15:38 +0000)]
bd: fix printf warnings

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7269 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibhb: fix green bottom line in preview with deinterlace
jstebbins [Wed, 3 Jun 2015 15:34:44 +0000 (15:34 +0000)]
libhb: fix green bottom line in preview with deinterlace

... and "fast" deinterlace

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7267 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoInitialize the copy_mask variable before using it
ritsuka [Wed, 3 Jun 2015 05:59:06 +0000 (05:59 +0000)]
Initialize the copy_mask variable before using it

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7266 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoFix another dead assignment.
ritsuka [Wed, 3 Jun 2015 05:50:07 +0000 (05:50 +0000)]
Fix another dead assignment.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7265 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoFix three dead assignment found by the clang static analyzer, including the validatio...
ritsuka [Wed, 3 Jun 2015 05:40:39 +0000 (05:40 +0000)]
Fix three dead assignment found by the clang static analyzer, including the validation of the end chapter range.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7264 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoFix flac fallback for passthru
ritsuka [Wed, 3 Jun 2015 05:32:35 +0000 (05:32 +0000)]
Fix flac fallback for passthru

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7263 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agodecomb: fix color distortion in last row of image
jstebbins [Mon, 1 Jun 2015 21:00:26 +0000 (21:00 +0000)]
decomb: fix color distortion in last row of image

Prevent blending uninitialized lines of data into last row.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7261 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoCLI: fix --crop option
jstebbins [Mon, 1 Jun 2015 21:00:20 +0000 (21:00 +0000)]
CLI: fix --crop option

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7260 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agofix three warnings.
ritsuka [Mon, 1 Jun 2015 17:24:50 +0000 (17:24 +0000)]
fix three warnings.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7259 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: fix the audio defaults to use the languages specified in the preferences.
ritsuka [Mon, 1 Jun 2015 17:23:11 +0000 (17:23 +0000)]
MacGui: fix the audio defaults to use the languages specified in the preferences.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7258 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: add more nullability annotations.
ritsuka [Mon, 1 Jun 2015 17:21:48 +0000 (17:21 +0000)]
MacGui: add more nullability annotations.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7257 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: split HBTitle header to make it easier to test. Added some simple tests.
ritsuka [Mon, 1 Jun 2015 17:20:43 +0000 (17:20 +0000)]
MacGui: split HBTitle header to make it easier to test. Added some simple tests.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7256 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: do not try to create a NSURL if the path if empty. Encode the right type...
ritsuka [Mon, 1 Jun 2015 17:18:35 +0000 (17:18 +0000)]
MacGui: do not try to create a NSURL if the path if empty. Encode the right type for the deblock filter.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7255 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoFix a couple of memory leaks
jstebbins [Mon, 1 Jun 2015 15:39:05 +0000 (15:39 +0000)]
Fix a couple of memory leaks

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7254 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Use the new libhb preset management code to fetch built-in presets on startup...
sr55 [Sun, 31 May 2015 13:45:18 +0000 (13:45 +0000)]
WinGui: Use the new libhb preset management code to fetch built-in presets on startup.  Note, the preset update notice is now gone so anyone hacking the preset dat files will not be notified when it gets overwritten now.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7252 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: remove a useless cast for the deblock value.
ritsuka [Sun, 31 May 2015 06:53:10 +0000 (06:53 +0000)]
MacGui: remove a useless cast for the deblock value.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7251 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: fix custom denoise settings.
ritsuka [Sun, 31 May 2015 06:50:54 +0000 (06:50 +0000)]
MacGui: fix custom denoise settings.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7250 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: cast the value of UsesPictureFilters to bool so the dictionary will use a...
ritsuka [Sat, 30 May 2015 07:49:16 +0000 (07:49 +0000)]
MacGui: cast the value of UsesPictureFilters to bool so the dictionary will use a bool to represent it internally, and hb_presets_clean_json() won't complain.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7246 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: fix the leaks after using hb_presets_import_json and hb_presets_clean_json...
ritsuka [Sat, 30 May 2015 07:45:00 +0000 (07:45 +0000)]
MacGui: fix the leaks after using hb_presets_import_json and hb_presets_clean_json, add an extension to NSJSONSerialization to convert a char * directly.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7245 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: add nullability annotations to the headers and use weak where is possible.
ritsuka [Sat, 30 May 2015 07:17:22 +0000 (07:17 +0000)]
MacGui: add nullability annotations to the headers and use weak where is possible.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7244 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: don't hardcode which encoders support the preset system.
Rodeo [Fri, 29 May 2015 22:20:35 +0000 (22:20 +0000)]
MacGui: don't hardcode which encoders support the preset system.

Just ask libhb instead.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7243 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: fix setting "autoscale" widget value from preset
jstebbins [Fri, 29 May 2015 22:18:15 +0000 (22:18 +0000)]
LinGui: fix setting "autoscale" widget value from preset

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7242 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agopreset: fix application of VideoScaler to job
jstebbins [Fri, 29 May 2015 22:17:14 +0000 (22:17 +0000)]
preset: fix application of VideoScaler to job

Broken strcasecmp conditional caused OpenCl to be added to the job when
it should not have been and *not* added to the job when it should.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7241 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibhb: fix issues with video options
jstebbins [Thu, 28 May 2015 20:29:01 +0000 (20:29 +0000)]
libhb: fix issues with video options

Fixes: https://forum.handbrake.fr/viewtopic.php?f=10&t=32535&sid=321e6d1092fd09c8d380e13e86d1a9ee
- Sanitize empty video encoder settings strings to NULL.
- In the CLI, use encoder defaults if user changes the preset's video
  encoder.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7237 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: simplify some video widget dependency handling
jstebbins [Thu, 28 May 2015 20:15:43 +0000 (20:15 +0000)]
LinGui: simplify some video widget dependency handling

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7236 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: disable level widget when no levels returned by libhb
jstebbins [Thu, 28 May 2015 18:04:32 +0000 (18:04 +0000)]
LinGui: disable level widget when no levels returned by libhb

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7233 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: fix build error on ubuntu
jstebbins [Thu, 28 May 2015 14:57:25 +0000 (14:57 +0000)]
LinGui: fix build error on ubuntu

For some reason, fedora has "bool" type defined where ubuntu does not.
Use gboolean.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7232 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibbluray: bump to version 0.8.1
jstebbins [Wed, 27 May 2015 17:16:08 +0000 (17:16 +0000)]
libbluray: bump to version 0.8.1

Fixes a minor memory leak in libudfread

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7231 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: use libhb to initialize job...
jstebbins [Wed, 27 May 2015 17:14:42 +0000 (17:14 +0000)]
LinGui: use libhb to initialize job...

...and set some job settings as values change in the UI.  This
eliminates a large chunk of job setup code.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7230 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Change audio track behaviours default to None so current presets are not...
sr55 [Tue, 26 May 2015 20:33:25 +0000 (20:33 +0000)]
WinGui: Change audio track behaviours default to None so current presets are not affected.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7229 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Adding new dropdown to the Configure Audio Options. The new "Track Setting...
sr55 [Tue, 26 May 2015 20:30:10 +0000 (20:30 +0000)]
WinGui: Adding new dropdown to the Configure Audio Options. The new "Track Setting Default Behaviour" allows the choice of what settings are used for automatically added tracks.
1. All Preset tracks are cloned for each of the added languages tracks.
2. The first preset track is cloned for each of the added languages tracks.
3. Default 160kbit DPL2 AAC audio track for each of the added languages tracks.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7228 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: - Some updates to the libhb preset wrapper code. - Remove Preset update...
sr55 [Tue, 26 May 2015 19:15:22 +0000 (19:15 +0000)]
WinGui: - Some updates to the libhb preset wrapper code.  - Remove Preset update notification and option.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7227 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoscan: skip scan if title has already been scanned
jstebbins [Tue, 26 May 2015 17:10:09 +0000 (17:10 +0000)]
scan: skip scan if title has already been scanned

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7226 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibhb: fix vorbis encoding
jstebbins [Mon, 25 May 2015 16:16:35 +0000 (16:16 +0000)]
libhb: fix vorbis encoding

Was broken when we switched to using EOF flag instead of 0 length buffer.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7223 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agocli: fix display of fps in title summary
jstebbins [Sun, 24 May 2015 16:46:00 +0000 (16:46 +0000)]
cli: fix display of fps in title summary

Fixes https://forum.handbrake.fr/viewtopic.php?f=12&t=32507

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7220 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agopreset: fix application of mp4 mux options
jstebbins [Sun, 24 May 2015 16:30:17 +0000 (16:30 +0000)]
preset: fix application of mp4 mux options

Fixes https://forum.handbrake.fr/viewtopic.php?f=10&t=32445&p=151040#p151008

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7219 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: fix queue reading on 10.7.
ritsuka [Sat, 23 May 2015 09:07:53 +0000 (09:07 +0000)]
MacGui: fix queue reading on 10.7.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7218 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: remove a workaround for a bug in 10.6.
ritsuka [Thu, 21 May 2015 17:00:05 +0000 (17:00 +0000)]
MacGui: remove a workaround for a bug in 10.6.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7217 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: set the deployment target to 10.7.
ritsuka [Thu, 21 May 2015 16:57:49 +0000 (16:57 +0000)]
MacGui: set the deployment target to 10.7.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7216 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agox265: bump to version 1.7
jstebbins [Thu, 21 May 2015 15:42:50 +0000 (15:42 +0000)]
x265: bump to version 1.7

Eliminates the need for our cleanup patch.
Various bug fixes and improvements.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7215 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: add a test target to the Xcode project, plus some simple test. Use a forward...
ritsuka [Wed, 20 May 2015 19:25:36 +0000 (19:25 +0000)]
MacGui: add a test target to the Xcode project, plus some simple test. Use a forward declaration instead of a #import to in HBJob to allow testing to work.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7214 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: use libhb to init audio and subtitle lists
jstebbins [Wed, 20 May 2015 17:52:51 +0000 (17:52 +0000)]
LinGui: use libhb to init audio and subtitle lists

This eliminates a lot of essentially duplicate code in LinGui for
initializing these lists.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7213 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibhb: assume remix support when input layout is not set.
Rodeo [Tue, 19 May 2015 21:26:51 +0000 (21:26 +0000)]
libhb: assume remix support when input layout is not set.

Allows querying an encoder's default mixdown from places where the
input channel layout is unavailable (e.g. audio defaults panel).

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7212 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: refactor subtitle pane
jstebbins [Tue, 19 May 2015 21:16:14 +0000 (21:16 +0000)]
LinGui: refactor subtitle pane

Store subtitle track info in json job compatible format.  Copy directly
into job when adding new job.

Also, removed "Foreign audio search" from the subtitle track dropdown
and made an explicit "Foreign audio search" toolbar button.
This makes it easy to enforce only one such track in the list
and gives me a place to put a better tooltip explaining FAS.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7211 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: better samplerate validation.
Rodeo [Tue, 19 May 2015 20:21:47 +0000 (20:21 +0000)]
MacGui: better samplerate validation.

Not all encoders support all samplerate, so we
filter the list based on the encoder and validate
the selected samplerate when switching encoders.

Also improve bitrate validation a bit.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7210 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: more audio refactoring
jstebbins [Mon, 18 May 2015 20:12:26 +0000 (20:12 +0000)]
LinGui: more audio refactoring

Since the audio list is now in the proper format for json job, simply
copy the audio list when creating the job.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7209 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agodict: make hb_value_get_json param const
jstebbins [Mon, 18 May 2015 20:10:49 +0000 (20:10 +0000)]
dict: make hb_value_get_json param const

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7208 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: General tidy up and remove the custom styling for the app. The app will now...
sr55 [Sun, 17 May 2015 21:01:30 +0000 (21:01 +0000)]
WinGui: General tidy up and remove the custom styling for the app. The app will now always honour the system defaults.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7207 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: add more tooltips. All the tooltips in https://reviews.handbrake.fr/r/60...
ritsuka [Sun, 17 May 2015 19:41:34 +0000 (19:41 +0000)]
MacGui: add more tooltips. All the tooltips in https://reviews.handbrake.fr/r/60/ minus the ones for the labels.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7206 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agopreset_template: allow all supported passthru codecs by default.
Rodeo [Sun, 17 May 2015 16:13:09 +0000 (16:13 +0000)]
preset_template: allow all supported passthru codecs by default.

That way, very old presets and (more importantly) built-in
presets do not force a restricted copy mask on the user.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7205 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: I would commit seppuku, but I am no samurai.
Rodeo [Sun, 17 May 2015 15:09:14 +0000 (15:09 +0000)]
MacGui: I would commit seppuku, but I am no samurai.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7204 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibhb: make libFDK the default (HE-)AAC encoder.
Rodeo [Sun, 17 May 2015 12:38:37 +0000 (12:38 +0000)]
libhb: make libFDK the default (HE-)AAC encoder.

It's almost as fast as libavcodec's native encoder
and offers much better audio quality at any bitrate.

Under OS X, Apple's encoder is still used by default.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7203 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: make a copy of a preset before showing the export window.
ritsuka [Sun, 17 May 2015 06:30:22 +0000 (06:30 +0000)]
MacGui: make a copy of a preset before showing the export window.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7202 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: don't forget the fastdecode checkbox when printing the job's queue description.
Rodeo [Sun, 17 May 2015 00:40:55 +0000 (00:40 +0000)]
MacGui: don't forget the fastdecode checkbox when printing the job's queue description.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7201 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: remove workaround for the case where the output samplerate is auto and the...
Rodeo [Sat, 16 May 2015 21:21:01 +0000 (21:21 +0000)]
MacGui: remove workaround for the case where the output samplerate is auto and the input samplerate is not known.

libhb now handles it for us.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7200 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolibhb: return the global bitrate limits for a given mixdown when the samplerate is...
Rodeo [Sat, 16 May 2015 21:08:27 +0000 (21:08 +0000)]
libhb: return the global bitrate limits for a given mixdown when the samplerate is not known.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7199 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoWinGui: Update the libhb preset stubs.
sr55 [Sat, 16 May 2015 20:36:53 +0000 (20:36 +0000)]
WinGui: Update the libhb preset stubs.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7198 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: forgot one :(
Rodeo [Sat, 16 May 2015 20:17:59 +0000 (20:17 +0000)]
MacGui: forgot one :(

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7197 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGUI: don't double-sanitize encoder names.
Rodeo [Sat, 16 May 2015 20:16:50 +0000 (20:16 +0000)]
MacGUI: don't double-sanitize encoder names.

*_get_from_name is where the encoder gets sanitized,
*_sanitize_name is only required when you need the
encoder name instead of its value.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7196 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: reset allowed passthru codecs when applying a preset.
Rodeo [Sat, 16 May 2015 19:54:28 +0000 (19:54 +0000)]
MacGui: reset allowed passthru codecs when applying a preset.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7195 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: don't hardcode encoder names.
Rodeo [Sat, 16 May 2015 19:42:30 +0000 (19:42 +0000)]
MacGui: don't hardcode encoder names.

However unlikely, the names for the passthru
encoders could change, and this new code won't
need to be updated should that happen.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7194 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoAllow negative number in hb_validate_filter_settings. Fix deinterlace settings valida...
ritsuka [Sat, 16 May 2015 07:18:22 +0000 (07:18 +0000)]
Allow negative number in hb_validate_filter_settings. Fix deinterlace settings validation.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7193 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: allow exporting a preset folder. Add import/export menu item to the presets...
ritsuka [Sat, 16 May 2015 07:08:39 +0000 (07:08 +0000)]
MacGui: allow exporting a preset folder. Add import/export menu item to the presets drawer too.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7192 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agocli: fix return value check for hb_presets_add_path()
jstebbins [Fri, 15 May 2015 21:28:46 +0000 (21:28 +0000)]
cli: fix return value check for hb_presets_add_path()

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7191 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: audio pane refactoring
jstebbins [Fri, 15 May 2015 19:08:22 +0000 (19:08 +0000)]
LinGui: audio pane refactoring

- Use dict keys that align with job in audio list.
- Fix quality for encoders with inverted quality scale like lame.
- Fix disabling of audio passthru options that do not apply to the current
  input audio track.
- Fix enable/disable of quality widgets
- Fix random failure to change audio encoders in audio settings popup

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7190 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agorotate: Use more intuitive rotation parameters
jstebbins [Fri, 15 May 2015 14:35:06 +0000 (14:35 +0000)]
rotate: Use more intuitive rotation parameters

Instead of cryptic bit flags, allow "angle:mirror" parameter

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7189 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: add a missing "not" in the deinterlace conversion from HBJob to hb_job_t.
ritsuka [Fri, 15 May 2015 07:05:56 +0000 (07:05 +0000)]
MacGui: add a missing "not" in the deinterlace conversion from HBJob to hb_job_t.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7188 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: fix deinterlace in preview window.
ritsuka [Thu, 14 May 2015 20:49:23 +0000 (20:49 +0000)]
MacGui: fix deinterlace in preview window.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7187 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: fix detelecine.
ritsuka [Thu, 14 May 2015 20:18:37 +0000 (20:18 +0000)]
MacGui: fix detelecine.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7186 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: remove the built in presets update alert.
ritsuka [Thu, 14 May 2015 20:18:08 +0000 (20:18 +0000)]
MacGui: remove the built in presets update alert.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7185 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agopresets: add new UserPresets.json path for osx cli presets
jstebbins [Thu, 14 May 2015 20:02:04 +0000 (20:02 +0000)]
presets: add new UserPresets.json path for osx cli presets

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7184 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: encode the right type for keepDisplayAspect.
ritsuka [Thu, 14 May 2015 19:44:13 +0000 (19:44 +0000)]
MacGui: encode the right type for keepDisplayAspect.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7183 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: remove the old presets.plist file
ritsuka [Thu, 14 May 2015 19:39:14 +0000 (19:39 +0000)]
MacGui: remove the old presets.plist file

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7182 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: use libhb built-in presets and validation functions. Update the format and...
ritsuka [Thu, 14 May 2015 19:37:49 +0000 (19:37 +0000)]
MacGui: use libhb built-in presets and validation functions. Update the format and save the presets in UserPresets.json, the old presets are automatically imported if the new presets file is not found. The mac gui now requires 10.7 or later.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7181 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: rename json preferences file ...
jstebbins [Thu, 14 May 2015 18:04:16 +0000 (18:04 +0000)]
LinGui: rename json preferences file ...

... so it doesn't overwrite old format plist file.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7180 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agolingui: use libhb preset management from linux gui
jstebbins [Thu, 14 May 2015 17:11:48 +0000 (17:11 +0000)]
lingui: use libhb preset management from linux gui

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7179 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agocli: fix --height
jstebbins [Thu, 14 May 2015 15:14:39 +0000 (15:14 +0000)]
cli: fix --height

Didn't set the proper flag to make hb_set_anamorphic_size prefer keeping
the height over the width.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7178 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agocli: fix initialization of encode ranges
jstebbins [Wed, 13 May 2015 23:36:33 +0000 (23:36 +0000)]
cli: fix initialization of encode ranges

The default chapter start or end was used if one but not the other of
start-at/stop-at were used.

Also don't overwrite current pass and pass_count status in hb_state_t
while searching for the position to start encoding.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7177 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agocli: restore -O, -I, -P, -U, and -g options
jstebbins [Wed, 13 May 2015 20:27:24 +0000 (20:27 +0000)]
cli: restore -O, -I, -P, -U, and -g options
I inadvertainly disabled them when "simplifying" things.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7176 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoLinGui: fix 32bit builds
jstebbins [Wed, 13 May 2015 17:57:54 +0000 (17:57 +0000)]
LinGui: fix 32bit builds
File operations performed by LinGui were failing for large files.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7174 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: remove che previews cache in HBPreviewGenerator when a setting changed and...
ritsuka [Wed, 13 May 2015 16:30:46 +0000 (16:30 +0000)]
MacGui: remove che previews cache in HBPreviewGenerator when a setting changed and not in HBPreviewController

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7173 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoMacGui: limit the preview images cache to ~ the size of 60 1080p images.
ritsuka [Tue, 12 May 2015 13:14:29 +0000 (13:14 +0000)]
MacGui: limit the preview images cache to ~ the size of 60 1080p images.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7171 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agoscan: increase scan size thresh to accomodate raw 4K avi
jstebbins [Tue, 12 May 2015 00:43:54 +0000 (00:43 +0000)]
scan: increase scan size thresh to accomodate raw 4K avi

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7170 b64f7644-9d1e-0410-96f1-a4d463321fa5

9 years agocli: fix missing subtitle "Default" flag when --all-subtitles is used
jstebbins [Mon, 11 May 2015 15:45:25 +0000 (15:45 +0000)]
cli: fix missing subtitle "Default" flag when --all-subtitles is used

Also fix case that can cause all subtitles to be added twice.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7169 b64f7644-9d1e-0410-96f1-a4d463321fa5