summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* Renumber start and stop timestamps for VFR, so they are continuous despite ↵jbrjake2007-12-181-2/+30
| | | | | | | | dropped frames. This fixes issues with jerky video when using VFR together with B-frames. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1133 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue Update - thanks travistexdynaflash2007-12-173-1/+8
| | | | | | | | | | | - The primary change is that HBJob now copies the relevant fields out of hb_job_s that it needs. It no longer keeps a pointer reference to libhb's job. - The only time the queue looks at libhb's jobs is when scanning the job list in order to build of the GUI queue display. - Removed all uses of hb_current_job(). - Canceled jobs now stay listed in the queue, with a canceled icon. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1130 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Only call the dynamic range compression function when the user-inputted ↵jbrjake2007-12-131-1/+1
| | | | | | value is greater than 1, rather than non-zero. This prevents calling the function when it's only going to return the default values anyway. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1124 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MPEG-2 stream reading fixes for missing audio, multiple audio tracks, ↵jbrjake2007-12-135-193/+318
| | | | | | language codes, reading streams larger than 2GB, and incorrect title numbers. This vastly expands HandBrake's TS/PS compatibility. Thanks, van! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1123 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Ooops -- when copying and pasting code snippets, it helps to have the right ↵jbrjake2007-12-121-1/+1
| | | | | | types. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1117 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't copy the frame before passing it to x264, let x264 look directly into ↵eddyg2007-12-121-7/+20
| | | | | | our HB buffer instead. x264 will copy the data from it as required. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1116 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Updated jamfile to fix a small compile issue with zlibsr552007-12-081-109/+109
| | | | | | Updated makefiles to support cygwin building on platforms other than XP git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1109 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Adds extra, user-selectable dynamic range compression to the liba52 ↵jbrjake2007-12-083-0/+36
| | | | | | | | interface, making softer sounds louder. Based on code from liba52's A52Decoder, used in Perian's preferences pane. Set with a job->dynamic_range_compression float, with valid values being 1.0 - 4.0. Controlled from the CLI with --dynamic-range-compression or -D. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1108 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Gives the CLI a separate option for adding the iPod UUID atom to mp4 files, ↵jbrjake2007-11-282-1/+2
| | | | | | instead of it just being a side-effect of using the x264b30 encoder. It's called with -I or --ipod-atom . git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1084 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Optimize MP4 files for HTTP streaming (on the CLI it's -O or --optimize).jbrjake2007-11-212-13/+13
| | | | | | | | Has mpeg4ip run a second pass after muxing is complete, to move the MOOV atom to the beginning of the file. To get this to work, I had to replace a patch from Perian, which has written the avc1 "Compressor Name" in the Pascal string style QuickTime expects. Unfortunately, that patch left mpeg4ip unable to parse its own output, when muxing x264 video. Instead, now the Compressor Name is a blank string, and QuickTime substitutes "H.264" for it. NOTE: This is *not* hinting for RTP streaming, just shuffling the container around so it starts playing faster over the web. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1074 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
* Moves the readout of applied x264 options from test.c to work.c, so the ↵jbrjake2007-11-161-0/+2
| | | | | | MacGui can see it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1064 b64f7644-9d1e-0410-96f1-a4d463321fa5
* First attempt at variable frame rate detelecining for NTSC video sources.jbrjake2007-11-105-8/+115
| | | | | | | This check-in includes the library code as well as the CLI implementation. Only works with MP4 and MKV, untested with high profile, results may vary with mixed content, consult a physician if condition persists for longer than four hours. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1051 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix matroska audio channel counts for AC3 pass-through.saintdev2007-11-051-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1044 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Automagically set keyframe intervals for x264, based on the specified FPS.jbrjake2007-10-261-1/+10
| | | | | | | | | So... 23.976fps content gets a minimum interval of 24 and a maximum of 240 25fps content uses defaults, a minimum interval of 25 and a maximum of 250 29.97fps content gets a minimum of 30 and a maximum of 300. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1038 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Changed logging messages about PTS discontinuities to be less verbose, and ↵eddyg2007-10-231-23/+111
| | | | | | changed audio discontinuity handling to work correctly should it be leading the video. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1035 b64f7644-9d1e-0410-96f1-a4d463321fa5
* "Loose" anamorphic:jbrjake2007-10-164-3/+166
| | | | | | | | - Scales the storage frame size to arbitrary widths, like 640 for the iPod. - Uses dimensions that divide cleanly by an arbitrary number (default: 16) and adjusts the SAR to match - Uses ITU PAR values when the video is meant to be overscanned ( 7+ pixels cropped on left+right) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1029 b64f7644-9d1e-0410-96f1-a4d463321fa5
* This patch from superdump lets muxmp4.c set a Height Ratio for the QuickTime ↵jbrjake2007-10-161-7/+20
| | | | | | transformation matrix. This makes it possible to scale up 4:3 material to 720*540 on playback, instead of displaying it scaled down to 640*480. In other words: true anamorphic 4:3. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1027 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Change the fifo size from being statically tuned for a Mac Pro with 4 CPUs ↵eddyg2007-10-131-10/+10
| | | | | | to dynamically adjust according to how many processors are available. 8 extra buffers in the fifo per CPU available. Hopefully this will make the single CPU systems run at pretty much the same speed as before (although they may still be slower if they are low on memory and start thrashing the pager). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1023 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Somehow this went missing as I prepared these subtitle changes for commit in ↵eddyg2007-10-111-0/+2
| | | | | | 1011. Without this change encoding will hang when there is a subtitle in the fifo at a PTS discontinuity. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1021 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
* Port HandBrake to Solaris, most of the heavy lifting provided by begi. eddyg2007-10-112-2/+20
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1019 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fixed a problem when using more than 13 b-frames in x264ritsuka2007-10-111-8/+7
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1018 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Increases the size of the integer holding MPEG-2 picture flags in the ↵jbrjake2007-10-091-1/+1
| | | | | | hb_buffer structure to 16 bits. It was 8-bit, and that couldn't hold 256, the REPEAT_FIRST_FIELD flag for soft-telecine. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1014 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix to the chapter merging to ensure that when reading from the media we ↵eddyg2007-10-092-10/+30
| | | | | | 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
* Don't drop subtitles when crossing PTS discontinuities by using buffer ↵eddyg2007-10-087-43/+213
| | | | | | sequence numbers to determine where in the stream the buffer came from. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1011 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Two changes, one ensure zero size buffers are zero size, second change the ↵eddyg2007-10-042-24/+27
| | | | | | buffer cleanup to be later. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@999 b64f7644-9d1e-0410-96f1-a4d463321fa5
* When duplicating the x264 options keep a pointer to the start of the options ↵eddyg2007-10-021-3/+6
| | | | | | so that we can free them. Also check that the memory allocation actually succeeded. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@998 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fixes encx264.c from rev 994 to avoid crasing with 2pass and auto select / ↵dynaflash2007-09-271-3/+3
| | | | | | forced subtitiles. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@995 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Mod encx264.c to allow the queue to show the advanced x264 options ↵dynaflash2007-09-271-1/+2
| | | | | | in the encoding job. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@993 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 PMT and PAT algorithms to work with streams where the PAT contains ↵awk2007-09-211-227/+262
| | | | | | | | | | entries for PMT's not present in the stream. Improved the PMT algorithm to work with PMT's that span TS Packets (though this is not well tested due to a lack of such streams). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@976 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Warning message had preview number out by one.eddyg2007-09-191-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@974 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't discard titles during scan just because of a read failure on one or ↵eddyg2007-09-191-3/+6
| | | | | | more of the previews. The missing previews are handles OK when you try to view them in the preview window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@973 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Van's changes to the x264 lib and HB encoder to ensure that an IDR frame is ↵eddyg2007-09-171-1/+30
| | | | | | used for each new chapter. Well done and lots of thanks to Van for this one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@967 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Re-enable 6ch vorbis audio.saintdev2007-09-162-6/+16
| | | | | | | Vorbis won't allow bitrates < 168kbps with 6ch audio, so anything less is reset to 168kbps. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@966 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Reverts an errant checking for from rev 960dynaflash2007-09-133-138/+53
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@961 b64f7644-9d1e-0410-96f1-a4d463321fa5
* jbrjake's loose pixel ratio patch.saintdev2007-09-133-53/+138
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@960 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Cast the flags passed to sws_getContext to a 16-bit int.saintdev2007-09-132-3/+3
| | | | | | Otherwise I get segfaults on 64-bit linux. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@958 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Added buffer management and changed fifo sizes. Changed job->subtitle_scan ↵eddyg2007-09-1110-54/+329
| | | | | | to job->indepth_scan, and fixed memory init bug in denoise.c. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@945 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue Improvements from travistexdynaflash2007-09-071-3/+1
| | | | | | | | | | | | | | | | | | | - Add view selection widget to choose "encode by encode" or "pass by pass" view - Add "Show Detail" button to toggle detailed view on/off - Removed #define JOB_GROUPS. You can now control this in the UI and show either "encodes" or "passes". - Revamped the progress strings to give you exact progress. - New terminology (encodes and passes) - New toolbar in queue window (not complete, icons need work) - New files, added to project: Encodes.png EncodesPressed.png Info.png JobPassLarge.png JobPassSmall.png Passes.png PassesPressed.png git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@931 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: New Active Queue implementation courtesy of travistexdynaflash2007-09-053-0/+7
| | | | | | | | | | | | | - Thanks travistex! - queue is now in a separate window - queue currently shows jobs grouped together as one encode, which is configurable - queue now shows currently encoding job, which is independently cancellable without losing the rest of the queue. - can start and pause encoding in the queue window - queue uses its own nib - progress status needs work - This has a way to go, but needed to get checked in as it changes the current xcode project structure. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@925 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - Add the accurate rounding flag for software scaling to avoid scaling ↵superdump2007-09-052-3/+3
| | | | | | artifacts that were especially noticable on flat colour or slight gradients. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@924 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui:sr552007-09-041-0/+1
| | | | | | | Fixed mkv file extension not being appending by auto naming Included Ritsuka patch for mkv file size issue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@918 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Workaround from "van" to prevent double chapter markers when using advanced ↵eddyg2007-08-311-2/+8
| | | | | | deinterlace filters git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@907 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Added progress marking for when doing the subtitle scaneddyg2007-08-301-0/+22
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@901 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Make the auto-fps selected rate stickyeddyg2007-08-301-3/+15
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@900 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
* Patch from bitsflew that displays fading subtitles as solid subtitles rather ↵eddyg2007-08-291-6/+36
| | | | | | than being invisible. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@896 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Die, non-standard printf logging, die!jbrjake2007-08-292-5/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@895 b64f7644-9d1e-0410-96f1-a4d463321fa5