summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
Commit message (Collapse)AuthorAgeFilesLines
* MacGui: Fix the deblock filter for live previews.dynaflash2008-12-011-1/+7
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1980 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove custome decomb option from preferences and Picture Settingsdynaflash2008-11-301-13/+12
| | | | | | | - Remove the text field to enter a custom decomb string in the Preferences > Picture window - Change the NSPopup for decomb to a checkbox in Picture Settings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1975 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Implement variable number of preview framesdynaflash2008-11-301-3/+7
| | | | | | | - Set in Preferences -> Advanced and defaulted to 10 - Allows for up to 20 previews per title for now. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1972 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Live Preview Initial Implementationdynaflash2008-11-241-18/+320
| | | | | | | | | | | | | | - Uses a separate instance of libhb called fPreviewLibhb to do the preview encode. Bypasses the queueing system so you can encode a live preview on one source while encoding another. - All facets of the encode are replicated (including but not limited to audio tracks, subtitles and picture filters) *except* 2 pass. For speed's sake we only do one pass which should be more than sufficient for a 6 to 60 second preview. - Live Preview clips are stored in "~/Library/Application Support/HandBrake/Previews/" and remain until a new preview is called for of the same format in which case the old version of "mymovie.mkv" would be replaced with a current version called "mymovie.mkv". - Uses QTMovieView and QTMovieKit to show 5 - 60 seconds in 5 second increments (determined by a user set NSPopUpButton) of a live preview from the starting point of any of the existing 10 still previews. - Preview window is now non-modal so can be kept open to see the effect of changing presets, etc. - Next and Previous buttons replaced with a 10 position slider - Live Preview is shown same as users QuickTime implementation would show it. ie. without Perian installed, mkv's will not play back, etc. - Uses QT's stock controller bar with volume, scrubber and single frame advance buttons. - Known Issues: Movie alignment against the still preview considering the additional height of the movie controller bar. Particularly using loose anamorphic. I am sure there are others. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1951 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue with queue where cancelling a two pass job during the ↵dynaflash2008-11-201-40/+53
| | | | | | | | first pass would leave the second pass in libhh which caused the next job to start by processing the remaining pass from the cancelled job. - addresses bug reported here http://forum.handbrake.fr/viewtopic.php?f=12&t=7420 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1936 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix multibyte character issue for Chapter Namesdynaflash2008-11-071-1/+1
| | | | | | | - Patch by youk, thanks! - Addressed here http://forum.handbrake.fr/viewtopic.php?f=12&t=7580 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1902 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove check on web optimized and ac3 passthru.ritsuka2008-11-021-12/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1895 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add the preset used log message back indynaflash2008-10-301-1/+1
| | | | | | - I think I borked it with the new queue processing. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1884 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Acivity Logs for individual encodes initial implementationdynaflash2008-10-301-6/+11
| | | | | | | | | | | | | | | | - Individual activity logs are saved in the file format "YYYY-MM-DD HH-MM-SS mymoviename.txt". - Default directory is "~/Library/Application Support/HandBrake/EncodeLogs/". - Advanced preference available to alternatively put them in the users output movie directory with the output movie (by default set to "off"). - Renamed the existing contextual menu items for the Activity Window to better reflect choices (function remains the same) as follows: -- "Copy All Output" -> "Copy Window Contents". -- "Clear Output" -> "Clear Window Contents". -- "Open Log File" -> "Open Log File For This Session". -- "Clear Log File" -> "Clear Log File For This Session". - Added "Open Individual Log File Directory" to the Activity Window contextual menu to open this directory with the Finder - Also commented out some macgui based activity log messages that were used to troubleshoot the new queue. - Note: the individual activity logs are in addition to the existing session based activity log. If you do a scan of a new source during encoding, the new source scan log messages will be intermixed with the encode log messages as I have no clue how to separate stderr/stdout based on which instance of libhb is sending the messages. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1881 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix Target Size mode for Video Quality.dynaflash2008-10-241-25/+99
| | | | | | | - Moved appropriate functions that used to be in prepareJob (pre resilient queue) into -calculateBitrate - Added calls to -calculateBitrate when the format, audio tracks or chapters change. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1865 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Logging Level - set to "1" in prefs.dynaflash2008-10-201-2/+3
| | | | | | - Currently cannot increase in the preferences panel, will add later. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1854 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Presets - Auto Crop/Custom Crop is now independent of "Use Max ↵dynaflash2008-10-201-31/+28
| | | | | | | | Source Size" for Picture Sizing. - Fixes the PS3 preset among other things. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1853 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Finally!! Nested Presets - Initial implementationdynaflash2008-10-141-222/+501
| | | | | | | | | | | | | | | | | | | - Currently just in the Built In presets. - Special thanks to jbrjake for updating the new built in presets :) -- jbrjake's notes on built in preset changes: --- no more blind, broke, bedlam, or deux six quatre presets --- detelecine and decomb for animation and television high profile presets --- new x264 settings for most presets, which are still in a state of flux --- iPod Hi-Rez renamed iPod Legacy, iPod Low-Rez renamed iPod Classic & iPod Nano, iPhone / iPod Touch renamed iPhone & iPod Touch - Make sure to Update your Built In presets. - Selecting the default preset (whether user specified or the hb default) automatically expands the proper parent folders - "Folders" are stored as a different type of preset with key "Folder" where a value of 1 is a folder and 0 is a regular preset. - Children presets (which can also be folder presets with their own children) are stored in an array in the folder preset with key "ChildrenArray" - Levels are limited to three (including the root level). - Though most of the code for creating custom user specified folders and dragging and dropping user presets into those folders is done, its not fully tested so is not currently implemented. In other words custom presets are still only at the root level. - Known issue: dragging and dropping within custom user presets seems a touch "glitchy". Though in testing presets have not been lost. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1831 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove some of the debug messages in prepareJob for the queue ↵dynaflash2008-09-301-9/+2
| | | | | | | | processing. - Also fix a reference to the 4th audio track drc slider. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1793 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix warning windows when shutting down HandBrake during encoding or ↵dynaflash2008-09-291-9/+9
| | | | | | if there are still pending items in the queue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1784 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix presets when using maximum source picture size and loose ↵dynaflash2008-09-261-7/+4
| | | | | | anamorphic so choosing such a preset sets the width to its full source storage size and properly applies loose anamorphic. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1767 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove the VFR checkbox in the Picture Settings window.dynaflash2008-09-241-45/+25
| | | | | | | - Use vfr if the framerate popup is "Same as source" and Detelecine is checked in Picture Settings. - Otherwise framerate works as in the past. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1752 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: implement a slider for deblock.dynaflash2008-09-231-9/+20
| | | | | | | | - Slider goes from "Off" and then ranges from 5-15. - Update preset code to handle the old bool for deblock where we convert "yes" to a value of 5. - Note: though the deblock filter actually has a setting of 0, for the macgui we use an integer of 0, which shows up in the interface as "Off" to indicate not to load the filter at all. Made presets etc, easier to modify. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1750 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: upon reloading a previous queue at launch, open up the queue window.dynaflash2008-09-231-0/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1746 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: When reloading a previous queue at launch, as well as pending ↵dynaflash2008-09-231-24/+77
| | | | | | | | | | | encodes also reload a queue item marked previously as "encoding" if it exists. - An item marked as encoding in the qeueu at launch indicates that either we crashed during that encode, or that the user shut down during that encode. - If the user chooses to reload, we change the status back to pending. Note: the encode will be at the top of the queue after launch. - Change the queue reload alert window to tell the user how many pending jobs they have as well as if there was an encoding job. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1745 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Re-enable deleting encodes with the delete key if hilighted.dynaflash2008-09-221-4/+4
| | | | | | | - Currently one at a time, multiple selections are shut off for queue sync reasons . - Note: To delete a finished encode, click on it and hit your delete key ( since the action icon is an "open file in finder" magnifying glass) as this is the only way currently to delete a finished encode. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1744 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix sleep/shutdown warning so it only comes up once right when ↵dynaflash2008-09-221-4/+5
| | | | | | starting encoding instead of every time the queue starts the next encode. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1743 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add encoding status readout to the queue windowdynaflash2008-09-221-3/+14
| | | | | | - is fed info from controller.mm instead of the old setup which had another NSTimer polling libhb just for the queue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1742 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: End of encode/queue alerts and actions changesdynaflash2008-09-211-33/+52
| | | | | | | - Growl alerts and "Send to MetaX" actions occur as each encode comes finishes in the queue. - The standard alert window, computer sleep and computer shutdown all occur at the end of encoding the entire queue, specifically when the encoding is done, and there aren't any other pending encodes to process. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1739 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: upon launch, if pending items are still in the queue, if you choose ↵dynaflash2008-09-211-2/+3
| | | | | | to reload them, you are not presented with the browse source window. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1738 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Custom chapter names restored (borked in 1703)dynaflash2008-09-191-5/+49
| | | | | | | - The chapter names are now stored in the queue as the key "ChapterNames" which has an array of names as its value and are re-applied to the job when the queue goes to that encode if applicable. - As with all things, should save some work if you use a lot of custom chapter names and you have to shut down during a long queue encode and restart later. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1730 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: "Stop" command modificationsdynaflash2008-09-181-11/+32
| | | | | | | | | | | - Clicking on the "stop" icon in the toolbar now produces a different alert window with three choices - " Continue Encoding " default, just dismisses the window and continues on its merry way. - " Cancel Current and Stop " Cancels the current encode and stops the queue - " Cancel Current and Continue " Cancels the current encode and moves to the next pending encode (if there is one). - Also fixed an issue with deleting a canceled encode at the top of the queue list. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1718 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Queue allow proper deleting of encoding queue items and proper ↵dynaflash2008-09-181-5/+12
| | | | | | deleting of previously cancelled items. Also fixed Pause. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1716 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix issue from 1703 where once done doing at least one encode, all ↵dynaflash2008-09-181-22/+25
| | | | | | | | subsequent jobs would require that you add to queue first, then hit start. - Now, even after encoding a queue is finished, you can just hit "Start" to add the currently loaded job in the GUI to the queue and start encoding right away. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1715 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix turbo two pass (thanks beelsebob and jkint for help ↵dynaflash2008-09-171-3/+9
| | | | | | | | troubleshooting it ) - also added a few more debugging messages to prepareJob until things cool down a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1714 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Add some temporary activity log messages to try to debug the new queuedynaflash2008-09-171-4/+5
| | | | | | - with any luck I can get rid of these down the road git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1713 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix crash when selecting between target size and abr.dynaflash2008-09-171-3/+1
| | | | | | | - calculateBitrate shouldn't need nor can it any longer use prepareJob - should still verify proper calcs for target bitrate and abr, but better not to crash. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1711 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix chapter markers which were borked in 1703dynaflash2008-09-171-1/+1
| | | | | | -Note: this only fixed adding chapter markers. Custom chapter names are *not* fixed, if chapter markers checkbox is checked you will currently get 001, 002, etc. etc. for chapter names. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1708 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fix subtitle scan which I broke in 1703dynaflash2008-09-171-3/+4
| | | | | | | - clean up some extra activity log messages -NOTE: As of this time chapter markers are still broken. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1707 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Resilient Queue: Initial Implementationdynaflash2008-09-161-440/+1386
| | | | | | | | | | | | | | | | - Completely overhauls how encodes are setup by the MacGui - All encodes are now stored in an NSMutableArray (QueueFileArray) and saved in a plist (~/Library/Application Support/HandBrake/Queue.plist) - A separate instance of libhb (fQueueEncodeLibhb) is used for queue processing (includes single encodes) - fHandle still takes care of all user intiated scans and encode parameters - libhb now only stores multiple passes for a single encode instead of storing the entire queue - If HB crashes, or if you stop encoding while there are still pending encodes in your queue, upon next launch you will be prompted to reload the previous queue from the Queue.plist - Removed the current encoding information at the top of the queue window to make room for a larger list as I thought it to be redundant - The queue list is now re-arrangeable via drag-n-drop (pending encodes only) - Known issues and bugs: -- If you delete a previously cancelled encode then try to restart with a new encode, nothing happens. Throw off the sync of the currently encoding job. -- Probably alot more since its a total overhaul of how the MacGui has handled encoding since titer originally wrote it :) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1703 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove legacy preferences since they are now controlled via the presets.dynaflash2008-08-041-21/+5
| | | | | | | | | | | - Remove the Chapter Markers preference - Remove the Set Deinterlace to on upon scan preference -- Note: this means that for custom presets that do not use picture filters, Deinterlace will not be used upon scan since there is no preference to use it anymore, otherwise the default preset will control it. - Remove the Use Picture Par upon scan -- Note: this means that for custom presets that do not use picture settings, Anamorphic will not be used upon scan since there is no preference to use it anymore, otherwise the default preset will control it. - Also correct the label for custom Decomb string to read Decomb instead of Deblock "duh" . git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1605 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Don't repopulate fVidRatePopUp in titlePopUpChanged. The framerates ↵ritsuka2008-07-301-31/+2
| | | | | | are always the same. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1595 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Do not disable the ui if there is no reason to do so. Removed unused ↵ritsuka2008-07-291-26/+5
| | | | | | include. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1589 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: cleanup updateUI methods. Removed white spaces, and an useless variable.ritsuka2008-07-281-38/+32
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1588 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: - Implement automatic extension switching for mp4/m4v.ritsuka2008-07-281-82/+75
| | | | | | | - Disable http mp4 checkbox when an ac3 track is present. - Disable autonaming if there is only one title in the source. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1587 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Use nil instead of NULL. Patch by blindjimmy. ↵ritsuka2008-07-281-150/+148
| | | | | | http://handbrake.djgraphite.com/r/33/ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1586 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui; Fixed a crash when the chapters tableview is selected and a new ↵ritsuka2008-07-231-20/+13
| | | | | | | | source is being opened. Some whitespace cleaning too. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1574 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Much improved decomb filter. Totally different algorithm, with a temporal ↵jbrjake2008-07-111-1/+1
| | | | | | | | 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
* MacGui: Remove scanned source framrate display from "Same as source" in the ↵dynaflash2008-07-101-18/+5
| | | | | | | | | fps popup. - Some feel this is misleading and shouldn't be there since same as source now uses true source frame durations. - made the fps and encoder popups narrower to fit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1561 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Fixed a crash when dismissing the open window.ritsuka2008-07-021-2/+2
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1551 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGUI: Replace MVMenuButton with standard controls. Thanks blindjimmy.ritsuka2008-06-251-16/+16
| | | | | | Replace plus and minus icons with apple's one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1537 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Replace valueForKey with objectForKey when accessing the ↵dynaflash2008-06-251-87/+86
| | | | | | NSDictionary in presets. Though this makes no functional difference, it is more consistent. Patch by blindjimmy. http://forum.handbrake.fr/viewtopic.php?f=4&t=6418 git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1536 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: Remove spurious NSString stringWithFormat calls in controller.mm ↵dynaflash2008-06-171-98/+98
| | | | | | Thanks blindjimmy for the extensive house cleaning. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1514 b64f7644-9d1e-0410-96f1-a4d463321fa5
* MacGui: fix issues with audio in presetsdynaflash2008-06-061-8/+77
| | | | | | | | - Change audio track behavior so that presets only set the audio tracks it has stored, and removes any other previously selected audio tracks - Prevents a scenario whereby selecting the ATV preset then the iPod preset results in two identical audio tracks for the iPod - Fix an issue where certain mixdowns and bitrates contained in a preset may not be available depending on a source which resulted in no selection. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1499 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Macgui: implement constant frame rate encoding for all but same as source.dynaflash2008-06-051-0/+7
| | | | | | - implements svn rev 1496 in the macgui git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1497 b64f7644-9d1e-0410-96f1-a4d463321fa5