summaryrefslogtreecommitdiffstats
path: root/libhb
Commit message (Collapse)AuthorAgeFilesLines
* Don't obey maxWidth and maxHeight settings when using strict anamorphic.jbrjake2008-08-061-18/+17
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1612 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Splits the display of job settings off from the actual work of beginning of ↵jbrjake2008-08-014-73/+237
| | | | | | | | a job, and reorganizes/elaborates the display's layout. Adds new title variables to provide more description of sources: video_codec_name, video_bitrate (currently only used by DVD sources), and container_name and data_rate (currently only used by ffmpeg input sources). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1599 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix two problems that would cause HB to hang in the muxer whenever the input ↵van2008-07-303-54/+37
| | | | | | | | | | content's video finished before audio: - sync has to keep processing until all its input fifos report eof otherwise it won't send an eof on all its output fifos. - do_job has to wait for muxer to finish. Waiting for anything earlier in the pipeline (we were waiting for the video encoder) can cause other parts of the pipeline to get terminated early which will result in lost data & no eofs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1597 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't lose our existing buffer chain when nal_encode returns NULL.van2008-07-291-10/+16
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1592 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix subtitle scan to work with new stream eof logic.van2008-07-262-7/+6
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1584 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use PTS, not DTS, in encx264 output frames so we don't have to special-case ↵van2008-07-264-83/+49
| | | | | | its output in every muxer. Confine code that deals with Apple's mistakes in handling video with b-frames to muxmp4. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1582 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - in encx264, if an video frame is larger than init_delay split it into ↵van2008-07-2617-382/+520
| | | | | | | | | | | | pieces so we don't get jerky output caused by out-of-order frames. - add an explicit EOF for all streams, not just video. - don't generate extra audio silence at the end of an encode (don't need it with explicit eof). - get rid of 80ms initial delay in AAC encode & flush final four frames buffered in encoder. - put mp4 'chap' atom on first track (usually video) rather than first audio track since we can now do video without audio (atom just needs to go on an enabled media track & video is always enabled). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1581 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Libhb:sr552008-07-201-24/+172
| | | | | | - parse both appcast files to display both unstable and stable update information git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1573 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb:sr552008-07-201-149/+80
| | | | | | | - Updates update.c to use both appcast files. Uses nicer XML now. - This shouldn't break anything this time around. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1572 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Get rid of excessive video & audio drops on some content by implementing the ↵van2008-07-163-34/+118
| | | | | | | | | last 20% of the MPEG Standard Target Decoder timing model (per-stream timing state). Should fix the problem reported in http://forum.handbrake.fr/viewtopic.php?f=12&t=6601&sid=81048cf54c40b6cdb945236afb4f99da&p=37563#p37563 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1570 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Much improved decomb filter. Totally different algorithm, with a temporal ↵jbrjake2008-07-111-291/+352
| | | | | | | | element, a block window, and a simple weighting decision for which deinterlacer to use. See code comments. The code isn't well optimized yet, and would probably benefit from -O3 (as opposed to the -Os optimization level currently used in macosx builds). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1566 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix mkv A/V sync problem created by R1542.van2008-07-081-2/+14
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1559 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Change HandBrake from using the libsamplerate linear interpolator for ↵eddyg2008-07-061-1/+1
| | | | | | resampling audio to using the SINC medium quality interpolator. Testing has shown a significant improvement in audio using this interpolator when upsampling the audio, most significant for 22Khz up to 48Khz, the audio is a lot brighter. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1557 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Cropping fix for matted content that has a border top & bottom (rather than ↵van2008-07-041-14/+38
| | | | | | just on the top). Fixes problem from forum post http://forum.handbrake.fr/viewtopic.php?p=37064&sid=1a6b16b9a89cf7c26d9ff4f0c3b1823a#p37064 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1556 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Added Paul Kendalls ffmpeg AAC-LATM codec. Allows HB to decode AAC-LATMeddyg2008-07-021-1/+1
| | | | | | | MPEG-TS DVB streams. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1550 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Enable subtitle-scan to work when using Xvid as the encoder. Also checks ↵eddyg2008-07-011-10/+21
| | | | | | return values from the work Init functions to enable Work threads to abort the encode should they not initialise properly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1547 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - fix an error in the SCR calculation that would cause an extra frame to be ↵van2008-06-305-10/+28
| | | | | | | | | | dropped at an SCR discontinuity. - fix a rounding error in the encx264 init_delay computation that would underestimate the delay for progressive content and cause spurious "init_delay too small" messages. - clean up the sync.c "video time didn't advance" logic and try to make the error mgs more useful for debugging frame duration problems. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1543 b64f7644-9d1e-0410-96f1-a4d463321fa5
* If we always require a buffer to be available on every fifo we'll eventually ↵van2008-06-301-3/+5
| | | | | | deadlock since video and audio run at different rates. Instead take the earliest available buffer (so we don't starve any of the fifos) but don't lock up if fifos are occasionally empty. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1542 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix a crash when using mp4 and no audio tracks.saintdev2008-06-261-4/+10
| | | | | | | | Because there were no audio structs on list_audio, audio->config was attempting to dereference a NULL pointer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1540 b64f7644-9d1e-0410-96f1-a4d463321fa5
* get the right version info when building with make on linuxjstebbins2008-06-231-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1535 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't let cropping get fooled by dark content - make sure that we only crop ↵van2008-06-231-16/+56
| | | | | | a row or column if all pixels are within one quantization level of average value & average value is within one level of black. (fix for bug discussed in http://forum.handbrake.fr/viewtopic.php?f=12&t=6335) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1532 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
* - Add COLR atom support to mpeg4ipvan2008-06-182-0/+35
| | | | | | | | - Add COLR atom to mp4 video tracks - Add colorspace info to h.264 VUI header git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1528 b64f7644-9d1e-0410-96f1-a4d463321fa5
* use same compile optimizations that a jam build usesjstebbins2008-06-181-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1526 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove assert()s.saintdev2008-06-171-7/+0
| | | | | | | They were really only put there for initial debugging, never intended to make it into the final commit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1523 b64f7644-9d1e-0410-96f1-a4d463321fa5
* If we're using pass-through, copy the input bitrate/sample rate to the output.saintdev2008-06-171-4/+16
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1520 b64f7644-9d1e-0410-96f1-a4d463321fa5
* No need to check the mixdown settings if pass-through is requested.saintdev2008-06-171-119/+122
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1519 b64f7644-9d1e-0410-96f1-a4d463321fa5
* remove libhb.so from "all" target. It can't be build on x86_64 and nobody isjstebbins2008-06-151-1/+1
| | | | | | | using it. libhb.so can still be build with "make libhb.so" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1512 b64f7644-9d1e-0410-96f1-a4d463321fa5
* New cropping algorithm - determine cropping rectangle from a median filter ↵van2008-06-121-43/+123
| | | | | | run across all the preview frames. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1507 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - put the "find a usable frame rate" logic in the place that actually ↵van2008-06-121-3/+77
| | | | | | | | | computes decoder frame durations rather than just in the bitstream info routine. - start adding some comments describing how this horrible mess works. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1506 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improve image quality for ffmpeg constant qualityjstebbins2008-06-081-4/+23
| | | | | | | Allow entry of QP for ffmpeg git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1503 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Encode the initial H.264 NAL units for PPS and SPS, not just the ones during ↵jbrjake2008-06-061-6/+5
| | | | | | work. This was a regression caused by r270. Thanks for the patch, j45! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1498 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Adds a job->cfr boolean to indicate "encode this with a constant frame rate" ↵jbrjake2008-06-052-12/+17
| | | | | | instead of passing through the true frame durations from the source. Includes CLI implementation, which sets cfr to 1 if the user specifies a frame rate. Otherwise, it uses "same as source" frame rate. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1496 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fixes loose anamorphicjbrjake2008-06-041-4/+5
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1491 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - add pixel_aspect_ratio reporting to the mpeg decodervan2008-06-043-101/+133
| | | | | | | | - try lots harder to extract a useful video frame rate from libavcodec (successful for more files but still get junk from wmv's). - save all video parameters while we're getting previews then use the set we've seen most frequently as the parameters of the title. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1490 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Keep track of the input pixel aspect ratio as well as the output one. ↵jbrjake2008-06-044-31/+63
| | | | | | Hopefully doesn't break anything. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1489 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't crash in decmpeg2Info if we failed to get a preview due to not finding ↵van2008-06-031-1/+1
| | | | | | a sequence header. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1488 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use index+1 for numbering interlaced previews, so realityking doesn't get ↵jbrjake2008-06-021-1/+1
| | | | | | confused. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1487 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Use loose breaks for detelecine. This reduces jerkiness with PAL->NTSC ↵jbrjake2008-06-021-1/+1
| | | | | | telecining by dropping fewer frames. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1486 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't crash during scan when source not recognized (bug found & fixed by ↵van2008-06-011-1/+4
| | | | | | John Stebbins) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1485 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't call small frame displacements a "time reversal" & drop the frame on ↵van2008-06-011-4/+14
| | | | | | big ones. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1483 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix for cygwin builds - can't use "\n" in echovan2008-05-311-3/+9
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1481 b64f7644-9d1e-0410-96f1-a4d463321fa5
* - support blu-ray, avchd & dvb x264van2008-05-3126-1008/+2065
| | | | | | | - support video files handled by ffmpeg (avi, mkv, mp4, etc.) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1480 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Hack to fix building in xcodevan2008-05-311-1/+15
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1479 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix for unplayable m4v/mp4 files due to negative numbers in ctts atom.van2008-05-311-7/+25
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1478 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Reverts r1475 until it plays nice with Xcode + makejbrjake2008-05-311-45/+111
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1477 b64f7644-9d1e-0410-96f1-a4d463321fa5
* update.c altered to use both appcast.xml and appcast_unstable.xmlsr552008-05-301-111/+45
| | | | | | now uses a single tag, <cli></cli> for version information. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1475 b64f7644-9d1e-0410-96f1-a4d463321fa5
* git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1471 ↵jbrjake2008-05-298-37/+1035
| | | | b64f7644-9d1e-0410-96f1-a4d463321fa5
* When encoding anamorphic with lavc, ensure PAR values are 8-bit. Thanks, j45!jbrjake2008-05-291-1/+15
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1470 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Store video aspect ratio in the avi header.ritsuka2008-05-231-4/+91
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1469 b64f7644-9d1e-0410-96f1-a4d463321fa5