summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* libhb: add experimental avformat muxer for mkv and mp4jstebbins2013-06-302-2/+10
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5620 b64f7644-9d1e-0410-96f1-a4d463321fa5
* improve aac encoder build options and change some aac encoder defaultsjstebbins2013-06-151-1/+5
| | | | | | | | | | By default, faac is no longer built. Libav aac is now the default aac encoder on all platforms except osx where ca_aac is the default. fdk-aac is now built by default (except on osx). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5581 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Experimental preset for Windows Phone 8 Devices. Would be appreciated that ↵sr552013-06-081-1/+70
| | | | | | anyone with a W8 Phone provides feedback. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5573 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Cosmetics.Rodeo2013-06-061-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5568 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: Silence compiler warningjstebbins2013-06-061-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5567 b64f7644-9d1e-0410-96f1-a4d463321fa5
* manicure: support new mixdowns added before 0.9.9.Rodeo2013-06-041-10/+10
| | | | | | | | Also, use "none" as the "None" mixdown; this is the name expected by libhb. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5552 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb/common: improve fallback mechanism.Rodeo2013-06-031-12/+3
| | | | | | | | | | | | | | | | | | | | API changes: - added hb_global_init(), must be called before any other libhb function - removed (somewhat pointless) hb_mixdown_t.internal_name - some hb_*_get_from_name() functions now return 0 instead of -1. Instead of hardcoded fallbacks, list items now have a specific fallback, and a generic ID for when the specific fallback is unavailable. Encoder availability is checked at runtime (hb_global_init calling hb_common_global_init) and the item's value/fallback is sanity-checked and updated if necessary. See https://reviews.handbrake.fr/r/506/ for more detailed information. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5547 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Don't expose rate, mixdown, dither and encoder arrays to the UIs.Rodeo2013-05-301-233/+207
| | | | | | | | | | | | | | | | | | | | - instead, make these lists available through enumerators: --> hb_*_get_next(<type> *last); - this should give us more flexibility to populate the lists at runtime, using the implementation(s) of our choice, whether they use arrays or not, without requiring UI modifications - use consistent naming for getters --> hb_get_best_foo() becomes hb_foo_get_best(), and so on - hb_*_get_from_name() and hb_*_ sanitize_name() sanitize the requested value to a supported one if it's unavailable - adds an additional, passthru-specific fallback mechanism - adds a list of video containers git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5526 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Make initialization of vfr filter work as I intended.jstebbins2013-05-281-25/+29
| | | | | | | Also fix signalling of framerate in output file when PFR is used. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5522 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix broken code for preserving libhb's default muxer.Rodeo2013-05-081-22/+23
| | | | | | | | | | | | It was checking if (job->mux) instead of if (mux)… Also move setting the muxer and muxer options earlier, as we need to know the final muxer when e.g. setting audio settings. Also, don't set the default audio codec before we have all relevant information. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5445 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix typo in previous commit.Rodeo2013-04-301-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5433 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: minor help text updates in preparation for the next release.Rodeo2013-04-301-24/+21
| | | | | | | | Remove some outdated comments, simplify and clarify a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5432 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: improve help for video filters.Rodeo2013-04-121-4/+6
| | | | | | | | Includes mention of the new "bob" mode for decomb and deinterlace. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5400 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: when an audio or subtitle track is skipped, print the string value.Rodeo2013-03-191-2/+6
| | | | | | | | Makes it easier to spot non-numeric track "numbers". git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5345 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_system_sleep: refactoring.Rodeo2013-03-181-5/+5
| | | | | | | | | | | | Also: - release power assertions before freeing them - actually free the power assertions in hb_close() (previously unused) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5340 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: implement hb_system_sleep support.Rodeo2013-03-181-7/+15
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5339 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Some further header updates.sr552013-03-093-9/+18
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5322 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove VLC Loading code from the CLI.sr552013-03-091-75/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5317 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix Auto Passthru for built-in presets.Rodeo2013-03-071-22/+22
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5310 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: add default Auto Passthru settings to built-in presets.Rodeo2013-03-041-11/+165
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5304 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: update built-in presets.Rodeo2013-03-041-28/+36
| | | | | | | | manicure: strcmp -> strcasecmp, makes preset names case-insensitive. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5301 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add optional fdk-aac encoderjstebbins2013-03-031-0/+4
| | | | | | | configure --enable-fdk-aac to enable this encoder git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5287 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: Switch back to stderr.sr552013-03-021-3/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5282 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI, MacGui: cosmetics.Rodeo2013-03-011-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5277 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improve scan progress granularityjstebbins2013-03-011-4/+11
| | | | | | | | We were only updating progress after completely processing each title. Now progress is updated as we generate previews as well. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5276 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Audio dithering.Rodeo2013-02-051-0/+106
| | | | | | | | | | | | Works with encoders that accept 16-bit signed integers as input (currently, only ffflac). When supported, the default method is standard triangular. CLI users can request a specific dither algorithm via the --adither option. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5241 b64f7644-9d1e-0410-96f1-a4d463321fa5
* x264 preset system: miscellaneous improvements.Rodeo2013-01-301-43/+43
| | | | | | | | See https://reviews.handbrake.fr/r/421/ for details. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5225 b64f7644-9d1e-0410-96f1-a4d463321fa5
* manicure: bugfixes.Rodeo2013-01-261-11/+11
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5204 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix AppleTV preset in ShowPresets().Rodeo2013-01-061-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5162 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui,CLI: change h.264 profile to high in AppleTV presetjstebbins2013-01-061-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5161 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix previous commit. free(NULL) is perfectly safe.Rodeo2013-01-061-19/+19
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5157 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: check against NULL before freeing.Rodeo2013-01-061-31/+32
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5156 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix warning.Rodeo2013-01-041-10/+8
| | | | | | | | test/test.c:378: warning: ‘ShowCommands’ was used with no prototype before its definition git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5149 b64f7644-9d1e-0410-96f1-a4d463321fa5
* hb_rate_s, hb_mixdown_s, hb_encoder_s: use const char * instead of char *Rodeo2013-01-041-1/+1
| | | | | | | | These are used in hardcoded tables, so there will never be a need for mutable strings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5148 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: help: print per-encoder default mixdown dynamically.Rodeo2013-01-041-8/+14
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5147 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: avoid an #fidef.Rodeo2013-01-041-5/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5146 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: use hb_get_default_audio_encoder().Rodeo2013-01-041-26/+28
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5145 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix logging of the default mixdown in --help.Rodeo2013-01-041-12/+17
| | | | | | | | Also, some minor cosmetics/refactoring. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5143 b64f7644-9d1e-0410-96f1-a4d463321fa5
* update presets for lingui and CLIjstebbins2012-12-271-150/+160
| | | | | | | These new presets use x264 preset/tune/profile/level git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5111 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Improve management of titles and jobsjstebbins2012-11-121-42/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleans up several several unavoidable memory leaks caused by old api. Clearly separates titles from jobs. Titles are set during scan and never modified now. Since titles are immutable, this lead to API some changes. For example, We were setting chapter names in the title from the front ends. Now these get set in the job. These new APIs allow us to start moving away from our use of title->job. Eventually, I would like to eliminate title->job completely, but the mac ui is too tightly tied to using this field to allow removing it at this time. So there is temporarily a convenience function used only by the mac ui that allows it to continue using title->job and also use the new APIs. New APIs: typedef struct hb_title_set_s hb_title_set_t; struct hb_title_set_s { hb_list_t * list_title; int feature; // Detected DVD feature title }; hb_title_set_t * hb_get_title_set( hb_handle_t * ); This is just something I added to clean up how "feature title" info is passed. hb_job_t * hb_job_init( hb_title_t * title ); Initializes a new job with default settings from the title. hb_job_t * hb_job_init_by_index( hb_handle_t *h, int title_index ); Same as hb_job_init(). For use by win Interop lib. void hb_job_reset( hb_job_t * job ); Convenience function for the MacUi. Clears audio, subtitle, and filter lists. The macui still uses title->job because it is so intricately tied to it. So I created this convenience function that it can call after adding a job. void hb_job_close( hb_job_t ** job ); Releases the job an all resources it contains. void hb_job_set_advanced_opts( hb_job_t *job, const char *advanced_opts ); Makes a copy of "advanced_opts" and stores in job. Freed by hb_job_close(). void hb_job_set_file( hb_job_t *job, const char *file ); Makes a copy of "file" and stores in job. Freed by hb_job_close(). void hb_chapter_set_title(hb_chapter_t *chapter, const char *title); Makes a copy of "title" and stores in chapter. Freed by hb_chapter_close(). Recommended usage (cli and lingui are updated to do this): job = hb_job_init( title ); // set job settings ... hb_add(h, job); hb_job_close( &job ); I have also added new APIs for managing metadata. These are used to add metadata to a job. void hb_metadata_set_name( hb_metadata_t *metadata, const char *name ); void hb_metadata_set_artist( hb_metadata_t *metadata, const char *artist ); void hb_metadata_set_composer( hb_metadata_t *metadata, const char *composer ); void hb_metadata_set_release_date( hb_metadata_t *metadata, const char *release_date ); void hb_metadata_set_comment( hb_metadata_t *metadata, const char *comment ); void hb_metadata_set_genre( hb_metadata_t *metadata, const char *genre ); void hb_metadata_set_album( hb_metadata_t *metadata, const char *album ); void hb_metadata_set_coverart( hb_metadata_t *metadata, const uint8_t *coverart, int size ); Example: job = hb_job_init( &job ); // set job settings ... hb_metadata_set_artist( job->metadata, "Danny Elfman" ); hb_add(h, job); hb_job_close( &job ); Some APIs have changed in order to avoid using title incorrectly and use the new hb_title_set_t. -void hb_autopassthru_apply_settings( hb_job_t * job, hb_title_t * title ); +void hb_autopassthru_apply_settings( hb_job_t * job ); -void hb_get_preview( hb_handle_t *, hb_title_t *, int, uint8_t * ); +void hb_get_preview( hb_handle_t *, hb_job_t *, int, uint8_t * ); hb_thread_t * hb_scan_init( hb_handle_t *, volatile int * die, const char * path, int title_index, - hb_list_t * list_title, int preview_count, + hb_title_set_t * title_set, int preview_count, int store_previews, uint64_t min_duration ); These APIs have been removed. Win Interop will need some changes. I think what I've provided will be suffecient, but let me know if it's not. -void hb_get_preview_by_index( hb_handle_t *, int, int, uint8_t * ); -void hb_set_anamorphic_size_by_index( hb_handle_t *, int, - int *output_width, int *output_height, - int *output_par_width, int *output_par_height ); git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5058 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI, manicure: cosmetics.Rodeo2012-10-271-47/+0
| | | | | | | | Makes it easier to update CLI presets without having to worry about whitespace polluting the diffs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5038 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix the AppleTV 3 preset once more.Rodeo2012-10-271-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5036 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix AppleTV 3 preset again.Rodeo2012-10-271-1/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5034 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: cosmetics.Rodeo2012-10-271-20/+20
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5032 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI: fix AppleTV 3 preset.Rodeo2012-10-271-1/+3
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5031 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix link failure on ubuntu, incorrect link orderjstebbins2012-10-061-1/+1
| | | | | | | libxml2 needs to be after libbluray since libbluray uses xml2 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5002 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix mingw build problemsjstebbins2012-10-041-34/+11
| | | | | | | | | | | | If the mingw environment has duplicates of some of the contrib libraries that we build, the mingw system lib or header was being used instead of our contrib version. Also, some dependencies were missing which would cause parallel builds to randomly fail because a necessary contrib hadn't been built yet. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5000 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove mingw+libmkv dependency on libiberty.konablend2012-09-081-1/+1
| | | | | | | | Remove mingw+test dependency on libiberty. Add build system support for propagating compiler DEFINES to contrib configure. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4942 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Audio improvements.Rodeo2012-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New supported samplerates: 8, 11.025, 12, 16 kHz. Now 8, 11.025, 12, 16, 22.05, 24, 42, 44.1, 48 Khz are supported. Unsupported samplerates are sanitized to the closest samplerate for all encoders. Samplerates < 32 kHz are now forbidden for AC3 encoding (sanitized to 32 kHz). Most AC3 decoders don't support such samplerates. New upmixing: 3.0 (Front Left, Right & Center) can now be upmixed to 5.1 to preserve the center channel. New mixdowns: 6.1 (Front Left, Right & Center, Surround Left, Right & Center, LFE) 7.1 (Front Left, Right & Center, Surround Left & Right, Rear Left & Right, LFE) -> available to Vorbis & FLAC encoders for compatible input channel layouts 7.1 (Front Left, Right & Center, Front Left & Right of Center, Surround Left & Right, LFE) -> available to AAC encoders (ca_aac, ca_haac, faac) for compatible input channel layouts Mono (Left Only): Stereo to Mono by discarding the Right channel Mono (Right Only): Stereo to Mono by discarding the Left channel -> available to all encoders for non-Dolby Stereo input The "6-channel discrete" mixdown becomes "5.1 Channels". New bitrates: 960 - 1536 Kbps. This lets users work around poor audio quality in crappy encoders by throwing more bits at them. Bitrate limits have been re-worked and re-tested for all encoders. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4930 b64f7644-9d1e-0410-96f1-a4d463321fa5
* CLI help: generate the list of available audio mixdowns, rather than naving ↵Rodeo2012-09-011-3/+14
| | | | | | it hardcoded. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4924 b64f7644-9d1e-0410-96f1-a4d463321fa5