summaryrefslogtreecommitdiffstats
path: root/libhb/dvd.c
Commit message (Collapse)AuthorAgeFilesLines
* Added support for extracting the audio and subtitle types and adding those ↵eddyg2008-10-231-4/+83
| | | | | | to the audio and subtitle names, e.g. Director's Commentary. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1863 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - change aspect from a scaled int to a double so we can handle the widervan2008-08-081-3/+3
| | | | | | | | | | | | | | | | | | | range of aspect ratios we get from ffmpeg files. - add container_aspect to title struct (always zero except for DVDs when it's the aspect from the VTSI). To handle broken French DVDs, make HB complain & use the container aspect if it's different from the aspect computed from the video PAR. - fix ScanFunc's job template init so that it doesn't think the only legal aspect ratios are 16:9 & 4:3. - hb_reduce wouldn't reduce any fraction where both terms were equal and prime (e.g., 2/2, 3/3, 5/5, etc. would not become 1/1). Recoded it using Euclid's Algorithm so it always works and is faster. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1616 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Getting rid of dvd open failure error, it is not an error when eddyg2008-06-191-1/+4
| | | | | | | the input is a file. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1529 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Saearch & Replace domain names to move from .m0k.org to handbrake.fr. Only ↵jbrjake2008-04-151-1/+1
| | | | | | covers trunk files, libhb, and test. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1418 b64f7644-9d1e-0410-96f1-a4d463321fa5
* During conversion only log when there's an error or anomaly.van2008-04-061-5/+12
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1383 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Minor chapter cleanups.van2008-04-041-3/+2
| | | | | | | | | | - put chapter number in buf rather than a 'new chapter' flag. - use that chapter number to index chapter text in muxers so a dropped chapter doesn't make all subsequent chapter labeling wrong. - get rid of most of the chapter logging & just output one line giving the chapter text, number, frame & time. - fix a bug in sync that could cause chapter marks to be lost. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1377 b64f7644-9d1e-0410-96f1-a4d463321fa5
* New internal audio handling.saintdev2008-04-011-11/+12
| | | | | | | | Each audio track contains it's own settings for codec, bitrate, samplerate, etc. This allows for very complex combinations of audio tracks if desired. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1365 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't crash just because some dvd title uses an illegal pgn number.van2008-03-021-0/+6
| | | | | | | (Fixes bug reported in http://forum.handbrake.fr/viewtopic.php?p=28767&sid=23308d0c02b70fceb54db71b0d0f2660#p28767). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1324 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Formatting: Remove a lot of trailing whitespace.saintdev2008-02-211-16/+16
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1307 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - rather than completely giving up on a dvd because we got a read error on ↵van2008-01-221-5/+13
| | | | | | | | | next_vobu, just skip to the start of the next cell & keep going. - get rid of some unused variables so this compiles with no warnings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1230 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - get rid of 'chapter merging'.van2008-01-201-110/+143
| | | | | | | | | | | | | | | | | | | | | - check for 'beginning of cell' before 'end of cell' so zero length cells don't make us advance to the next cell too early & fail to generate a chapter mark. - don't read beyond the last cell of a title. - if we get a read error just skip to the next vobu instead of giving up. - fix the next_vobu mask (the top two bits have special meaning, not just the MSB), make the next vobu decision logic a bit closer to what a hardware dvd player uses (interpret the 2^30 bit as "look for a better vobu pointer in this navpack), make the 'end of vobu chain' recognition more robust. - when we're searching for a navpack because we couldn't read the block 'next_vobu' points to, recognize when we walk out of the current cell & just go to the next cell for this title. - treat an internal vobu with a null prev_vobu pointer as if it were end-of-cell and advance to the next cell. - use consistent case in log messages (always "dvd:" rather than a random mix of upper & lower case). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1215 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Exit gracefully when trying to ifoOpen a title with no VTS entry, instead of ↵jbrjake2007-11-191-0/+7
| | | | | | crashing with a bus error. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1069 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Detect and workaround missing end of cell markers caused by corrupted DVD ↵eddyg2007-10-111-9/+83
| | | | | | content, note that any lost DVD content stays lost, but at least it doesn't cause repeated Cells, which are more annoying than a few seconds of lost movie. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1020 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix to the chapter merging to ensure that when reading from the media we ↵eddyg2007-10-091-6/+6
| | | | | | take into account chapters that we have merged. This prevents premature exiting from encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1012 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Mistake in chapter merging well spotted by Van, which would cause the ↵eddyg2007-09-271-0/+1
| | | | | | encoding to terminate prematurely due to an incorrect movie duration. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@992 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improved debug messages for Cell start/stop with Cell number and block.eddyg2007-08-291-2/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@897 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Added rudimentory error handling to HB. Instead of using hb_log() use ↵eddyg2007-08-271-6/+14
| | | | | | hb_error(). Also causes us to stop muxing when we get a write error in MP4 and MKV containers. Still requires macosx dialog box by dynaflash (see main.mm for stub to use). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@869 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add Subtitle scanning for forced subtitles and normal subtitles from the CLIeddyg2007-08-211-2/+16
| | | | | | | and the MacOS GUI. See the new subtitle language options in the GUI. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@844 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Lessens the brownpantsification effect from the DVD Read Blocks Failed error ↵jbrjake2007-08-151-1/+1
| | | | | | message. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@815 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use hb_log for DVD: messages instead of printf.jbrjake2007-08-141-4/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@813 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Patch from eddyg for a much less cryptic hb_log message when DVDReadBlocks ↵jbrjake2007-08-061-1/+1
| | | | | | fails. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@789 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Added support for DTS audio. DTS audio streams (of 5.1 audio and below) ↵maurj2007-05-021-1/+7
| | | | | | | | | will be detected and decoded. This requires a new library - libdca (and patch) - which is included (in patched form) in a new version of the pre-built UB Darwin contribs (0012). These have been uploaded to download.m0k.org/handbrake/contrib/ . I haven't yet added any code to Controller.mm to recognise the DTS streams as supporting mono / 6ch DPL1 / DPL2 downmixes. Note: running Jam on the new library required me to update some tools on Mac OS X - possibly libtool, autoconf, automake. Not sure which made the difference, but these were the ones I updated. it won't jam successfully without this. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@559 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix Previous Bad commit for Cyanders Chapter Markersdynaflash2007-04-251-6/+86
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@548 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Keep the language id for each audio track when using MP4.saintdev2007-03-261-7/+17
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@454 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Merge the 5.1 branch into the trunk.prigaux2007-03-061-0/+822
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@422 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Merge the 0.8.0_mpeg4ip branch into the trunkprigaux2007-02-111-805/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@285 b64f7644-9d1e-0410-96f1-a4d463321fa5
* HandBrake 0.7.1a1rhester2006-09-301-1/+1
| | | | | | | | | | | | | | | | Made H.264 baseline levels more generic Added iPod 640x480 support to libhb, HBTest and MacOS X GUI Added proper iPod 640x480 muxing Modified rate control for more accurate ending video bitrates Updated ffmpeg and x264 base sources to more current levels Removed inlined ff_get_fourcc (now in ffmpeg) Updated patches for xvidcore, libdvdread, x264, and ffmpeg Relocated contrib files to local web server and updated version files to new site Renamed contrib files and patches to consistent naming standard Updated contrib Jamfile to support new patches and naming standard git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@70 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fixed scanning of DVD folderstiter2006-04-211-3/+11
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@67 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use the DVD name for the output filetiter2006-04-201-0/+6
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@65 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Show the name of the DVD instead of /dev/rdiskXtiter2006-04-191-0/+23
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@64 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Implemented audio and subtitle selectiontiter2006-04-171-0/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@62 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fixed dvd_seek for titles which are not lineartiter2006-01-151-12/+20
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@20 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Update 2006-01-10handbrake2006-01-141-5/+28
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@17 b64f7644-9d1e-0410-96f1-a4d463321fa5
* HandBrake 0.7.0handbrake2006-01-141-0/+735
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@16 b64f7644-9d1e-0410-96f1-a4d463321fa5