summaryrefslogtreecommitdiffstats
path: root/gtk/src/audiohandler.c
Commit message (Collapse)AuthorAgeFilesLines
...
* lingui: convert tabs to spacesjstebbins2012-12-271-1105/+1105
| | | | | | | Makes lingui source conform to hb standard for indentation. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5112 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Audio improvements.Rodeo2012-09-031-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* LinGui: fix a bunch of compiler warningsjstebbins2012-05-261-10/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4701 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: oops, fixed on sigsegv and created another :(jstebbins2012-05-261-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4700 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix crash when ejecting dvdjstebbins2012-05-261-4/+6
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4699 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: use "allowed passthru" options even when hidden by preference optionjstebbins2012-05-051-12/+1
| | | | | | | | If you don't do this, then presets that use these will not function as advertised. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4640 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix problem with fallback audio encoder selectionjstebbins2012-04-271-4/+6
| | | | | | | sanitizing for mkv was broken and sanitized out vorbis and flac git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4607 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: allow the user to select and use a bitrate for audio autopassthrujstebbins2012-04-261-12/+1
| | | | | | | | If the fallback encoder is used, the user should be able to set the bitrate that is used. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4604 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add HB_INVALID_AUDIO_QUALITY define. -1 is valid for Vorbis VBR and thus ↵Rodeo2012-02-211-3/+3
| | | | | | | | | | doesn't work for this purpose. Fixes Vorbis VBR with --aq < 0 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4461 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Oops, disabled more widgets than I meant tojstebbins2012-01-141-1/+1
| | | | | | Only disable the auto-passthru widgets, not gain, quality, drc, ... git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4411 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add preference to enabled auto passthru optionsjstebbins2012-01-141-51/+65
| | | | | | | | The advanced auto passthru options are probably overkill for 90% of people. So simplify the UI by hiding them unless the user explicitly asks for them in preferences. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4410 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix "Auto" audio encoder selectionjstebbins2011-10-291-1/+1
| | | | | | | When a fallback encoder is chosen, the actual encoder used should show up in the audio list, but "Auto" should remain selected in the dropdown. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4327 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix couple audio bitrate display problemsjstebbins2011-10-251-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4318 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix function parameters to GtkScaleButtonsjstebbins2011-10-171-7/+4
| | | | | | Missing parameter caueses crash on Mandriva and probably others. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4296 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: experimental support for batch queuingjstebbins2011-10-161-70/+198
| | | | | | | | | This allows all titles in the title popup to be added to the queue in one go. It uses the current *preset* for the settings. I.e. settings changes in the UI are ignored. This deficiency will be rectified at a future time. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4294 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix uninitialized variablejstebbins2011-10-161-1/+1
| | | | | | | Which lead to bizarre behavior on Oneiric git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4293 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add flac + quality + compression level supportjstebbins2011-10-121-21/+234
| | | | | | | | | Adds flac audio to cli, lingui, and macgui Adds quality and compression level options to cli Adds quality option to lingui Quality option works for vorbis and lame git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4281 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Auto Passthru and audio/video encoder lists.Rodeo2011-09-191-111/+53
| | | | | | | | | | | | | | This adds Auto Passthru as another encoder in libhb. Used in LinGUI and CLI. MacGUI features a partial impplmentation (with hardcoded values), which is disabled for now. Also, audio and video encoders are now stored in "lists", like we previously did for mixdowns. New mixdown "None" (HB_AMIXDOWN_NONE) added to hb_audio_mixdowns (was previously declared in MacGUI/LinGUI). git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4237 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: compute passthru fallbacksjstebbins2011-08-191-11/+42
| | | | | | | | | if we have an encoder for a passthru codec, use that encoder when passthru isn't possible. for 'Auto Passthru' use the fallback specified in the preset. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4188 b64f7644-9d1e-0410-96f1-a4d463321fa5
* add more audio passthru optionsjstebbins2011-08-011-71/+168
| | | | | | | | | | | | | | | | | adds aac and mp3 passthru for mp4 and mkv containers adds dts and dtshd for mp4 container (mkv already had it) Note: The only player known (to me) to support dts(hd) in mp4 is ff/avplay In LinGui there is a new option to limit which passthru codecs will be used by the "Auto Passthru" audio codec options. The CLI already has this ability with "--audio_copy-mask" which is use in conjunction with the "copy" audio codec option. Also corrects some A/V sync issues when video frames are dropped due to a gap detected in the audio. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4149 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix another problem with setting proper mixdownjstebbins2011-06-121-0/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4051 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a problem with mixdown optionsjstebbins2011-06-121-1/+2
| | | | | | | | incorrect mixdown options were disabled when the "Choose for me" encoder option was selected. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4043 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix parameters to value-changed callback for gain and drcjstebbins2011-06-111-2/+2
| | | | | | | stupid cut-and-paste error. caused crashes on some systems. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4039 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Add support for naming audio tracks.jstebbins2011-06-031-1/+8
| | | | | | | | Also fix hb_audio_add. It was not copying the audio name. And fix audio track name parsing in the CLI. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4020 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a problem with display of audio gain value.jstebbins2011-04-171-2/+4
| | | | | | | Was not updating properly, showed -1 and -0 when should have been 0. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3936 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add audio gain adjustment and create advanced audio dialog.jstebbins2011-04-051-16/+79
| | | | | | | | | Gain, DRC, and Sample Rate are now in an advanced audio dialog. This makes the audio tab less crowded and makes room for future improvements. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3903 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix backward compatibility issuejstebbins2011-03-221-1/+1
| | | | | | | Versions of gdk on Ubuntu 9.10 and 10.04 do not have GDK_KEY_* macros git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3871 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: update copyright datesjstebbins2011-01-031-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3731 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix hb_get_best_mixdown to allow downmixing 7.1 to 5.1jstebbins2010-11-051-0/+1
| | | | | | | | Use hb_get_best_mixdown in places in the LinGui that were duplicating code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3648 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Fix a problem with updating mixdown combojstebbins2010-11-031-1/+7
| | | | | | | | The first time the codec combo changes, the mixdown didn't get sanitized and updated. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3644 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix race condition in audio settingsjstebbins2010-10-171-0/+12
| | | | | | | | | changing an audio setting causes validation of bitrate to be triggered. the validation needed to be delayed till after all settings have been initialized. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3605 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix audio codec updating when track is changedjstebbins2010-10-141-0/+8
| | | | | | | | When the track changes, the fallback or passthru codec may need recalculating. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3602 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix infinite recursion issue in audio bitrate handlingjstebbins2010-10-141-5/+9
| | | | | | | | | adding a bitrate (that isn't in the standard set of bitrates supported by handbrake) to the bitrate combo for a passthru codec caused a cascade of errors. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3601 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix some audio list display problemsjstebbins2010-10-091-60/+40
| | | | | | | and try to clean up the code a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3589 b64f7644-9d1e-0410-96f1-a4d463321fa5
* add audio defaults and limits calculation to libhbjstebbins2010-10-081-10/+38
| | | | | | | | | | | | | | | hb_get_audio_bitrate_limits() Get the bitrate limits for a (codec,samplerate,mixdown) triplet hb_get_best_audio_bitrate() Given an input bitrate, sanitize it. Check low and high limits and make sure it is in the set of allowed bitrates. hb_get_default_audio_bitrate() Get the default bitrate for a given (codec,samplerate,mixdown) triplet git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3578 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: remove more duplicate code relating to min/max audio bitratesjstebbins2010-10-061-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3576 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: centralize min/max audio bitrate limit calculation to one placejstebbins2010-10-061-19/+7
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3575 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a problem where I used the wrong aac bitrate capjstebbins2010-10-051-3/+4
| | | | | | | wasn't allowing higher bitrate for aac 6ch in some cases. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3574 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a display problem in the audio listjstebbins2010-10-051-22/+16
| | | | | | | And tweak default bitrate choices. likely to change :P git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3573 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add ac3 encodingjstebbins2010-10-041-32/+82
| | | | | | | Uses ffmpeg's ac3 encoder. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3570 b64f7644-9d1e-0410-96f1-a4d463321fa5
* remove the 8 audio limit. isn't needed anymore.jstebbins2010-09-151-1/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3531 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix audio preset initializationjstebbins2010-06-241-5/+22
| | | | | | | | | | sometimes audio settings were to being initialized correctly to the values in the preset. some code that sets reasonable values when the encoder changes from passthru to non-passthru was getting invoked and overwriting the preset values. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3403 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix some problems i introduced with the recent audio tab changesjstebbins2010-06-081-4/+8
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3370 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: rework some of the logic behind the audio tab handlerjstebbins2010-06-071-119/+84
| | | | | | | | | gets rid of some duplication of values that i had. makes it easier to keep the visible list and the data structures behind it in sync. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3369 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix some spam in the log about hash item not foundjstebbins2010-06-061-0/+2
| | | | | | | audio encoder item wasn't always getting initialized git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3365 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Improvements to audio paneljstebbins2010-06-061-14/+32
| | | | | | | | | | When codec is "Choose for me", show the codec chosen in the list, but leave the combo box showing "Choose for me". This way, if the user saves the settings in a new preset, the audio codec saved remaines 'auto' instead of reverting to the codec that was chosen. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3361 b64f7644-9d1e-0410-96f1-a4d463321fa5
* patch to allow higher bitrates with faacjstebbins2010-04-141-2/+2
| | | | | | | 2 channel allows up to 320kbps, 6 channel allows up to 768kbps git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3222 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a bunch of brokenness on Ubuntu 10.04 (lucid)jstebbins2010-02-231-1/+1
| | | | | | | | | | | gtk 2.19 has changed how object id's are stored by gtkbuilder. The widget name is no longer assigned to the builder object id. Instead the id is stored in a special property. Getting incorrect object id's caused all settings values to be referenced incorrectly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3135 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: enhancements to automatic audio selection when passthru is requestedjstebbins2009-11-241-30/+46
| | | | | | | and the source codec isn't capable of passthru. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2969 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: make smarter bitrate choice when automatically selecting audio settingsjstebbins2009-11-241-2/+9
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2967 b64f7644-9d1e-0410-96f1-a4d463321fa5