sr55 [Thu, 28 Apr 2011 17:33:04 +0000 (17:33 +0000)]
WinGui:
Fix a small issue with the last checkin. Folder was created but item was not added to the queue after. Forgot to remove a return statement.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3965
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 28 Apr 2011 00:41:39 +0000 (00:41 +0000)]
libhb: don't use deprecated elements of the FFmpeg/Libav API
HandBrake uses many attributes of the FFmpeg API that are were deprecated
when we did the last bump. Many of them no longer exist in current
FFmpeg/Libav git, or are going to be removed soon.
Replaces them with non-deprecated attributes that already exist in the
build we currently use.
Thanks to Rodeo for the patch.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3964
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 27 Apr 2011 22:53:25 +0000 (22:53 +0000)]
Fix a crash that can happen due to corrupt mpeg2 data
The mpe2dec can return nonsense values for width and height that
make sws_getContext fail. So check the context return value and
just drop the buffer if it fails.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3963
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Wed, 27 Apr 2011 19:40:41 +0000 (19:40 +0000)]
WinGui:
- Automatically attempt to create destination path if it does not exist when starting an encode.
- When adding to queue, it'll optionally ask.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3962
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 27 Apr 2011 15:05:34 +0000 (15:05 +0000)]
Fix a problem with overlapping vobsubs
Since we now allow subtitles that overlap in time, it is no longer
appropriate to arbitrarily set the duration to 3 seconds when vobsubs
don't have an explicit stop time. This causes them to overlap on the display.
So now, we set the stop time for such vobsubs to -1. Then in sync adjust the
stop time to the start of the next vobsub when it is seen.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3961
b64f7644-9d1e-0410-96f1-
a4d463321fa5
saintdev [Wed, 27 Apr 2011 07:07:50 +0000 (07:07 +0000)]
Fix Brian Lopez's name and email in AUTHORS file
patch by Brian Lopez <seniorlopez gmail com>
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3960
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 26 Apr 2011 14:35:43 +0000 (14:35 +0000)]
LinGui: fix spelling error
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3959
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Mon, 25 Apr 2011 15:57:07 +0000 (15:57 +0000)]
Make order of audio tracks found in PS streams more predictable
Since PS streams don't have a directory of streams, we find them by
scanning the PES headers for stream types. We were adding them in the
order found which is pretty random. This sorts audios by substream id.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3958
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Mon, 25 Apr 2011 15:32:43 +0000 (15:32 +0000)]
Fix a problem when encoding the same source audio track twice from BD sources
The pid and substream were being added to the TS stream list twice which
caused 2 copies of each packet to be returned to reader. This caused sync
to drop every second packet with "time went backwards" log message.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3957
b64f7644-9d1e-0410-96f1-
a4d463321fa5
dynaflash [Mon, 25 Apr 2011 14:23:37 +0000 (14:23 +0000)]
MacGui: Simplify HBDVDDetector bsdName creation
- Instead of lazily populating bsdName identically in two places, why not just have its accessor do it.
- As per patch provided by blindjimmy https://reviews.handbrake.fr/r/78/
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3956
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sun, 24 Apr 2011 03:12:23 +0000 (03:12 +0000)]
fix stall due due to propagation of incorrect audio timestamp
Was passing AV_NOPTS_VALUE that is generated by libav. Needed to
translate to -1 which is what we use to designate invalid timestamps.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3955
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sun, 24 Apr 2011 01:26:26 +0000 (01:26 +0000)]
Change scale factor for timestamp offset in vobsub commands
Testing shows that this should be 1024 instead of 900.
Thanks to Rodeo for validation and patch.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3954
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sat, 23 Apr 2011 14:33:37 +0000 (14:33 +0000)]
WinGui:
- Another fix to make sure a valid mixdown is set when changing encoders.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3953
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sat, 23 Apr 2011 14:24:14 +0000 (14:24 +0000)]
WinGui:
- Multiple bug fixes to the Audio Panel. (Disable DRC for non AC3 sources, DPL2 getting swaped out for stereo when you click between tracks, Exception thrown due to the source track not getting pushed into the Audio model before it's used.)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3952
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Fri, 22 Apr 2011 18:07:12 +0000 (18:07 +0000)]
WinGui:
- Added new substitute option to the AutoName default path feature. "{source_folder_name}"
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3951
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Fri, 22 Apr 2011 14:51:59 +0000 (14:51 +0000)]
Add support for TrueHD and DTS-HD from BD sources
TrueHD and DTS-HD now show up in the audio list along side their
AC-3 and DTS counterparts.
Note that currently the DTS-HD decoder we are using (ffmpeg) discards
the HD portion of the stream and onle decodes the DTS core portion. So
there is no advantage yet to using the DTS-HD stream. In the future
I would like to add DTS-HD passthru support and hopefully ffmpeg will
improve their DTS-HD decoder.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3950
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 21 Apr 2011 16:12:26 +0000 (16:12 +0000)]
bump x264 from r1924 to r1937
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3949
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 21 Apr 2011 16:01:54 +0000 (16:01 +0000)]
LinGui: Simplify some code in the hud compositor
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3948
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 21 Apr 2011 16:00:32 +0000 (16:00 +0000)]
remove unused vfr member of hb_job_t
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3947
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Thu, 21 Apr 2011 13:09:09 +0000 (13:09 +0000)]
WinGui:
- Added "Custom" option to the Add Preset Window.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3946
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Thu, 21 Apr 2011 12:51:01 +0000 (12:51 +0000)]
WinGui:
- Fix an issue with the Advanced options not being passed through to the CLI correctly.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3945
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 20 Apr 2011 23:31:01 +0000 (23:31 +0000)]
Remove redundant code.
Should have been removed here https://trac.handbrake.fr/changeset/2917
Thanks to rodeo for spotting this.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3944
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Wed, 20 Apr 2011 17:37:18 +0000 (17:37 +0000)]
WinGui:
- Save Filter settings in presets by default. Seems to be common mistake.
- Set the AcceptButton property on a few windows so they react properly to keyboard commands.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3943
b64f7644-9d1e-0410-96f1-
a4d463321fa5
dynaflash [Wed, 20 Apr 2011 16:17:36 +0000 (16:17 +0000)]
Macgui: Remove last vestiges of the deprecated job->vfr.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3942
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Tue, 19 Apr 2011 20:38:07 +0000 (20:38 +0000)]
WinGui:
- 2 Exceptions fixed. (Removing a preset failed and After scan, audio panel would crash)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3941
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 19 Apr 2011 17:27:58 +0000 (17:27 +0000)]
LinGui: fix a potential crash when hud is destroyed
link list could be modified while being traversed in the "forall" method.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3940
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 19 Apr 2011 00:18:17 +0000 (00:18 +0000)]
LinGui: remember user window size changes
window size gets stored in prefs when changed and restored whenever
ghb starts.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3939
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Mon, 18 Apr 2011 20:47:02 +0000 (20:47 +0000)]
WinGui:
- added mpeg2 option to the encoders list.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3938
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Mon, 18 Apr 2011 12:10:07 +0000 (12:10 +0000)]
HE-AAC support for the OSX port. Thanks go to amarcus, ritsuka and rodeo.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3937
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sun, 17 Apr 2011 20:26:08 +0000 (20:26 +0000)]
LinGui: fix a problem with display of audio gain value.
Was not updating properly, showed -1 and -0 when should have been 0.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3936
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sat, 16 Apr 2011 18:36:23 +0000 (18:36 +0000)]
WinGui:
- Switching Audio Selection dropdown to be databound. Added The scanned source track to the Audio Track model.
- Added new Move to Top / Bottom options on the right click.
- Further UI tweaks and fixes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3935
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sat, 16 Apr 2011 15:21:42 +0000 (15:21 +0000)]
WinGui:
- Moved DRC onto the advanced audio panel and tweaked the UI slightly.
- Updated to Stylecop 4.5
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3934
b64f7644-9d1e-0410-96f1-
a4d463321fa5
dynaflash [Sat, 16 Apr 2011 02:58:44 +0000 (02:58 +0000)]
MacGui: Add ffmpeg Mpeg2 encoder support.
- Patch by Rodeo. Thanks!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3933
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sat, 16 Apr 2011 01:17:13 +0000 (01:17 +0000)]
LinGui: Fix PAR overflow issues.
PAR values were saturating the max values allowed in PAR widget controls.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3932
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sat, 16 Apr 2011 01:11:53 +0000 (01:11 +0000)]
Fix int overflow that can happen when computing PAR
If the source has large non-reduced PAR values, our computed value
was overflowing an int. Compute it in an int64_t then reduce it.
Also, keep num and den below 65535. Larger values just aren't really
significant and will cause more overflow issues.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3931
b64f7644-9d1e-0410-96f1-
a4d463321fa5
dynaflash [Fri, 15 Apr 2011 22:42:31 +0000 (22:42 +0000)]
MacGui: implement Frame Rate Mode as per the Lingui.
- Removes the current Peak Framerate checkbox and replaces it with appropriate Radio Buttons depending on if Same as Source or a specific framerate is chosen in the Frame Rate popup widget.
- Gets the macgui up to speed with https://trac.handbrake.fr/changeset/3770
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3930
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Fri, 15 Apr 2011 21:04:18 +0000 (21:04 +0000)]
WinGui:
- Added "Advanced" audio options floating popup window.
* This exposes a new Audio Gain Control (-20 to +20 dB)
- Added support for (--gain=x,y,z) to the preset Loader.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3929
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Fri, 15 Apr 2011 20:01:00 +0000 (20:01 +0000)]
WinGui:
- Add "Send to" option. This will pass the encoded output file name of each completed job on the queue to a 3rd party application with optional arguments passed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3928
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Fri, 15 Apr 2011 15:38:45 +0000 (15:38 +0000)]
LinGui: fix incorrect list element free in custom hud widget
was freeing the widget instead of the structure that contains the widget.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3927
b64f7644-9d1e-0410-96f1-
a4d463321fa5
dynaflash [Fri, 15 Apr 2011 14:22:59 +0000 (14:22 +0000)]
MacGui: Allow SRT File Paths up to 256 characters
- Patch by Rodeo as per https://reviews.handbrake.fr/r/51/ Thanks!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3926
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Fri, 15 Apr 2011 00:40:45 +0000 (00:40 +0000)]
LinGui: Remove old unnecessary gtk bug workaround.
They seem to have fixed the problem now.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3925
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 14 Apr 2011 23:18:39 +0000 (23:18 +0000)]
Fix ubuntu package dependency again :( it's picky about the name.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3924
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 14 Apr 2011 22:15:32 +0000 (22:15 +0000)]
Fix another ubuntu natty package dependency issue.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3923
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 14 Apr 2011 16:48:00 +0000 (16:48 +0000)]
CLI: update help text to add ffmpeg mpeg-2 encoder
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3922
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 14 Apr 2011 15:57:31 +0000 (15:57 +0000)]
Fix a build dependency for ubuntu 11.04 packaging
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3921
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 13 Apr 2011 18:27:19 +0000 (18:27 +0000)]
Add Ubutnu 11.04 to nightly builds
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3920
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 13 Apr 2011 18:19:36 +0000 (18:19 +0000)]
Change HB.version from "svnXXXX" to "XXXXsvn"
This fixes an issue with packaging for Ubuntu 11.04. The packaging tool
now requires that version numbers start with a digit. They used to just
issue a warning.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3919
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Mon, 11 Apr 2011 22:17:38 +0000 (22:17 +0000)]
Fix a problem with BD audio detection.
Each clip of a BD are allowed to have different audios if the clip
does not have a seamless connection to the previous clip. Most titles
are a series of seamless clips that all have the exact same audio. But
I found some that have a final non-seamless clip that has completely
different audios and broke the old algorithm.
New algorithm, look at each clip and count the number of other clips have
the same audio. Use the clip that has the most matches.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3918
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sun, 10 Apr 2011 17:39:24 +0000 (17:39 +0000)]
Fix a deadlock that can happen with p-to-p encoding
With p-to-p, the audio sync thread waits for the video sync thread to
reach the designated start point. There is a possibility that the video
decoder will drop so many frames that the audio sync fifo fills before
any frames reach the video sync thread. When this happens, drop some
audio to unplug the pipeline.
Also, to make this less likely to happen, start sending data to the video
decoder 2 seconds before the actual desired start point. This will allow
the decoder to find an initial i-frame before the audio stalls since the
audio sync thread drops any audio that is before the designated start point.
A side effect of this is our start time now more accurate since the decoder
is only dropping frames before the start point instead of after.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3917
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sat, 9 Apr 2011 11:35:43 +0000 (11:35 +0000)]
WinGui:
- Fix a culture issue with user settings (x264)
- Made the Preset loader more strict with what settings it can and can't load with regards to video settings.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3916
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Fri, 8 Apr 2011 20:55:51 +0000 (20:55 +0000)]
WinGui:
- Another QueryGenerator fix for VP3. Don't specify an empty -x
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3915
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Fri, 8 Apr 2011 20:54:57 +0000 (20:54 +0000)]
WinGui:
- Fixed ffmpeg advanced options panel CLI query generation.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3914
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Fri, 8 Apr 2011 20:53:28 +0000 (20:53 +0000)]
WinGui:
- Improved audio panel design.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3913
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Fri, 8 Apr 2011 20:32:32 +0000 (20:32 +0000)]
Handle boundaries between blueray clips better.
These boundaries are always discontinuities. But sometimes we were
not detecting them as such and would drop frames. So set a flag
in the buffer when libbluray tells us a new clip is starting and
use that to trigger computation of a new scr offset.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3912
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Fri, 8 Apr 2011 19:34:20 +0000 (19:34 +0000)]
WinGui: AudioPanel refactored.
- Switch the Audio panel to use DataBinding to a BindingList collection leading to much cleaner code.
- Added gain support (--gain=3,4) to the services library. (UI has not been done yet)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3911
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Fri, 8 Apr 2011 18:10:43 +0000 (18:10 +0000)]
Eliminate incompatible pointer type warnings for sws_scale
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3910
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Fri, 8 Apr 2011 17:44:16 +0000 (17:44 +0000)]
Use bibiliographic form of ISO-639-2 lang codes in muxmkv
The Mkvtoolnix developer claims that MKV only allows the bibliographic form
of ISO-639-2 lang codes: https://www.bunkus.org/bugzilla/show_bug.cgi?id=598
http://matroska.org/technical/specs/index.html#languages seems to confirm this.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3909
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Fri, 8 Apr 2011 16:49:24 +0000 (16:49 +0000)]
Change internal audio representation range
...from float [-32768...32767] to float [-1.0...1.0]
Using the range [-1.0..1.0] requires fewer translations of the range for our
various encoders and decoders. This also gets rid of a hacky
translation from float to int to float in decavcodec audio decoding.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3908
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 7 Apr 2011 00:19:50 +0000 (00:19 +0000)]
Fix dts downmix when the output encoder is lame
libdca downmix is broken if you ask for dolby and DCA_ADJUST_LEVEL.
Since we fixed the clipping problem that DCA_ADJUST_LEVEL is used for
with changeset 3294, we can just disable this.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3907
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 6 Apr 2011 18:42:17 +0000 (18:42 +0000)]
bump x264 from r1913 to r1924
It's that time again...
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3906
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 5 Apr 2011 21:47:28 +0000 (21:47 +0000)]
LinGui: fix a couple layout issues
Source title display was truncated.
Notbook widget was changing sizes when changing video encoders.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3905
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 5 Apr 2011 21:15:58 +0000 (21:15 +0000)]
LinGui: fix build error on mingw
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3904
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 5 Apr 2011 20:46:35 +0000 (20:46 +0000)]
LinGui: add audio gain adjustment and create advanced audio dialog.
Gain, DRC, and Sample Rate are now in an advanced audio dialog.
This makes the audio tab less crowded and makes room for future
improvements.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3903
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 5 Apr 2011 20:42:40 +0000 (20:42 +0000)]
Add audio gain adjustment to libhb and CLI
New CLI option is --gain <float>. Value is measured in dB. Negative values are
quieter, positive values are louder.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3902
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 5 Apr 2011 00:05:05 +0000 (00:05 +0000)]
Start mkv clusters with a video keyframe whenever possible
libmkv now starts a new cluster whever there is a video keyframe if
the new cluster would not be closer than 2 seconds to the previous cluster.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3901
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Mon, 4 Apr 2011 14:52:05 +0000 (14:52 +0000)]
Fix the volume output level of our dts decoder
dcadec returns samples that have values in the range -1.0 to 1.0.
We need these to be converted to the range -32768 to 32767. For some
reason, decdca was scaling by 16768 instead of 32767. This has been
like this since dts support was initially added by maurj.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3900
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sun, 3 Apr 2011 17:49:44 +0000 (17:49 +0000)]
WinGui:
- Move all user settings for the Services library into the services library.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3899
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sat, 2 Apr 2011 20:20:41 +0000 (20:20 +0000)]
Make logging of audio and subtitle id's more consistant
1) whenever we log audio->id or subtitle->id using hex formatting, precede
the hex with 0x (which was already done in some places but not others)
2) format audio->id as hex instead of decimal in sync.c (makes it much easier
to see which track "went backwards" or had silence added to it, checking
the job configuration logged by work.c)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3898
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sat, 2 Apr 2011 20:17:14 +0000 (20:17 +0000)]
Shorten instead of dropping overlapping subtitles in mp4
If the non-overlaping remainder is greater than 0.5 seconds, shorten
the subtitle instead of completely dropping it.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3897
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sat, 2 Apr 2011 20:14:00 +0000 (20:14 +0000)]
Flush ffmpeg codec buffers after every seek.
According to several e-mails I've read on ffmpeg-devel, avcodec_flush_buffers
should be called after any seek. It appears this is even more critical to do
when using frame based multi-threading. I don't see any immediate difference
in functionality by adding this, but it may prevent surprises in the future.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3896
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sat, 2 Apr 2011 19:58:34 +0000 (19:58 +0000)]
Fix garbled previews from BD h.264 sources
Forome reason, frames that are tagged as recovery points in many BD h.264
streams do not result in complete frames when decoded. Pushing 2 extra
frames through the decoder seems to always fix this. This patch extends
something I was already doing when generating previews from a BD structure.
This just applies the same logic to ffmpeg streams that have h.264 video.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3895
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 31 Mar 2011 21:22:10 +0000 (21:22 +0000)]
get rid of an superfluous test and decriment
just an old thinko that needed correcting.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3894
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Thu, 31 Mar 2011 20:11:30 +0000 (20:11 +0000)]
WinGui:
- Add code to attempt an automatic recovery if config files get corrupted.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3893
b64f7644-9d1e-0410-96f1-
a4d463321fa5
dynaflash [Thu, 31 Mar 2011 13:41:01 +0000 (13:41 +0000)]
MacGui: Make the queue window's wording match that of the main window.
- Patch by Rodeo.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3892
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 31 Mar 2011 00:05:23 +0000 (00:05 +0000)]
True SSA passthru for MKV.
We were converting SSA to UTF8 subs which looses a lot of formatting.
Now we pass through the ssa unmodified and add all fonts as attachments
to the mkv.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3891
b64f7644-9d1e-0410-96f1-
a4d463321fa5
davidfstr [Wed, 30 Mar 2011 02:50:42 +0000 (02:50 +0000)]
MP4 muxer ignores all but the first of overlapping UTF-8 subtitles.
This is necessary because MP4 does not support overlapping subtitles. Attempting to use overlapping subtitles causes the display of subsequent subtitles to be delayed incorrectly.
Subsequent patches may merge UTF-8 subtitles (upstream) so that this case does not occur.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3890
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 29 Mar 2011 22:43:07 +0000 (22:43 +0000)]
Fix chapter passthru problems with some files.
If the video stream is not the first track in the file, chapters were lost.
During scan, we identify which track is video and stash this in title.
While reading, when a chapter is found we want to tag the next video buffer.
But the video track id stored in the title was not being applied when
opening the file for reading, so the chapter mark always went on track id 0.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3889
b64f7644-9d1e-0410-96f1-
a4d463321fa5
dynaflash [Tue, 29 Mar 2011 17:55:25 +0000 (17:55 +0000)]
MacGui: Never disable the chapter markers checkbox.
Patch by Rodeo ... Thanks!
- Discussed here https://reviews.handbrake.fr/r/58/
This allows users to enable/disable chapter markers regardless of whether the source has chapters, which is very useful when saving a preset.
This will not cause chapter markers to be inserted if we only have one chapter, as this is sanitized twice:
- once in macosx/Controller.m, in createQueueFileItem
- once in libhb/work.c, in do_job()
In autoSetM4vExtension, update the condition for chapter markers being on or off, since we can no longer rely on the checkbox being enabled/disabled.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3888
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Mon, 28 Mar 2011 17:47:21 +0000 (17:47 +0000)]
Fix problem with qt7 playback of mpeg4 video
The reference frames were not being tagged correctly during muxing
which really screwes up qt7 but appears to have little effect on qtx
or other players.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3887
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sun, 27 Mar 2011 21:09:27 +0000 (21:09 +0000)]
Simplify a lot of subtitle handling code.
Makes it easier to read. Gets rid of some unnecessary variables.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3886
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sun, 27 Mar 2011 20:08:33 +0000 (20:08 +0000)]
WinGui:
- Some move re factoring to push the logic code into the service library.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3885
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Sun, 27 Mar 2011 18:26:46 +0000 (18:26 +0000)]
LinGui: fix type in tooltip
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3884
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sun, 27 Mar 2011 14:29:06 +0000 (14:29 +0000)]
WinGui:
- Add option for playing previews in the systems default player.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3883
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sun, 27 Mar 2011 13:52:36 +0000 (13:52 +0000)]
WinGui:
- Remove built-in quicktime based video preview support.
- Resigned the Preview window as a result. Currently only supports VLC launching, but will later add an option to use the systems default player for the format produced.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3882
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sat, 26 Mar 2011 16:19:52 +0000 (16:19 +0000)]
WinGui:
- Trim the contents of the advanced options box. Prevents -x being used with only spaces
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3881
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sat, 26 Mar 2011 14:50:14 +0000 (14:50 +0000)]
WinGui:
- Fix for the AutoName helper. Should now set the correct file extension based on the user preference.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3880
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Sat, 26 Mar 2011 14:39:23 +0000 (14:39 +0000)]
WinGui:
- Fix a couple of possible culture issues in the query parser util.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3879
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Thu, 24 Mar 2011 22:24:30 +0000 (22:24 +0000)]
LinGui: fix building on ubuntu 10.04
A couple gtk functions were deprecated at a different version than I thought.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3878
b64f7644-9d1e-0410-96f1-
a4d463321fa5
sr55 [Thu, 24 Mar 2011 21:40:17 +0000 (21:40 +0000)]
WinGui: Fix for "{source_path}" option.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3877
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 23 Mar 2011 15:13:55 +0000 (15:13 +0000)]
LinGui: backwards compatibility fix
gtk versions prior to 2.22 don't have gtk_widget_set/get_realized() func
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3876
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 23 Mar 2011 01:52:45 +0000 (01:52 +0000)]
LinGui: a few more random deprecated functions and macros removed
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3875
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 23 Mar 2011 00:44:34 +0000 (00:44 +0000)]
LinGui: remove some deprecated widget properties
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3874
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Wed, 23 Mar 2011 00:27:41 +0000 (00:27 +0000)]
LinGui: Fix incorrect base class in ghbcompositor
"Works" with gtk2, but causes error in gtk3
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3873
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 22 Mar 2011 23:41:03 +0000 (23:41 +0000)]
LinGui: don't use private gtk_marshal_* functions
They are not exported in gtk+-3, so create our own marshalers
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3872
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 22 Mar 2011 17:22:56 +0000 (17:22 +0000)]
LinGui: fix backward compatibility issue
Versions of gdk on Ubuntu 9.10 and 10.04 do not have GDK_KEY_* macros
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3871
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 22 Mar 2011 03:11:01 +0000 (03:11 +0000)]
LinGui: another improper access to gtk member variables
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3870
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 22 Mar 2011 03:08:27 +0000 (03:08 +0000)]
LinGui: clean up more accesses to private gtk member variables
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3869
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 22 Mar 2011 02:25:05 +0000 (02:25 +0000)]
LinGui: use g_object_set to set widget properties
instead of directly setting the member variables. The member variables
dissepear into priv data in gtk+-3.0.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3868
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 22 Mar 2011 02:12:32 +0000 (02:12 +0000)]
LinGui: Fix printf with too many parameters
cut/paste error
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3867
b64f7644-9d1e-0410-96f1-
a4d463321fa5
jstebbins [Tue, 22 Mar 2011 01:31:48 +0000 (01:31 +0000)]
LinGui: Remove use of deprecated GTK_WIDGET_VISIBLE macro
Replace with gtk_widget_get_visible()
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3866
b64f7644-9d1e-0410-96f1-
a4d463321fa5