summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* Fixed up mkv error messages that did not apply, and added one which was missed.eddyg2007-08-271-12/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@870 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Added rudimentory error handling to HB. Instead of using hb_log() use ↵eddyg2007-08-275-29/+107
| | | | | | 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
* MacGui: Fix main window closing to it doesnt crash HB and allow you to get ↵dynaflash2007-08-242-1/+12
| | | | | | | | it back. Also, closing main window now does NOT quit HandBrake. - Courtesy of Ritsuka. Thanks Ritsuka! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@864 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Doubles the number of frames checked for cadence changes, streamlines their ↵jbrjake2007-08-241-10/+10
| | | | | | storage with a for loop, gets rid of inaccurate "Interlaced->Progressive" messages during scanning, and, during encoding, displays those messages with time stamps in seconds instead of using the PTS units. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@862 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Allows stream.c to try to read .VOB, .TS, and .mpeg files in addition to ↵jbrjake2007-08-241-3/+6
| | | | | | | | .vob, .ts, .m2t, and .mpg files. These are just more hard-coded file type extensions. awk, if this is a Bad Idea for a reason I'm ignorant of, feel free to revert. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@861 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add Subtitle scanning for forced subtitles and normal subtitles from the CLIeddyg2007-08-2110-44/+162
| | | | | | | 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
* Added "--subtitle-force" option to the CLI, and added changes to decsub toeddyg2007-08-202-9/+42
| | | | | | | | select only forced subtitles curtesy of Utumno (thanks!). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@843 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add colour/chroma to subtitles where they are not transparent.eddyg2007-08-202-5/+98
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@842 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Small patch to keep mcdeint in mode 2 from crashing. Thanks, blindjimmy!jbrjake2007-08-191-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@833 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Prevents a bus error at scan time with DVDs that have a weird cell ↵jbrjake2007-08-171-10/+13
| | | | | | structure. Much gratitude to dynaflash, as without his patient assistance tele-debugging this, I would have been forced to buy a copy of Young Guns. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@828 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Switch to mk_laceXiph().saintdev2007-08-161-20/+9
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@822 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
* Prettier logging display for filters.jbrjake2007-08-141-4/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@814 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
* Moves the filters' logging info to work.c, adds parameter info. I also ↵jbrjake2007-08-143-3/+15
| | | | | | changed the deinterlace filter name to include its default method (ffmpeg) and removed the logging line from work.c that said if job->deinterlace was true or not, as it's now superfluous. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@812 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Adds a log message informing the user of which filters are being applied.jbrjake2007-08-141-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@804 b64f7644-9d1e-0410-96f1-a4d463321fa5
* "Same as source" changes. Old behavior: mark all NTSC content as 23.976. New ↵jbrjake2007-08-132-14/+152
| | | | | | | | | behavior: mark all NTSC content as 29.97, only use 23.976 when scanning shows a title reporting itself as mostly progressive. Also threw in a bunch of commented out logging messages for diagnostic usage. And notification during encodes when progressive flags go on or off (only works in jam builds until the contrib binary packs get rebuilt). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@799 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
* Display thread IDs in hb_log messages with %x instead of %d, so they aren't ↵jbrjake2007-08-061-3/+3
| | | | | | negative numbers in 32-bit Ubuntu (and maybe other places). Thanks for the suggestion, mr_cheese_. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@788 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Implements libswscale in HandBrake, giving it Lanczos scaling! This major ↵jbrjake2007-08-014-58/+73
| | | | | | | | | | enhancement comes to us courtesy of superdump, who deserves much praise and glory. To make this work, ffmpeg's been updated to a recent revision. Darwin contrib binary pack ++ to 0016. Includes fresh ffmpeg and libswscale as well as the recently-patched libmp4v2. I've also added the configure option --disable-sdl to libmpeg2 in the contrib/Jamfile, because without it jam always fails for me and I'm sick of adding it in every time. Hopefully this doesn't break anything for anyone, but if it does it's just a one-word change. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@778 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Patch from huevos_rancheros to restore 2-pass functionality, which broke ↵jbrjake2007-07-271-0/+17
| | | | | | when the new filters got added. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@758 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - Fix for issue in deinterlace.c where it would not compile. Also reduces ↵sr552007-07-271-595/+595
| | | | | | final executable size by 2.5MB git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@757 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Oops, fixes a typo I made in the libhb/Jamfile that broke compilation. ↵jbrjake2007-07-271-1/+1
| | | | | | Thanks for noticing, cvk_b. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@752 b64f7644-9d1e-0410-96f1-a4d463321fa5
* This huge patch from huevos_rancheros ports a number of video filters from ↵jbrjake2007-07-2711-63/+2819
| | | | | | | | | | mencoder to HandBrake: yadif+mcdeint, hqdn3d, pp7, and pullup+softskip+harddup. What this means is that HB now has stateless inverse telecine, temporal denoising, and motion-adaptive deinterlacing! HandBrake is growing up =) Thank you, huevos_rancheros! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@749 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Matroska: Mark all tracks enabled.saintdev2007-07-271-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@748 b64f7644-9d1e-0410-96f1-a4d463321fa5
* We don't need to write end times for chapters, these are automatically ↵saintdev2007-07-271-9/+5
| | | | | | | | | calculated figured out from the beginning of the next chapter. Also, start at display strings at 'Chapter 01' instead of 'Chapter 00'. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@747 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Native language subtitle scan improvements. Thanks, eddyg!jbrjake2007-07-262-59/+130
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@741 b64f7644-9d1e-0410-96f1-a4d463321fa5
* This should finally fix the PS stream language without iterating through ↵saintdev2007-07-261-1/+1
| | | | | | every language to find we want the first. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@740 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Change Matroska timecode scale to be 1000000000 / 90000.saintdev2007-07-261-8/+9
| | | | | | | This is a patch from Yuvi on the forums. Thanks for killing that magic number! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@739 b64f7644-9d1e-0410-96f1-a4d463321fa5
* This patch from eddyg should help alleviate HandBrake's audio drop issues. ↵jbrjake2007-07-254-15/+58
| | | | | | It also adds a number of beautiful comments to sync.c that really help clarify the code. Thanks, eddy! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@738 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Ok, this should fix compilation. Instead of using the 2-letter language code ↵jbrjake2007-07-251-1/+1
| | | | | | for "Unknown" (which is a blank string) I've set it to use the 3-letter code ("und" for undetermined). There could easily be a better way to do this. C strings are not my forte. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@732 b64f7644-9d1e-0410-96f1-a4d463321fa5
* We shouldn't assume that MPEG2-PS audio is English. Set it to 'Unknown' instead.saintdev2007-07-251-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@730 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Makes sure chapter markers get applied to the right track, so ReaderFunc() ↵jbrjake2007-07-241-2/+5
| | | | | | sees them. Thanks for this patch too, ares01590! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@727 b64f7644-9d1e-0410-96f1-a4d463321fa5
* These hopefully-innocuous changes to hb.c should help with the active ↵jbrjake2007-07-201-2/+19
| | | | | | queuing in the MacGui. Adds a new counter variable, h->job_count_permanent, so the task list readout ("Encoding job x of y") stays correct even if the user adds or removes items on the jobs list during an encode. Seems to work ok for me and Dynaflash, but who knows? This might need to be reverted, and/or maybe someone can come up with a less hackish way of doing it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@719 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Set MinCache to 1 if we're using x264 and b-frames.saintdev2007-07-161-0/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@704 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Active Queue Initial Implementationdynaflash2007-07-162-3/+25
| | | | | | | | | - Warning: currently, when adding jobs during encoding, the main window progress bar and task info gets hosed, if a workaround via libhb cannot be easily obtained, a cocoa workaround is available for checkin. - Can now add jobs during encoding - Scan progress bar is a barber pole until scanning progress during encoding is fine tuned. - Needs further testing if DVD Auto Detect is turned on. If conflicts with drive arise, automatically turning off dvd auto detect when adding jobs during encoding is ready for checkin. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@695 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Update makefile in libhb for libmkvsr552007-07-141-3/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@686 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix AAC audio inside MKV container crash.saintdev2007-07-141-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@681 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Matroska muxer!saintdev2007-07-145-1/+329
| | | | | | | | | | -Chapters don't work in VLC. I'll need to update the library to work-around this. Most other players should pick them up, however. -PAR, check. -x264 b-frames, check. -Multi-track audio, check. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@680 b64f7644-9d1e-0410-96f1-a4d463321fa5
* More accurate frame start/stop times for vorbis. This is needed for the ↵saintdev2007-07-131-5/+7
| | | | | | upcoming Matroska muxer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@674 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Oops, that's 'management_active', not 'managed'.saintdev2007-07-081-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@657 b64f7644-9d1e-0410-96f1-a4d463321fa5
* vorbis: gracefully fail if encoder setup fails, and remove depriciated ↵saintdev2007-07-071-3/+20
| | | | | | OV_ECTL_RATEMANAGE_AVG. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@656 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fixes to the CLI for forced subtitles, and Turbo.saintdev2007-07-062-39/+48
| | | | | | | | | -Fixes a bug in the HB CLI whereby you can't use the native-language switch to enable subtitles when doing single pass. -Changes the threshold for enabling subtitles automatically during a subtitle scan from 20% to 10%. -Changes the turbo options to match what the GUI is doing. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@650 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Implement transport and program stream support. With these changes it's now ↵awk2007-07-0410-38/+2166
| | | | | | possible to open a .ts or .mpg files and transcode to standard Handbrake Output files. This fixes Ticket #21. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@648 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Switch buf->key to buf->frametype which is a bitmask telling us what type of ↵saintdev2007-06-1711-24/+34
| | | | | | | | | frame we are dealing with. This doesn't change any functionality, but I need to be able to distinguish between x264 IDR and I frames for the upcoming matroska muxer. This also has the side effect of making the code a little easier to read and maintain. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@623 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Finally recommitting clee's patch from r518 to allow 64-bit mp4 files that ↵jbrjake2007-06-132-11/+26
| | | | | | | | can hold more than 4 gigs... controlled by a boolean called job->largeFileSize and enabled from the cli with -4 or --large-file. Note that this breaks compatibility with stuff like the iPod, AppleTV, PS3 (I think), etc...so it is off by default. Also converted a few stray hard tabs into soft tabs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@618 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Disables extra audio tracks so they don't all play over the main audio track ↵jbrjake2007-06-121-6/+21
| | | | | | in QuickTime. They can be re-enabled from the Properties menu in QT Pro or with Dumpster. Shouldn't have any affect on people who use sane video players. Props to eddyg for reporting the issue, identifying the atom in question, and castigating me for my lazy and unkempt coding ways. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@606 b64f7644-9d1e-0410-96f1-a4d463321fa5
* A big batch of patches from eddyg.jbrjake2007-06-064-22/+211
| | | | | | | | | | | | | Adds following options to the CLI: --subtitle-scan for auto-selecting subtitles for foreign language segments in native language audio tracks --native-language for auto-selecting subtitles for foreign language audio without knowing the track number --longest for auto-selecting the longest title like in the MacGui --turbo for improving speed on the first pass of a two pass encode with x264 (based on superdump's turbo x264 options in mencoder). Thanks, eddyg! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@600 b64f7644-9d1e-0410-96f1-a4d463321fa5
* git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@590 ↵awk2007-05-192-7/+33
| | | | b64f7644-9d1e-0410-96f1-a4d463321fa5
* Removes thread limitation for iPod encoding. With x264's new-ish sliceless ↵jbrjake2007-05-091-1/+0
| | | | | | threading method, there is no longer any need, if there ever was, of keeping the video to 1 slice. This should significantly speed up iPod encodes and shut up the people claiming HB can't use more than 70% of a processor. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@577 b64f7644-9d1e-0410-96f1-a4d463321fa5