summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* theora: improvements to our theora implementationjstebbins2009-09-271-3/+209
| | | | | | | | | - support 2-pass mode which is new to theora 1.1 - set soft target rate control so that single pass abr behaves more like theora 1.0 and doesn't look quite so awful. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2842 b64f7644-9d1e-0410-96f1-a4d463321fa5
* bump x264 to r1271jstebbins2009-09-241-14/+9
| | | | | | | | | make changes required by the x264 api change fix some build issues that the x264 bump exposed git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2836 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix bug that was causing one sec. of audio to be dropped on many ffmpeg ↵van2009-09-211-6/+11
| | | | | | files. Problem is that audio & video can be interleaved in any order but we drop everything up to the first video frame. Since ffmpeg returns a second of audio per read on an audio stream, if audio started before video we lose the first second of it. Changed to allow either audio or video to signal start 'reader'. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2831 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix gethostbyname failure on mingwjstebbins2009-09-201-0/+17
| | | | | | | winsock requires initialization before you can call any networking functions git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2830 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Updates x264 to r1259-dd026f2, bringing with it a bunch of changes you can ↵jbrjake2009-09-151-0/+45
| | | | | | read about on their git log. The most prominent change is macroblock tree rate control (read about it on doom9), which is on by default, and for most content it produces smaller, better quality encodes. Due to a minor, temporary issue with fades in baseline profile encodes, for the moment I'm disabling mbtree when bframes=0, but this can be overridden through explicitly specifying mbtree=1 in the x264 options string. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2823 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Allow dvd sources that have no audiojstebbins2009-09-142-12/+0
| | | | | | | | Removed the code that dropped titles if there was no audio. Do not add a default audio track in the CLI if there are no audios in the source git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2822 b64f7644-9d1e-0410-96f1-a4d463321fa5
* dvdnav: read error recoveryjstebbins2009-09-121-1/+15
| | | | | | | | | - patch libdvdnav seek to guarantee the position will move forward when making a seek request to a position that is after the current position - when a read error is detected, seek forward and retry. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2815 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix PAR issue with DVjstebbins2009-08-311-7/+16
| | | | | | | | For some (maybe all) DV, ffmpeg doesn't give us the sample_aspect_ratio in the context. So when it's missing, try looking it up in the AVStream info. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2797 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Initialize the AudioConverter without a sample rate only if the first ↵ritsuka2009-08-301-6/+19
| | | | | | initialization fails. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2793 b64f7644-9d1e-0410-96f1-a4d463321fa5
* srt: change format string from "utf8" to "utf-8"jstebbins2009-08-281-1/+1
| | | | | | | mingw port of libiconv doesn't support "utf8" string git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2787 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Let CoreAudio decide the best sample rate. Fixed and issue when the ↵ritsuka2009-08-271-1/+0
| | | | | | AudioConverter couldn't be created with some specific sample rates. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2780 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Blah, need to pay more attention when transcripting patches. job->areBframes ↵jbrjake2009-08-091-1/+3
| | | | | | needs to be on when no x264 opts are specified. Thanks again, Rodeo. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2758 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: don't truncate last chapter of a streamjstebbins2009-08-091-1/+2
| | | | | | | | | | | | | When an ffmpeg stream doesn't have chapters, we insert a dummy chapter into our chapter list that has the same duration as the title. But the title duration is only a guess. Later, when the chapter end time is reached, we increment the chapter number. In the reader, we exit if the current chapter number is greater than the last chapter. This patch only increments the chapter number in stream if there is actually another chapter. This way reader will continue till the file is exhausted git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2757 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Oops, forgot the job->areBframes check needed to be updated for the new x264 ↵jbrjake2009-08-091-5/+5
| | | | | | defaults. Thanks for the catch, Rodeo. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2756 b64f7644-9d1e-0410-96f1-a4d463321fa5
* First try at fixing a crash in quicktime if the subtitles contains an ↵ritsuka2009-08-021-1/+1
| | | | | | inverted exclamation point. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2747 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - Bumps x264 to r1195-5d75a9b. x264 has new default settings: subme 6->7, ↵jbrjake2009-08-011-1/+5
| | | | | | | | | | bframes 0->3, 8x8dct 0->1, psnr 1->0, ssim 1->0, ref 1->3, mixed-refs 0->1, trellis 0->1, weightb 0->1 - Explicitly enables SSIM and PSNR metrics for all x264 encodes - MacGui: Updates Advanced tab for new x264 defaults - MacGui and CLI: Updates built-in presets to produce the same output given the new default x264 settings git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2742 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: remove duplicate title detection from scanjstebbins2009-07-301-27/+0
| | | | | | | | | Many timest the titles are not really duplicate. The detection logic only checked that they used the same sectors of the disc, but there are many other things that can make the titles different. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2737 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: close file handle after querying dvd region mask from drivejstebbins2009-07-241-0/+7
| | | | | | | this only affected linux since we only query the region mask on linux git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2729 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix interjob recalculation of frameratejstebbins2009-07-221-1/+2
| | | | | | | there was loss of precision due to integer division. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2721 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix a compile warning in enctheorajstebbins2009-07-211-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2719 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix theora encoding of non 16pix aligned dimensionsjstebbins2009-07-211-44/+47
| | | | | | | | | | | | | the theora encoder requires it's "frame_width" and "frame_height" to be aligned to 16pix. This also updates to using the new API introduced in theora 1.0. This is an interim fix. Later we will adjust our video buffers to actually have 16pix aligned data in them. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2718 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add support for ATSC (North American Digital TV) closed captions.van2009-07-131-184/+297
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2688 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - Some DVB programs have a lot of streams (20 for BBC HD) so up max from 16 ↵van2009-07-131-1/+5
| | | | | | | | | to 32 - If we find a DVB AC-3 stream descriptor mark the associated stream as AC-3 so we don't mistakenly type it as MPEG-2. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2687 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - Introduces a new mode structure for decomb, to make more flexible ↵jbrjake2009-07-121-97/+382
| | | | | | | | | | combinations of options possible, as well as a debug mode that overlays the combing mask on the output. A full explanation of the new modes can be found at the top of libhb/decomb.c. The new default parameter string is: 7:2:6:9:80:16:16:10:20:20:4:2:50:24:1 - Cleans up some compiler warnings for decomb. - Partially fixes mcdeint in decomb. I would not suggest using it yet, but it's getting piped the right data, it no longer outstrides its memory, and lavc finally fixed their Snow bug that broke iterative ME). Seems to work well on fully interlaced material, with the spatial metric (2nd paramter) set to -1. Output with hybrid material and when actually decombing is...poor, but these are, hopefully, surmountable problems. - Lays some groundwork for bobbing. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2685 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: DVD drive region detection on linuxjstebbins2009-07-094-0/+64
| | | | | | | | | Read and log the region mask of the DVD drive. We get the occasional linux user that has an unset region. Logging the region will help isolate the problem more quickly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2675 b64f7644-9d1e-0410-96f1-a4d463321fa5
* When caching frame durations for the delay_queue, store the times of the ↵jbrjake2009-07-081-1/+1
| | | | | | frames coming out of the filters, not the frames entering the render pipeline from sync. This way times don't get assigned to incorrect frames when filters delay output. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2671 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix regression introduced in svn 2620jstebbins2009-07-021-1/+3
| | | | | | | cygwin pthreads is more like the *nix's git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2656 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: SRT supportjstebbins2009-06-301-1/+0
| | | | | | | | | | | | | | | | - there are now two buttons to add subtitles one button adds normal subtitles from the source. the second adds SRT subtitles. - when an SRT subtitle is selected in the list, the available controls change SRT controls are: Language, Character Codeset, File, and Time Offset (ms) - A combo entry box is used for character code. A subset of the most common character codes is available in the popup. Other codes can be manually entered in the entry box. - The last used SRT file directory is remembered. - Remove the debug printf eddyg left in decsrtsub.c git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2648 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix subtitle markup memory leakeddyg2009-06-301-5/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2647 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Changed a log -> deep_log for markup processing.eddyg2009-06-301-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2646 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add markup for MP4 Subtitleseddyg2009-06-301-8/+223
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2645 b64f7644-9d1e-0410-96f1-a4d463321fa5
* dvdnav: jstebbins2009-06-291-15/+1
| | | | | | | | | - revert read error recovery Attempting to seek one sector forward doesn't work. dvdnav rounds the seek request *down* to the nearest vobu. So the seek actually goes backwards. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2644 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Closed Captions: Don't mess with the case.eddyg2009-06-291-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2643 b64f7644-9d1e-0410-96f1-a4d463321fa5
* dvdnav: add read error recoveryjstebbins2009-06-281-1/+15
| | | | | | | | - a single read error was causing early encode termination. try to continue reading at next sector on an error. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2639 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - cleanup. fixed hb_thread_to_integer() on darwin to cast pointer cleanly ↵konablend2009-06-251-1/+1
| | | | | | for both 32-bit and 64-bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2620 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - cleanup gcc format warnings showing up on linux 64-bitkonablend2009-06-2514-44/+47
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2619 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Format cleanup.konablend2009-06-259-16/+40
| | | | | | | | | | - fixed ports.c to use a more portable method of getting integral pthread_t representation; resolves mingw crash. - added GCC attribute to generate compiler warnings for invalid usage of hb_log, hb_deep_log and hb_errror; see new macro HB_WPRINTF(s,v) in common.h. - fixed various invalid usage of above functions on osx i386/x86_64, and mingw. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2618 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fixed FFMPEG deprecated API warnings since last bump:konablend2009-06-241-17/+33
| | | | | | | | | - av_parser_parse() -> av_parser_parse2() - avcodec_decode_audio2() -> avcodec_decode_audio3() - avcodec_decode_video() -> avcodec_decode_video2() git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2613 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - fixed gcc warnings for various unused vars, implicit function decls, ↵konablend2009-06-247-6/+14
| | | | | | signedness. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2612 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: Missed file from SubRip - a symptom of too many views and patcheseddyg2009-06-231-0/+331
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2604 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: SubRip Subtitle importeddyg2009-06-237-5/+55
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2602 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Moved --native-langauge processing from libhb to the CLI. Added --native-dub ↵eddyg2009-06-213-109/+29
| | | | | | option to allow the user to request dubbing instead of subtitles when the audio does not match the users native language. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2594 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix typo that causes 2 pass encodes to segfault at beginning of pass 2jstebbins2009-06-201-1/+1
| | | | | | | | - this only appears after running at least one previous encode job so it got missed in simple one-off testing git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2588 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use new appcast URL nameing scheme for HandBrakeCLI --update.konablend2009-06-202-177/+48
| | | | | | | | | - increase storage space hb_handle_s.version[16] to 32 to handle longer version strings; eg. "svn2500 x86_64" - reduce 2-query mechanism to 1-query and only check/notify for newer releases of same type (ie: stable or unstable) - remove hard-coded url and extract host/path components from HB_PROJECT_URL_APPCAST macro git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2586 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: for mp4 soft subtitles, mark the default_track as enabled.jstebbins2009-06-181-0/+27
| | | | | | | | Due to quicktime quirkiness, if no track is marked as default, we enable the first subtitle track. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2567 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - secondary component of r2548: bugfix: libhb passes unaligned stack/heap ↵konablend2009-06-171-5/+5
| | | | | | | | | | buffers to ffmpeg. - use av_malloc() for format-conversion buffer. - use av_free() instead of free() for av_malloc() buffers. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2549 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - bugfix: libhb passes unaligned stack/heap buffers to ffmpeg.konablend2009-06-171-24/+8
| | | | | | | | - fix is to use memalign or av_malloc (thanks Dark_Shikari); we choose av_malloc to delegate platform portability. - bug manifested on any 32-bit x86 linux system; new and older ffmpeg versions; and further back than HB 0.9.3 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2548 b64f7644-9d1e-0410-96f1-a4d463321fa5
* dvdnav: oops. initialize d->chapter to 0 instead of first chapterjstebbins2009-06-134-31/+25
| | | | | | | otherwise, we don't get the initial chapter marker event git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2528 b64f7644-9d1e-0410-96f1-a4d463321fa5
* dvdnav: fix title scanning issuejstebbins2009-06-131-0/+1
| | | | | | | | | d->chapter needs to be initialized in hb_dvdnav_start. chapter loop detection was triggering on chapters from previous title scans git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2527 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: fix forced foreign language scan issuesjstebbins2009-06-133-2/+13
| | | | | | | | | | | | | | | - subtitles were not being added to list of subs to scan because the wrong config was being checked for the forced flag. needed to use job->select_subtitle_config instead of subtitle->config - scr code in reader was preventing the majority of subtitle packets from reaching decvobsub. made decvobsub more robust by adding ability to re-sync in the event of lost packets. made scr recovery initialize itself even in the event that it sees audio or subtitles before seeing video. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2526 b64f7644-9d1e-0410-96f1-a4d463321fa5