summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* handle TS streams that have no PCRs betterjstebbins2011-09-262-15/+58
| | | | | | | | | | | | | | | | For TS streams that don't have PCRs, we substitute the DTS timestamp from the video track (or PTS if we don't see DTS). But these can bounce around or be wider spaced in the stream that PCRs are meant to be. So I have added a test to see if the timestamp looks like a discontinuity. Then I only pass the timestamp as a PCR if there appears to be a discontinuity. This prevents a lot of scr_offset thrashing. I have also fixed an error in our scr_offset processing. It is rarely triggered and it's effects are so minor with well behaved streams that it would be completely unnoticed. But with the test stream I was using, it caused a factor of 10 times more "audio went backwards" errors. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4254 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Add a parameter-less constructor to the QueueMangersr552011-09-261-0/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4253 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix for DVD's that have broken udf filenamesjstebbins2011-09-262-3/+57
| | | | | | | | | A new obfuscation technique it to add UDF-16 filenames that have junk in the high byte and things like "VIDEO_TS.IFO" in the low byte. libdvdread throws away the high byte which results in references to the bogus copy of the file. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4252 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Added implementation of IWindsorInstaller to the AppServices library ↵sr552011-09-2510-207/+84
| | | | | | and updated the installers to use wildcards instead of hard coded files. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4251 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Couple of fixes and updates to the Plist parser.sr552011-09-252-7/+21
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4250 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: oops, forgot to re-enable audio encodersjstebbins2011-09-241-34/+31
| | | | | | ... after they had been disabled for any reason git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4249 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: use hb_*_encoders table to disable optionsjstebbins2011-09-241-5/+18
| | | | | | | Which encoders where active for which muxer was hard coded. Now it relies on the information in the encoder tables. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4248 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Some further fixes to the preset code. Plist import fixes. (Still ↵sr552011-09-244-6/+31
| | | | | | need to update the imported to work with new settings) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4247 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Some bug fixes and re-factoring of the preset code.sr552011-09-245-17/+79
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4246 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Update Growl to 1.2.2sr552011-09-244-38/+20
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4245 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix parsing of SSA layer fieldjstebbins2011-09-241-5/+33
| | | | | | | | | | | | SSA subtitles have an empty layer field (bare ','). The scanf format specifier "%*128[^,]" will not match on a bare ','. There must be at least one non ',' character in the match. So the format specifier is placed directly next to the 'Dialogue:' string so that the next expected ' ' after the ':' will be the character it matches on when there is no layer field. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4244 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fix silly patch errorjstebbins2011-09-241-1/+1
| | | | | | | i let part of another patch leak in git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4243 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fix framerate detection for AVCHD-Litejstebbins2011-09-243-5/+27
| | | | | | | | The AVCHD-Lite specification only supports 50 or 60 fps. So to get 25 or 30 fps, they double every frame using repeat flags. Detect this and adjust the framerate accordingly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4242 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: remember filter setting in source selection dialogjstebbins2011-09-232-7/+7
| | | | | | | | | I was resetting it every time the dialog is opened which is annoying if you are trying to open a collection of a single file type (e.g. TS files). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4241 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: tweak to loose cropjstebbins2011-09-201-6/+8
| | | | | | | | | I like how Yeasah ensures that top and left crop will be even pixel aligned in his cli patch. Do the same for the lingui. This ensures that even if the input crop values are not even pixel aligned, the result will be. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4240 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Force title dimensions to be evenjstebbins2011-09-191-8/+13
| | | | | | | | HandBrake's video pipeline uses yuv420 color which requires even dimensions. The input video may be a diffent color space that allows odd dimensions. So crop a row or colomn if necessary. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4239 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: since Auto Passthru isn't enabled yet, we still need to fall back to ↵Rodeo2011-09-193-2/+10
| | | | | | | | | | AC3 Passthru when loading a preset. Also, update an outdated comment. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4238 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Auto Passthru and audio/video encoder lists.Rodeo2011-09-1911-609/+731
| | | | | | | | | | | | | | This adds Auto Passthru as another encoder in libhb. Used in LinGUI and CLI. MacGUI features a partial impplmentation (with hardcoded values), which is disabled for now. Also, audio and video encoders are now stored in "lists", like we previously did for mixdowns. New mixdown "None" (HB_AMIXDOWN_NONE) added to hb_audio_mixdowns (was previously declared in MacGUI/LinGUI). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4237 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: ensure loose crop always crops even valuesjstebbins2011-09-191-4/+16
| | | | | | | | Subsampled chroma (i.e. yuv420) requires that you do all cropping on even boundaries and that the result has even dimensions. There were cases where my cropping could violate this. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4236 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: oops! forgot to use existing filterjstebbins2011-09-191-2/+1
| | | | | | | | I was creating a new filter with pattern "*" when opening the source file chooser. Don't need to do that since I have a pre-existing one now. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4235 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add source type filter to source dialogjstebbins2011-09-192-0/+122
| | | | | | | Lets you filter down the list to just the files you are interested in seeing. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4234 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_ff_layout_xlat: minor cleanup.Rodeo2011-09-191-16/+15
| | | | | | | | Slightly more meaningful log messages. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4233 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add fake keyframes for PIR encodingjstebbins2011-09-191-10/+18
| | | | | | | | Periodic intra refresh has no IDR frames, but x264 signals a keyframe at recovery points. Use this flag to fake keyframes in the container so that seeking in these files works properly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4232 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix corrupt first frame in BD point-to-pointjstebbins2011-09-196-116/+128
| | | | | | | | | | | Seek point may be a recovery point which will not be a complete clean frame. So consume frames till we reach the recovery frame count. Patches Libav so it can tell us when the recovery point has been reached. Also improves detection of recovery points in TS files. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4231 b64f7644-9d1e-0410-96f1-a4d463321fa5
* HandBrakeWPF: Switch from Caliburn to Caliburn Micro and Add a CastleWindsor ↵sr552011-09-1762-484/+16438
| | | | | | Bootstrapper. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4230 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Interop: Add in a bunch of missing comments.sr552011-09-179-25/+121
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4229 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Interop: Added support for various audio encoding options that were missing ↵sr552011-09-175-14/+65
| | | | | | from various functions. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4228 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Correctly reload audio tracks on queue edit.sr552011-09-162-2/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4227 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Workaround an issue with audio controls not updating when no audio ↵sr552011-09-161-0/+4
| | | | | | tracks are selected. Controls will not update after a track is added. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4226 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Fixes to the Audio Panel.sr552011-09-165-91/+115
| | | | | | | | - Fix a display issue with Encoder and Mixdown on the data grid. - Don't try to load tracks if there isn't any. - Fix an issue with auto-correction of Passthru option. (DTS-HD would not auto-correct to the correct passthru for the source track type) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4225 b64f7644-9d1e-0410-96f1-a4d463321fa5
* don't pass unhandled TS/PS stream types to demuxjstebbins2011-09-161-0/+3
| | | | | | | | I ran across a stream that has bad timestamps in the Teletext track which causes the demux to think there are discontinuities and drop packets. makes a real mess of things. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4224 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fix silly error in scanning BDjstebbins2011-09-151-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4223 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: add missing newline in help text.Rodeo2011-09-141-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4222 b64f7644-9d1e-0410-96f1-a4d463321fa5
* fix for broken lpcm streamsjstebbins2011-09-141-41/+109
| | | | | | | | fixes streams that have broken frame count field. since this value can be computed from the frame size, we can ignore it. Also fixes some decode errors in 20 and 24bit lpcm. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4221 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improve mpeg PS supportjstebbins2011-09-1411-1179/+2886
| | | | | | | | | | | | | | | | | | | | | | Adds support for MPEG-1 PS, HDDVD EVOB, and video codecs other than mpeg1/2 in PS Improves probing of unknown stream types by using Libav's probing utilities Use Libav to probe for dts profile in TS and PS files when profile is unknown Improves framerate detection (improved telecine detection) Fixes preview generation for mpeg video that has only a single sequence header Patches Libav to handle VC-1 pulldown flags properly Improve PS and TS stream log information git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4220 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Numerous fixes to Libhb based scanning and encoding. Aside from ↵sr552011-09-126-11/+24
| | | | | | several non-critical bugs, the code is now "usable" but should be considered experimental. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4219 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Some further work to enable libhb encode support.sr552011-09-117-62/+359
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4218 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Remove bad auto-gen.sr552011-09-111-1/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4217 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Remove bad auto-gen again.sr552011-09-111-27/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4216 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Some further work removing duplicate models, updating the ↵sr552011-09-1119-232/+216
| | | | | | libscan/encode services, fixes to the EnumHelper git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4215 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Update the Interop Mixdown and Audio Encoder objectssr552011-09-112-2/+23
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4214 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Correct an issue with updating old presets (from 0.9.5 or earlier) ↵sr552011-09-111-0/+1
| | | | | | to the latest. Presets were getting duplicated rather than replaced. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4213 b64f7644-9d1e-0410-96f1-a4d463321fa5
* x264 bump from r2044 to r2074 - misc. fixes and improvements.Rodeo2011-09-101-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4212 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Missed a case where the queue recovery file was not being updated ↵sr552011-09-101-0/+1
| | | | | | when the queue finished. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4211 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix incorrect decrementing of audio->config.out.track; it starts at ↵Rodeo2011-09-091-5/+4
| | | | | | | | | | | | | | | | | | | 1, not 0. Also, explicitly log that we are dropping the track when we find an incompatible passthru. Fixes: [01:26:41] Sample rate 24000 not supported (ca_haac). Using 32kHz for track 1 track 1 suddenly becomes track 0: [01:26:41] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo [01:26:41] work: sanitizing track 0 audio bitrate 160 to 80 […] [01:26:41] * audio track 0 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4210 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: work around the lack of 6.1 support for DTS sourcesRodeo2011-09-094-0/+46
| | | | | | | | | | | | libhb doesn't support 6.1 sources and assumes they're 7.0 instead. This breaks downmixing. Libav can decode the DTS-ES 6.1 core of DTS-HD 6.1 audio tracks; tell it to not process the additional channel so that such tracks can be re-encoded correctly. See https://reviews.handbrake.fr/r/200/ for more information. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4209 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Make sure the queue state is correctly state when it is done processing.sr552011-09-081-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4208 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Don't "recover" completed queue items when restarting.sr552011-09-081-2/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4207 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix a case where DTS/DTS-HD Passthru was reaching code only meant for ↵Rodeo2011-09-051-29/+40
| | | | | | Auto Passthru. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4206 b64f7644-9d1e-0410-96f1-a4d463321fa5
* WinGui: Add support for longer previews.sr552011-09-041-9/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4205 b64f7644-9d1e-0410-96f1-a4d463321fa5