]> granicus.if.org Git - handbrake/log
handbrake
12 years agoencx264: use less generic names for some stuff.
Rodeo [Sun, 9 Sep 2012 01:03:33 +0000 (01:03 +0000)]
encx264: use less generic names for some stuff.

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

12 years agohb_apply_h264_level() update & cleanup.
Rodeo [Sun, 9 Sep 2012 00:55:59 +0000 (00:55 +0000)]
hb_apply_h264_level() update & cleanup.

The caller may specify any width & height now, rather than having to initialize the x264_param_t's fields directly.

Since it's reasonable to expect GUIs to only provide valid levels (if it doesn't, there's a bug that needs fixing), it's OK to abort when the requested level is not valid.

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

12 years agoUpdate the fmac scalar patch. Instead of a workaround, apply the fix from Libav,...
Rodeo [Sat, 8 Sep 2012 22:08:24 +0000 (22:08 +0000)]
Update the fmac scalar patch. Instead of a workaround, apply the fix from Libav, so that the patch can be dropped on the next bump.

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

12 years agoRemove mingw+libmkv dependency on libiberty.
konablend [Sat, 8 Sep 2012 20:59:47 +0000 (20:59 +0000)]
Remove mingw+libmkv dependency on libiberty.
Remove mingw+test dependency on libiberty.
Add build system support for propagating compiler DEFINES to contrib configure.

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

12 years agoWinGui: Couple Corrections to the Audiobitrate converter.
sr55 [Sat, 8 Sep 2012 18:16:46 +0000 (18:16 +0000)]
WinGui: Couple Corrections to the Audiobitrate converter.

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

12 years agoA patch for mpeg2 SetWindowLong() and GWL_USERDATA do not exist in recent versions...
sr55 [Sat, 8 Sep 2012 18:04:11 +0000 (18:04 +0000)]
A patch for mpeg2 SetWindowLong() and GWL_USERDATA do not exist in recent versions of mingw-w64. Since we don't output to the display anyway, I've just disabled the code so things build.

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

12 years agoWinGui: Hide the Debug Menu behind an option.
sr55 [Sat, 8 Sep 2012 17:54:15 +0000 (17:54 +0000)]
WinGui: Hide the Debug Menu behind an option.

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

12 years agoWinGui: Implement hb_get_audio_bitrate_limits() in the Windows UI to provide only...
sr55 [Sat, 8 Sep 2012 17:46:28 +0000 (17:46 +0000)]
WinGui: Implement hb_get_audio_bitrate_limits() in the Windows UI to provide only valid bitrate options.  Also disabled the bitrate selection control for flac.

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

12 years agoWinGui: Updated the Bitrate Converted to be a bit more intelligent about it's bitrate...
sr55 [Fri, 7 Sep 2012 21:40:41 +0000 (21:40 +0000)]
WinGui: Updated the Bitrate Converted to be a bit more intelligent about it's bitrate selection.

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

12 years agoWinGui: Make sure new Mixdowns get appropriate bitrate selections for aac
sr55 [Fri, 7 Sep 2012 21:05:02 +0000 (21:05 +0000)]
WinGui: Make sure new Mixdowns get appropriate bitrate selections for aac

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

12 years agoWinGui: Add new sample rates, 8, 11.025, 12 and 16 as options
sr55 [Fri, 7 Sep 2012 20:29:48 +0000 (20:29 +0000)]
WinGui: Add new sample rates, 8, 11.025, 12 and 16 as options

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

12 years agoWinGui: Add support for new Mixdowns (6.1, 7.1, 7.1 (5F/2R/LFE), Mono left only,...
sr55 [Fri, 7 Sep 2012 20:19:42 +0000 (20:19 +0000)]
WinGui: Add support for new Mixdowns (6.1, 7.1, 7.1 (5F/2R/LFE), Mono left only, Mono Right only). Please note this will break any presets that currently have 6ch (aka 5.1 or 6 Channels Discrete) Presets must be re-created.

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

12 years agoAdd autotools { autoconf, automake, libtool } as contribs.
konablend [Fri, 7 Sep 2012 20:10:37 +0000 (20:10 +0000)]
Add autotools { autoconf, automake, libtool } as contribs.

Primarily necessary for OSX platform after Xcode 4.2.x, but also useful for
any platform which is missing or has obsolete versions.

1. add configure option: --enable-local-autotools
2. --enable-local-autotools is automatically TRUE when any of { autoconf, automake, libtool } are not found in path.
3. --enable-local-autotools causes contribs of { m4, autoconf, automake, lib tool } to be built
4. add m4 to contrib (prerequisite for autoconf)
5. add autoconf to contrib (prerequisite for automaker and many contribs)
6. add automake to contrib (prerequisite for many contribs)
7. add libtool to contrib (prerequisite for many contribs)
8. All contribs (except the autotools themselves) automatically mark autotools as a prerequisite.
9. $(AUTOTOOL_MODULES) is available if other non-contrib modules need to mark as prerequisite.
10. PATH is automatically prefixed with contrib/bin for all modules, all targets.

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

12 years agoUpdate Libav -> HandBrake colorimetry translation after http://git.libav.org/?p=libav...
Rodeo [Fri, 7 Sep 2012 18:15:22 +0000 (18:15 +0000)]
Update Libav -> HandBrake colorimetry translation after http://git.libav.org/?p=libav.git;a=commit;h=ca93f0fa361c302e60455c5b82f88422ab66f589

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

12 years agoRemove redundant patch. It's been superseded by http://git.libav.org/?p=libav.git...
Rodeo [Fri, 7 Sep 2012 14:47:56 +0000 (14:47 +0000)]
Remove redundant patch. It's been superseded by http://git.libav.org/?p=libav.git;a=commit;h=14f063d294a18a31928d2167a66b1087910e14c8

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

12 years agoAudio improvements.
Rodeo [Mon, 3 Sep 2012 12:37:16 +0000 (12:37 +0000)]
Audio improvements.

New supported samplerates: 8, 11.025, 12, 16 kHz.
Now 8, 11.025, 12, 16, 22.05, 24, 42, 44.1, 48 Khz are supported.
Unsupported samplerates are sanitized to the closest samplerate for all encoders.

Samplerates < 32 kHz are now forbidden for AC3 encoding (sanitized to 32 kHz). Most AC3 decoders don't support such samplerates.

New upmixing: 3.0 (Front Left, Right & Center) can now be upmixed to 5.1 to preserve the center channel.

New mixdowns:

6.1 (Front Left, Right & Center, Surround Left, Right & Center, LFE)
7.1 (Front Left, Right & Center, Surround Left & Right, Rear Left & Right, LFE)
-> available to Vorbis & FLAC encoders for compatible input channel layouts
7.1 (Front Left, Right & Center, Front Left & Right of Center, Surround Left & Right, LFE)
-> available to AAC encoders (ca_aac, ca_haac, faac) for compatible input channel layouts

Mono (Left  Only): Stereo to Mono by discarding the Right channel
Mono (Right Only): Stereo to Mono by discarding the Left  channel
-> available to all encoders for non-Dolby Stereo input

The "6-channel discrete" mixdown becomes "5.1 Channels".

New bitrates: 960 - 1536 Kbps.
This lets users work around poor audio quality in crappy encoders by throwing more bits at them.

Bitrate limits have been re-worked and re-tested for all encoders.

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

12 years agoWinGui: Further work and fixes on the Process Isolation Service
sr55 [Sun, 2 Sep 2012 15:12:06 +0000 (15:12 +0000)]
WinGui: Further work and fixes on the Process Isolation Service

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

12 years agoWinGui: Fix preview window.
sr55 [Sun, 2 Sep 2012 13:14:56 +0000 (13:14 +0000)]
WinGui: Fix preview window.

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

12 years agoWinGui: Further work in the process isolation service.
sr55 [Sat, 1 Sep 2012 21:55:29 +0000 (21:55 +0000)]
WinGui: Further work in the process isolation service.

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

12 years agoWinGui: Fix culture issue with the framerate. Any non round number selection would...
sr55 [Sat, 1 Sep 2012 20:07:02 +0000 (20:07 +0000)]
WinGui: Fix culture issue with the framerate. Any non round number selection would fail.

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

12 years agoWinGui: Only allow 1 instance of the Queue, About, Log and Preview window to be opened.
sr55 [Sat, 1 Sep 2012 20:02:07 +0000 (20:02 +0000)]
WinGui: Only allow 1 instance of the Queue, About, Log and Preview window to be opened.

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

12 years agoCLI help: generate the list of available audio mixdowns, rather than naving it hardcoded.
Rodeo [Sat, 1 Sep 2012 16:03:45 +0000 (16:03 +0000)]
CLI help: generate the list of available audio mixdowns, rather than naving it hardcoded.

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

12 years agoMove mixdown-> channel_layout/matrix_encoding translation to hb_audio_resample_init().
Rodeo [Mon, 27 Aug 2012 22:00:28 +0000 (22:00 +0000)]
Move mixdown-> channel_layout/matrix_encoding translation to hb_audio_resample_init().

Unlike hb_audio_remap, hb_audio_resample will never be used in situations where we don't have a mixdown.

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

12 years agohb_audio_resample: move setters out of hb_audio_resample_update(), to dedicated funct...
Rodeo [Mon, 27 Aug 2012 21:17:59 +0000 (21:17 +0000)]
hb_audio_resample: move setters out of hb_audio_resample_update(), to dedicated functions.

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

12 years agoMacGui: Add support for a secondary audio language track.
dynaflash [Mon, 27 Aug 2012 18:36:17 +0000 (18:36 +0000)]
MacGui: Add support for a secondary audio language track.
- Patch courtesy of Dennis Frommknecht ... thank you!
- Adds a second language preference in Preferences > Audio
-- If the corresponding language is not available in the source, the group for this language is not added. If neither default nor alternate language is found, the first audio track would be added (as it is already). The alternate language can also be left empty in which case no second group is added.

-- The implementation ensures that the same track is not added twice (if default and alternate language are identical). It is also flexible enough to support an arbitrary number of languages. They just have to be added to array "preferredLanguages" at the beginning of method "addTracksFromPreset" (HBAudioController.m).

The original patch and explanation can be found at https://reviews.handbrake.fr/r/262/

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

12 years agoWinGui: Strip out the last traces of MEF since it's not going to be used.
sr55 [Mon, 27 Aug 2012 18:35:56 +0000 (18:35 +0000)]
WinGui: Strip out the last traces of MEF since it's not going to be used.

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

12 years agolibhb: decomb and deinterlace improvements
jstebbins [Mon, 27 Aug 2012 18:05:13 +0000 (18:05 +0000)]
libhb: decomb and deinterlace improvements

Use hb_buffer_t for reference buffers.
This is what eliminates extra buffer copies.

Simplified a lot of the code.
This resulted in some minor speed improvements and easier to read code.

Allow mcdeint+bob. Previously these could not be used together.

Thread the erode-dilate-erode-check steps in decomb3.  More speed improvement.

Speed of default decomb went from 62fps to 76fps.
Speed of fast decomb went from 90fps to 95fps.

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

12 years agoUse a more direct workaround for the DTS-ES XCh decoding issue.
Rodeo [Sun, 26 Aug 2012 14:35:54 +0000 (14:35 +0000)]
Use a more direct workaround for the DTS-ES XCh decoding issue.

The workaround committed in revision 4896 works for now, but if/when we add 6.1 encoding, we'll want to decode that discrete center surround channel. We could special-case it, but the issue would still be present under 64-bit Windows.

Instead, disable the buggy assembly optimizations until they are fixed.

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

12 years agoWinGui: Fix a second Integer overflow.
sr55 [Sat, 25 Aug 2012 19:43:58 +0000 (19:43 +0000)]
WinGui: Fix a second Integer overflow.

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

12 years agoWinGui: Fix an Integer overflow in the picture settings panel.
sr55 [Sat, 25 Aug 2012 19:42:49 +0000 (19:42 +0000)]
WinGui: Fix an Integer overflow in the picture settings panel.

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

12 years agoWinGui: General Tidyup of the Services Library API.
sr55 [Sat, 25 Aug 2012 14:05:56 +0000 (14:05 +0000)]
WinGui: General Tidyup of the Services Library API.

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

12 years agoWinGui: Initial Work to wire up Encode Process Isolation.
sr55 [Wed, 22 Aug 2012 20:11:18 +0000 (20:11 +0000)]
WinGui: Initial Work to wire up Encode Process Isolation.

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

12 years agoHandbrake Toolbar Icons by Nik Pawlak (holla@nikpawlak.com, @nikpawlak, http://nikpa...
sr55 [Mon, 20 Aug 2012 19:20:51 +0000 (19:20 +0000)]
Handbrake Toolbar Icons by Nik Pawlak  (holla@nikpawlak.com, @nikpawlak, http://nikpawlak.com)
For use only with Handbrake software and directly related non commercial projects.

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

12 years agoWinGui: Setup properties for the HandBrake.Server app.
sr55 [Sun, 19 Aug 2012 16:49:57 +0000 (16:49 +0000)]
WinGui: Setup properties for the HandBrake.Server app.

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

12 years agoWinGui: Prototype of process isolation support (to be used for libhb when this is...
sr55 [Sun, 19 Aug 2012 16:43:13 +0000 (16:43 +0000)]
WinGui: Prototype of process isolation support (to be used for libhb when this is fixed up). Uses WCF for process communication.
Initially for the scan service only, encode service proxy coming soon.
No changes required for the UI application. Two new implementations of IScan and IEncode will act as a proxy between the UI and the Server Service Layer.

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

12 years agoCosmetics.
Rodeo [Sun, 19 Aug 2012 13:26:16 +0000 (13:26 +0000)]
Cosmetics.

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

12 years agoRemove unused code.
Rodeo [Sun, 19 Aug 2012 13:24:07 +0000 (13:24 +0000)]
Remove unused code.

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

12 years agogfx: New Application Icon (Photoshop PSD and various sizes of png files) by Matt...
sr55 [Sat, 18 Aug 2012 19:21:40 +0000 (19:21 +0000)]
gfx: New Application Icon (Photoshop PSD and various sizes of png files) by Matt Johnson

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

12 years agoWinGui: Fixes to the Advanced Panel (8x8t and ref) and Picture Panel (Further Max...
sr55 [Wed, 15 Aug 2012 18:08:28 +0000 (18:08 +0000)]
WinGui: Fixes to the Advanced Panel (8x8t and ref) and Picture Panel (Further Max W/H fixes)

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

12 years agoDon't send empty audio packets downstream, as empty buffers are assumed to mark the...
Rodeo [Wed, 15 Aug 2012 15:43:33 +0000 (15:43 +0000)]
Don't send empty audio packets downstream, as empty buffers are assumed to mark the end of stream.

Such packets can result from samplerate or other types of audio conversion.

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

12 years agodeclpcm: modify hdr2layout.
Rodeo [Wed, 15 Aug 2012 15:25:06 +0000 (15:25 +0000)]
declpcm: modify hdr2layout.

AV_CH_LAYOUT_STEREO w/7 or 8 channels is invalid anyway, and will get sanitized in hb_ff_layout_xlat(). Doing it in declpcm directly avoids an unnecessary call to that function, with identical results.

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

12 years agoCheck the return code of hb_audio_resample_update(). This allows us to log an error...
Rodeo [Wed, 15 Aug 2012 15:15:35 +0000 (15:15 +0000)]
Check the return code of hb_audio_resample_update(). This allows us to log an error when it fails, so we know which decoder actually called the function.

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

12 years agoLet's hope this is the last of my stupid deca52 hb_audio_resample support mistakes.
Rodeo [Wed, 15 Aug 2012 14:22:15 +0000 (14:22 +0000)]
Let's hope this is the last of my stupid deca52 hb_audio_resample support mistakes.

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

12 years agoWinGui: Picture settings MaxWidth/Height fixes
sr55 [Mon, 13 Aug 2012 17:50:39 +0000 (17:50 +0000)]
WinGui: Picture settings MaxWidth/Height fixes

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

12 years agoInterop: Some refactoring, exposing list of video encoders, fixed const value, added...
randomengy [Sun, 12 Aug 2012 22:41:36 +0000 (22:41 +0000)]
Interop: Some refactoring, exposing list of video encoders, fixed const value, added some error checking.

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

12 years agoWinGui: Highlight the default preset in italics.
sr55 [Sun, 12 Aug 2012 10:35:46 +0000 (10:35 +0000)]
WinGui: Highlight the default preset in italics.

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

12 years agoImprove last commit. While the AC3 decoder doesn't use hb_ff_layout_xlat(), the code...
Rodeo [Sat, 11 Aug 2012 18:30:28 +0000 (18:30 +0000)]
Improve last commit. While the AC3 decoder doesn't use hb_ff_layout_xlat(), the code I added to it really belongs in hb_audio_resample.

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

12 years agoFix a bug where we were attempting to downmix Dolby Surround (AV_CH_LAYOUT_STEREO_DOW...
Rodeo [Sat, 11 Aug 2012 09:24:54 +0000 (09:24 +0000)]
Fix a bug where we were attempting to downmix Dolby Surround (AV_CH_LAYOUT_STEREO_DOWNMIX) to AV_CH_LAYOUT_STEREO via libavresample (which is not implemented).

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

12 years agohb_audio_resample: when avresample_open() fails, log the error description.
Rodeo [Fri, 10 Aug 2012 18:48:42 +0000 (18:48 +0000)]
hb_audio_resample: when avresample_open() fails, log the error description.

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

12 years agoRestore the old hack that disables DTS-ES extension processing. We support 6.1 now...
Rodeo [Fri, 10 Aug 2012 17:01:46 +0000 (17:01 +0000)]
Restore the old hack that disables DTS-ES extension processing. We support 6.1 now, but libavcodec's assembly optimizations are buggy under Win64, causing audio distortion when canceling the matrixed Cs channel out of Ls and Rs.

This can be removed when the bugs are fixed.

Note: unlike before, we still present the stream as 6.0/6.1 to users; it simplfies the code and doesn't make much difference since we always downmix to at least 5.1 anyway.

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

12 years agoWinGui: --subtitle-burn -> should be burned
sr55 [Wed, 8 Aug 2012 20:23:52 +0000 (20:23 +0000)]
WinGui: --subtitle-burn -> should be burned

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

12 years agoUpdate the NEWS file
sr55 [Sun, 5 Aug 2012 16:32:48 +0000 (16:32 +0000)]
Update the NEWS file

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

12 years agoAdd the readable copy of the MinGW doc file
sr55 [Sun, 5 Aug 2012 16:32:35 +0000 (16:32 +0000)]
Add the readable copy of the MinGW doc file

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

12 years agoMinGW doc updates
sr55 [Sun, 5 Aug 2012 16:31:30 +0000 (16:31 +0000)]
MinGW doc updates

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

12 years agoRemove Cygwin from the docs folder and add mingw
sr55 [Sun, 5 Aug 2012 16:23:19 +0000 (16:23 +0000)]
Remove Cygwin from the docs folder and add mingw

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

12 years agoWinGui: Add Audio Track Name option back in. For now, I've used a toggle button on...
sr55 [Sun, 5 Aug 2012 15:02:10 +0000 (15:02 +0000)]
WinGui: Add Audio Track Name option back in. For now, I've used a toggle button on the audio track to expand the row to show hidden audio options.

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

12 years agoWinGui: Improvements in the options screen layout
sr55 [Sat, 4 Aug 2012 19:36:28 +0000 (19:36 +0000)]
WinGui: Improvements in the options screen layout

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

12 years agoWinGui: Added a right click menu for the Audio, Subtitles and Chapters tabs with...
sr55 [Sat, 4 Aug 2012 18:44:50 +0000 (18:44 +0000)]
WinGui: Added a right click menu for the Audio, Subtitles and Chapters tabs with some common actions.

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

12 years agoEncode log: indicate if audio->config.out.normalize_mix_level is enabled.
Rodeo [Thu, 2 Aug 2012 23:25:38 +0000 (23:25 +0000)]
Encode log: indicate if audio->config.out.normalize_mix_level is enabled.

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

12 years agobuild system: enforce an order to applying contrib patches
jstebbins [Thu, 2 Aug 2012 22:17:38 +0000 (22:17 +0000)]
build system: enforce an order to applying contrib patches
New patch for a52dec has a dependency on another patch and must be
applied after it.  Patches appeared to be getting applied in whatever
order the filesystem presented the files in.

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

12 years agoUse hb_audio_resample for downmixing AC3 sources. DRC is still applied by liba52.
Rodeo [Thu, 2 Aug 2012 21:43:22 +0000 (21:43 +0000)]
Use hb_audio_resample for downmixing AC3 sources. DRC is still applied by liba52.

Add support for center & surround mix levels to hb_audio_resample.

This allows us to support upmixing all audio sources. For sources that have at least 2 front and one back or side channel(s), allow upmixing to 5.1:

3.0/3.1 (2 front and 1 back channels)
4.0/4.1 (3 front and 1 back channels)
4.0/4.1 (2 front and 2 side channels)
5.0     (3 front and 2 side channels)

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

12 years agolibhb: Allow control of audio mix normalization
jstebbins [Wed, 1 Aug 2012 23:05:00 +0000 (23:05 +0000)]
libhb: Allow control of audio mix normalization
Since switching to libavresample for audio mixing, our output
volume levels have been reduced because libavresample
does mix level normalization by default.  This change
applies a patch to libav to allow us to disable this behavior
and adds a new field to hb_audio_config_t to allow the
hb frontends to control this feature.

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

12 years agoBump Libav to v0.8-2551-gc83f44d.
Rodeo [Mon, 30 Jul 2012 21:46:19 +0000 (21:46 +0000)]
Bump Libav to v0.8-2551-gc83f44d.

Fixes an issue in assembly code that could result in very poor performance when encoding with x264 & AC3 Passthru.

Thanks to our John Stebbins for finding the cause of the bug, and to x264 & Libav developers for fixing it.

Miscellaneous other fixes and improvements, including multichannel Apple Lossless audio decoding support.

Also, clean up our Libav configure options (group things together, disable all hardware accelerations with one switch instead of individually, and disable building the unused avfilter library).

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

12 years agowork: simplify & optimize.
Rodeo [Sun, 29 Jul 2012 15:11:40 +0000 (15:11 +0000)]
work: simplify & optimize.

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

12 years agowork: indentation and miscellaneous cosmetics.
Rodeo [Sun, 29 Jul 2012 14:49:53 +0000 (14:49 +0000)]
work: indentation and miscellaneous cosmetics.

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

12 years agowork: don't sanitize output bitrate etc. for passthrough audio.
Rodeo [Sun, 29 Jul 2012 14:27:59 +0000 (14:27 +0000)]
work: don't sanitize output bitrate etc. for passthrough audio.

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

12 years agoUse HB_INVALID_AMIXDOWN and HB_AMIXDOWN_NONE where applicable.
Rodeo [Sun, 29 Jul 2012 14:16:28 +0000 (14:16 +0000)]
Use HB_INVALID_AMIXDOWN and HB_AMIXDOWN_NONE where applicable.

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

12 years agoIntroduce a negative HB_INVALID_AMIXDOWN.
Rodeo [Fri, 27 Jul 2012 23:37:16 +0000 (23:37 +0000)]
Introduce a negative HB_INVALID_AMIXDOWN.

Having the audio->config.out.mixdown start at 0 caused it to be treated as usigned (under OS X at least), causing the sanitizing code in work.c to fail:

line 820, (audio->config.out.mixdown <= 0) would evaluate as false, and so the best mixdown was being set instead of the default one.

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

12 years agoWinGui: Couple more Picture Settings Tab bug fixes. Note: Still a few more issues...
sr55 [Wed, 25 Jul 2012 11:39:29 +0000 (11:39 +0000)]
WinGui: Couple more Picture Settings Tab bug fixes. Note: Still a few more issues to work out here.

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

12 years agoWinGui: Don't set -X or -Y for the CLI Query. The UI handles Max Width / Height.
sr55 [Wed, 25 Jul 2012 11:25:07 +0000 (11:25 +0000)]
WinGui: Don't set -X or -Y for the CLI Query. The UI handles Max Width / Height.

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

12 years agomuxmkv: reset the output track configuration before adding each audio track, rather...
Rodeo [Tue, 24 Jul 2012 22:04:51 +0000 (22:04 +0000)]
muxmkv: reset the output track configuration before adding each audio track, rather than just once before adding all audio tracks.

Among other things, avoids having the HE-AAC outputSamplingFreq contaminate all following non-HE or non-AAC tracks.

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

12 years agoWinGui: Couple UI tweaks and better text rendering throughout the app since no-one...
sr55 [Mon, 23 Jul 2012 18:28:21 +0000 (18:28 +0000)]
WinGui: Couple UI tweaks and better text rendering throughout the app since no-one complained yet.

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

12 years agoWinGui: Fix up the Audio Passthru selection options.
sr55 [Mon, 23 Jul 2012 16:57:39 +0000 (16:57 +0000)]
WinGui: Fix up the Audio Passthru selection options.

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

12 years agoWinGui: Fix a possible crash after scanning a source.
sr55 [Mon, 23 Jul 2012 14:22:23 +0000 (14:22 +0000)]
WinGui: Fix a possible crash after scanning a source.

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

12 years agoOnly log the input bitrate if it's valid; some decoders (e.g. TrueHD) set it to a...
Rodeo [Mon, 23 Jul 2012 03:23:22 +0000 (03:23 +0000)]
Only log the input bitrate if it's valid; some decoders (e.g. TrueHD) set it to a dummy value of 1, resulting in:

[05:15:24]  * audio track 1
[05:15:24]    + decoder: English (truehd) (5.1 ch) (track 1, id 0x1)
[05:15:24]      + bitrate: 0 kbps, samplerate: 48000 Hz

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

12 years agolibhb: fix logging of container aspect in dvd.c and dvdnav.c
jstebbins [Sun, 22 Jul 2012 08:21:01 +0000 (08:21 +0000)]
libhb: fix logging of container aspect in dvd.c and dvdnav.c

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

12 years agoWinGui: Move some stuff around in the services library and refactor out some legacy...
sr55 [Fri, 20 Jul 2012 17:06:08 +0000 (17:06 +0000)]
WinGui: Move some stuff around in the services library and refactor out some legacy code.

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

12 years agoWinGui: Array of fixes and changes
sr55 [Fri, 20 Jul 2012 13:24:52 +0000 (13:24 +0000)]
WinGui: Array of fixes and changes
- Change Font rendering to "Display" mode to see if folks prefer it. If not it can be reverted back.
- Fixes to Queue Edit for the Audio/Subs panel. These should now populate correctly.
- Thrown the Drive detector onto a background thread as it seems the windows drive management service can get "stuck" and block the app from starting while it waits.

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

12 years agoEnable threaded decoding for ProRes video sources.
Rodeo [Wed, 18 Jul 2012 23:43:19 +0000 (23:43 +0000)]
Enable threaded decoding for ProRes video sources.

The bug which was worked around by disabling threading has now been fixed in Libav, and I didn't find any issue when testing additional ProRes sources.

Reference: https://forum.handbrake.fr/viewtopic.php?f=12&t=22599

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

12 years agolibhb: fix deinterlace fast green stripe
jstebbins [Wed, 18 Jul 2012 18:45:05 +0000 (18:45 +0000)]
libhb: fix deinterlace fast green stripe

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

12 years agoMore fine grained progress statistics during subtitle scan
jstebbins [Wed, 18 Jul 2012 12:27:46 +0000 (12:27 +0000)]
More fine grained progress statistics during subtitle scan
Make reader compute subtitle scan progress based on timestamps seen and
duration instead of chapter marks.

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

12 years agoLinGui: Fix preset import of new framerates
jstebbins [Tue, 17 Jul 2012 18:02:33 +0000 (18:02 +0000)]
LinGui: Fix preset import of new framerates

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

12 years agoLinGui: remove obsolete ubuntu lucid rule
jstebbins [Mon, 16 Jul 2012 21:02:45 +0000 (21:02 +0000)]
LinGui: remove obsolete ubuntu lucid rule
Lucid was removed a while ago, but I missed the rule that pushes the
now non-existent source package to the PPA build server.

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

12 years agodisable harfbuzz on libass
sr55 [Mon, 16 Jul 2012 18:07:15 +0000 (18:07 +0000)]
disable harfbuzz on libass

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

12 years agoWinGui: Pushing version numbers forward for the main branch.
sr55 [Mon, 16 Jul 2012 07:52:20 +0000 (07:52 +0000)]
WinGui: Pushing version numbers forward for the main branch.

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

12 years agohb_audio_remap: remove unneeded channel map.
Rodeo [Sun, 15 Jul 2012 19:53:09 +0000 (19:53 +0000)]
hb_audio_remap: remove unneeded channel map.

I forgot part of it in the previous commit.

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

12 years agohb_audio_remap: remove unneeded channel map.
Rodeo [Sun, 15 Jul 2012 19:51:38 +0000 (19:51 +0000)]
hb_audio_remap: remove unneeded channel map.

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

12 years agoUse libav for dts audio decoding instead of libdca
jstebbins [Sun, 15 Jul 2012 19:47:01 +0000 (19:47 +0000)]
Use libav for dts audio decoding instead of libdca
libdca has no advantage over libav for dts audio decoding.  It doesn't do
drc and it's downmix capabilities are actually inferior to libav.  So this
completely removes libdca from libhb

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

12 years agoChange a few more hb_log() calls to hb_error(), and some cosmetics.
Rodeo [Sun, 15 Jul 2012 17:37:27 +0000 (17:37 +0000)]
Change a few more hb_log() calls to hb_error(), and some cosmetics.

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

12 years agoFix something John and I both missed.
Rodeo [Sun, 15 Jul 2012 16:44:37 +0000 (16:44 +0000)]
Fix something John and I both missed.

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

12 years agohb_audio_resample: libvaresample wrapper.
Rodeo [Sun, 15 Jul 2012 16:40:46 +0000 (16:40 +0000)]
hb_audio_resample: libvaresample wrapper.

Avoids having code that's mostly identical in multiple files.

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

12 years agodecpgssub: simplify code (merge several if/else blocks).
Rodeo [Sun, 15 Jul 2012 16:31:03 +0000 (16:31 +0000)]
decpgssub: simplify code (merge several if/else blocks).

Also, discard empty subtitles until we've seen the first non-empty sub, as they are not needed. This can happen when encoding from the middle of a source, for example.

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

12 years agoWinGui: Working drive tray insert/remove detection.
sr55 [Sat, 14 Jul 2012 12:09:06 +0000 (12:09 +0000)]
WinGui: Working drive tray insert/remove detection.

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

12 years agoWinGui: Improve the code behind the taskbar source menu. Note, The Disc insert detect...
sr55 [Fri, 13 Jul 2012 21:28:03 +0000 (21:28 +0000)]
WinGui: Improve the code behind the taskbar source menu. Note, The Disc insert detection still isn't in place, so it will only show the initial available drives, it won't detect disc changes yet.

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

12 years agohb_audio_remap improvements.
Rodeo [Thu, 12 Jul 2012 20:13:23 +0000 (20:13 +0000)]
hb_audio_remap improvements.

This moves some logic outside of the decoders/encoders and into a single place.

Encoders that do their own remapping (faac, vorbis) can still generate a remap table with hb_audio_remap_build_table(), without having to use hb_audio_remap().

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

12 years agoCleanup after last commit: delete empty files, rename some patches.
Rodeo [Wed, 11 Jul 2012 21:41:19 +0000 (21:41 +0000)]
Cleanup after last commit: delete empty files, rename some patches.

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

12 years agobump libav to libav-v0.8-2197-g1a068bf
jstebbins [Wed, 11 Jul 2012 20:10:20 +0000 (20:10 +0000)]
bump libav to libav-v0.8-2197-g1a068bf
Resolves several deprecated api's
Eliminates several libav patches
Eliminates our builtin downmix in favour of avresample
Eliminate HB_INPUT_CH_LAYOUT_* and replace with AV_CH_LAYOUT_*
Resolves 6.x and 7.0 input channel layout issues HB had
Adds downmix support to declpcm.  We never had it!

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

12 years agoWinGui: Fix an issue where selecting the dvd drive in the source menu would not allow...
sr55 [Wed, 11 Jul 2012 17:41:27 +0000 (17:41 +0000)]
WinGui: Fix an issue where selecting the dvd drive in the source menu would not allow the source to be encoded after scanning.

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

12 years agolibhb: fix hb_read_preview() when invalid index is passed
jstebbins [Wed, 11 Jul 2012 12:30:41 +0000 (12:30 +0000)]
libhb: fix hb_read_preview() when invalid index is passed
Was returning last preview instead of NULL

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

12 years agolibhb: fix problem reading preview
jstebbins [Tue, 10 Jul 2012 12:37:37 +0000 (12:37 +0000)]
libhb: fix problem reading preview
The title "index" is not an index into list_title.  It is a unique number
assigned to each title in the list.  So we must scan the list for a matching
"index".

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