summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.m
Commit message (Collapse)AuthorAgeFilesLines
* MacGUI: use hb_reset_job.Rodeo2012-03-311-27/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4564 b64f7644-9d1e-0410-96f1-a4d463321fa5
* encx264: use x264_param_apply_fastfirstpass.Rodeo2012-03-281-20/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4551 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Controller.m: replace usage of hb_strdup_printf with NSString.Rodeo2012-03-281-25/+16
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4549 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix commit 4546 so it works on os x which is the filter pipeline ↵dynaflash2012-03-281-5/+4
| | | | | | | | rework from j45. - libhb fix by Rodeo git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4547 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Rework filter pipelinejstebbins2012-03-271-61/+84
| | | | | | | | | | | | | | | | | | | | This patch enhances the filter objects. The 2 key improvements are: 1. A filter can change the image dimensions as frames pass through it. 2. A filter can output more than one frame. In addition, I have: Moved cropping & scalling into a filter object Added 90 degree rotation to the rotate filter Moved subtitle burn-in rendering to a filter object. Moved VFR/CFR handling into a framerate shaping filter object. Removed render.c since all it's responsibilities got moved to filters. Improves VOBSUB and SSA subtitle handling. Allows subtitle animations. SSA karaoke support. My apologies in advance if anything breaks ;) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4546 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: fix typo + minor cleanup after the last few libavcodec/theora ↵Rodeo2012-02-201-28/+21
| | | | | | advanced options commits. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4458 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix an issue where lavc options were shown and passed when Theora ↵dynaflash2012-02-191-2/+12
| | | | | | was chosen. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4457 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Advanced Options fixesdynaflash2012-02-171-25/+28
| | | | | | | | | - Fix advanced FFmpeg options in two-pass mode. - Fix advanced FFmpeg options when re-scanning a queued item. -- Thanks Rodeo for the fixes! - Add HBAdvancedController.h to the HandBrake.app target in the xcode project. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4452 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: chnage the wording of the "dvdcss not found" warning to reflect that ↵Rodeo2012-02-141-6/+7
| | | | | | | | | | VLC is no longer the preferred solution for DVD decryption. Users now get directed to a page where they can download a .pkg installer for libdvdcss. Thanks, Videolan! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4447 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add ffmpeg (lavc) advanced options text box to the advanced panel.dynaflash2012-02-091-2/+46
| | | | | | | - Fix a couple other traps for x264 opts as well. - Add lavcOption Key to the presets as per the LinGui to maintain preset parity. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4443 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: add Auto Passthru support.Rodeo2012-01-241-38/+189
| | | | | | | | | | By default, all available passthru codecs are allowed, and the fallback is the AC3 encoder. Advanced settings can be enabled in Preferences > Audio, but are disabled by default. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4419 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix some warnings introduced in the previous commit.Rodeo2011-12-081-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4375 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: add "Fast" decomb option.Rodeo2011-12-081-10/+23
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4374 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add flac + quality + compression level supportjstebbins2011-10-121-0/+1
| | | | | | | | | 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
* MacGui: since Auto Passthru isn't enabled yet, we still need to fall back to ↵Rodeo2011-09-191-1/+1
| | | | | | | | | | AC3 Passthru when loading a preset. Also, update an outdated comment. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4238 b64f7644-9d1e-0410-96f1-a4d463321fa5
* libhb: Auto Passthru and audio/video encoder lists.Rodeo2011-09-191-27/+84
| | | | | | | | | | | | | | 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
* MacGui: Behold that which is hidden ... Batch Queueing Support.dynaflash2011-09-021-1/+40
| | | | | | | | | | | | - Add batch queueing support to the macgui. - Currently accessed under File > Add All Titles To Queue - No toolbar button yet since it needs to soak for a while and needs refinement. - Applies all current settings to all titles. - Best used with batch scanning flat files. - Works with a dvd scan where the dvd titles are in the title structure ... but not recommended. - Use at your own peril! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4201 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Blu-ray: display playlist number in log, CLI scan output, and title drop-down.Rodeo2011-08-161-4/+14
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4182 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix borked "When Done" Preference drop down which was inexplicably ↵dynaflash2011-08-121-1/+1
| | | | | | | | | lost in rev 3757. - Patch by Rodeo ... thanks! - Addresses https://reviews.handbrake.fr/r/168/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4168 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Consolidate passthrough mixdowns.dynaflash2011-07-191-3/+0
| | | | | | | | | | - There's no need for one passthrough mixdown per passthrough codec. - When using passthru, mixdown is set to "None". - Patch by Rodeo ... Thanks! - Fix a bug where we would sometimes attempt to modify a non-mutable NSDictionary, causing a crash. - Fix by blindjimmy ... Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4121 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add -selectedPreset helper methoddynaflash2011-05-261-63/+67
| | | | | | | | - Patch once again by blindjimmy.. thanks! - This change consolidates all the calls in Controller.m of [fPresetsOutlineView itemAtRow:[fPresetsOutlineView selectedRow]] to get the currently selected preset to use a new -selectedPreset accessor method. This is both easier to read and is better decomposition. - as per https://reviews.handbrake.fr/r/85/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4003 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix some compile time warnings.dynaflash2011-05-261-5/+0
| | | | | | | - patch by blindjimmy, thanks! - as per https://reviews.handbrake.fr/r/99/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4001 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Audio Gain Control initial implementationdynaflash2011-05-261-2/+4
| | | | | | | | | | | | | | - Adds a Circular Slider to implement gain from a range of -5 to +15 which is sane by any reasonable measure. - Note: the circular slider with this range puts the default of 0.0 at the three o'clock position on the slider which is kind of wonky. Any ideas to make it more intuitive are welcome. -The accompanying text field readout is left editable so values beyond the sliders range can be specified manually. - Gain is disabled for any passthru options obviously. - Though it has been in cli and lingui for some time, as a note my tests show that anything above +15 can get distorted quite easily. Of course that is open to opinion depending on source, I have yet to see a complaint about the volume of encoded audio being too high but we leave up to -5 there just for the corner cases. - Any existing presets not specifying gain will use a gain of 0.0 which means of course its unmodified. - Also as a sidenote takes care of blindjimmy's patch https://reviews.handbrake.fr/r/99/ as far as /macosx/HBQueueController.m git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4000 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove deprecated PictureDecombDeinterlace key.dynaflash2011-05-191-12/+4
| | | | | | | - As per https://reviews.handbrake.fr/r/95/ - Patch by Rodeo ... as always thanks Rodeo! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3986 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Don't assign nil to ints (duh)dynaflash2011-05-191-8/+2
| | | | | | | - As per https://reviews.handbrake.fr/r/88/ - Patch by blindjimmy, once again thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3985 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove unused variables to suppress warnings at compile timedynaflash2011-05-191-3/+0
| | | | | | | - As per https://reviews.handbrake.fr/r/87/ - Patch by blindjimmy ... thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3984 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix the wording for Peak Framerate to match the Lingui.dynaflash2011-05-191-2/+2
| | | | | | - Patch by Rodeo As per https://reviews.handbrake.fr/r/79/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3982 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Save picture settings by default when creating a new preset.dynaflash2011-04-291-3/+4
| | | | | | | | | - Use Custom (defaulted to current picture size). - Use currently selected Filters. - Note this is by default. All choices are still the same - As per https://reviews.handbrake.fr/r/82/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3968 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: change key for video framerate mode from VideoframerateMode to ↵dynaflash2011-04-281-10/+10
| | | | | | | | VideoFramerateMode to match the lingui. - Good catch Rodeo ... thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3967 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Macgui: Remove last vestiges of the deprecated job->vfr.dynaflash2011-04-201-8/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3942 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add ffmpeg Mpeg2 encoder support.dynaflash2011-04-161-9/+8
| | | | | | - Patch by Rodeo. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3933 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: implement Frame Rate Mode as per the Lingui.dynaflash2011-04-151-23/+73
| | | | | | | - Removes the current Peak Framerate checkbox and replaces it with appropriate Radio Buttons depending on if Same as Source or a specific framerate is chosen in the Frame Rate popup widget. - Gets the macgui up to speed with https://trac.handbrake.fr/changeset/3770 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3930 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Allow SRT File Paths up to 256 charactersdynaflash2011-04-151-2/+4
| | | | | | - Patch by Rodeo as per https://reviews.handbrake.fr/r/51/ Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3926 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Fix garbled previews from BD h.264 sourcesjstebbins2011-04-021-2/+3
| | | | | | | | | | | Forome reason, frames that are tagged as recovery points in many BD h.264 streams do not result in complete frames when decoded. Pushing 2 extra frames through the decoder seems to always fix this. This patch extends something I was already doing when generating previews from a BD structure. This just applies the same logic to ffmpeg streams that have h.264 video. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3895 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Never disable the chapter markers checkbox.dynaflash2011-03-291-14/+13
| | | | | | | | | | | | | | | Patch by Rodeo ... Thanks! - Discussed here https://reviews.handbrake.fr/r/58/ This allows users to enable/disable chapter markers regardless of whether the source has chapters, which is very useful when saving a preset. This will not cause chapter markers to be inserted if we only have one chapter, as this is sanitized twice: - once in macosx/Controller.m, in createQueueFileItem - once in libhb/work.c, in do_job() In autoSetM4vExtension, update the condition for chapter markers being on or off, since we can no longer rely on the checkbox being enabled/disabled. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3888 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Remove legacy % to RF mapping.jstebbins2011-03-211-42/+13
| | | | | | | | | | Although the % option has been gone for a while in the cli and gui's, there were some mappings happening in libhb and for preset imports. This removes the last vestages of % quality mapping. Thanks to Rodeo for the patch. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3857 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add parameter parsing and b-frame support to ffmpeg mpeg-4 encoderjstebbins2011-03-111-10/+10
| | | | | | | | | | | | | The cli will now accept ':' separated parameters using the '-x' option for ffmpeg mpeg-4. The linux gui has an entry box on the advanced tab to add options. The option keys and values are the same as what the ffmpeg command line allows. Calculation of DTS timestamps was added to encavcodec.c in order to allow out of order b-frames. The algorithm is similar to what x264 uses. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3839 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove Target Size as a rate control option as it doesn't really ↵dynaflash2011-03-011-32/+34
| | | | | | | | | | | work correctly and should die an overdue death. - Also rearranged the video quality layout a bit. - Moved Constant Quality above Average Bitrate - Moved the entire Video Quality matrix down below frame rate where it belongs. - Presets are mapped accordingly internally in the macgui code so that they are unchanged across platforms. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3823 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: In Preferences, Instead of the old "Use iTunes / iPod friendly file ↵dynaflash2011-01-191-16/+9
| | | | | | | | | | | | extension for mp4" checkbox we allow three choices: - Auto (Default): will use .mp4 unless any of the conditions are met for Apple devices to use .m4v such as AC3 audio or chapters, etc. - .m4v: will set the extension to .m4v regardless of settings. - .mp4: will set the extension to .mp4 regardless of settings. Basically anything other than Auto forces either the .m4v or .mp4 file extension. Again "Auto" is default. Note: This deprecates the old preferences plist key "DefaultMpegName" which was just a bool and adds "DefaultMpegExtension" which is a string. As a result users that had the old "Use iPod/iTunes friendly (.m4v) file extension for MP4" checkbox checked will need to select ".m4v" in the new preferences dialogue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3758 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: When using x264 and rf 0 is selected show "Warning: Lossless" in the ↵dynaflash2011-01-031-0/+6
| | | | | | field readout for rf. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3729 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix popup and output file extension inconsistency. Patch by Rodeo. ↵dynaflash2010-12-281-2/+16
| | | | | | | | Thanks! - Issue with mis matching formats and extensions described here http://forum.handbrake.fr/viewtopic.php?f=4&t=19001 . git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3717 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Only scan ten previews when doing a queue encode scan since we don't ↵dynaflash2010-12-281-3/+3
| | | | | | | | need additional previews at this point since everything is already set. - Patch by Rodeo. Thanks! git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3716 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Free the source display name for the ui before re-allocating it when ↵dynaflash2010-12-271-1/+3
| | | | | | | | doing a queue edit rescan. - Fixes a consistent crash when trying to edit a queue item. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3714 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix a typo and change how we word how many encodes are left in the ↵dynaflash2010-11-301-3/+7
| | | | | | | | | queue in the main window. - Patches by Rodeo. - Further explanation can be found here: http://forum.handbrake.fr/viewtopic.php?f=4&t=18807 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3691 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix character encodings in the log file as well as the title popup ↵dynaflash2010-11-301-2/+2
| | | | | | | | | string in the main menu dialogue. - Patch by axfree. Thanks! - Changes are discussed here: http://forum.handbrake.fr/viewtopic.php?f=4&t=18677 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3690 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix queue and auto m4v ...dynaflash2010-11-081-2/+3
| | | | | | | | - patch (as previous) by circleone - Fix it so that the queue does not attempt to process an extra queue item when the output file already exists. - Using AC3 Passthru as the codec will trigger the output file to have the .m4v extension when using mp4. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3664 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Allow longer SRT filename paths.jstebbins2010-11-071-2/+4
| | | | | | | Bump from 128 to 256. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3655 b64f7644-9d1e-0410-96f1-a4d463321fa5
* SSA subtitle burn injstebbins2010-09-281-1/+15
| | | | | | | | | | Anime fans rejoice! This patch adds SSA subtitle burn-in support with libass. Therefore SSA subtitles should now be rendered in full quality, with the appropriate embedded fonts and positioning information. Thanks to davidfstr git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3557 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Audio Fixes and Enhancements ... patch by circleone.dynaflash2010-09-201-7/+15
| | | | | | | | | | | | | Fixes issue where changing to custom from a preset then changing titles will cause an empty audio tab. Also: - Added the ability for HandBrake's language preference to be honored when it occurs in the title's tracks. - Ensured the limit (currently 24) is not passed when adding audios using presets. - If no preset is chosen, when a new title loads, one track is added (based on the language preference or the first if that is not met). - Reinitializing the audio array is now KVO-friendly, making the UI refresh more pleasant. - The "Add All Tracks" button has been made mini in size. - The audio table view no longer attempts to keep the selection. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3549 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Audio ... Add an "Add All Tracks" button to the audio tab.dynaflash2010-09-161-0/+14
| | | | | | | - Patch by circleone... Thanks again! - Adds all available source tracks at the default mixdown etc. to the macgui in one click. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3536 b64f7644-9d1e-0410-96f1-a4d463321fa5