summaryrefslogtreecommitdiffstats
path: root/gtk/src/subtitlehandler.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright datesJohn Stebbins2016-01-031-1/+12
|
* LinGui: fix subtitle list initialization...John Stebbins2015-11-101-1/+1
| | | | | | When "Add L subtitle track if default audio is not L". If the matching track was the first subtitle track in the source, it did not get added.
* LinGui: update year to 2015jstebbins2015-02-071-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@6876 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix several small memory leaksjstebbins2014-10-291-0/+22
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6479 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Don't allow adding embedded subtitls when there are nonejstebbins2014-08-041-5/+26
| | | | | | | | Fixes a crash when attempting to switch subtitle dialog to embedded subtitle view. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6266 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: svg'ify several iconsjstebbins2014-03-171-1/+1
| | | | | | | and enable embedding of svg icons in the binary. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6118 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix race condition crasher in subtitle/audio listsjstebbins2014-02-251-2/+9
| | | | | | | | | | clearing a tree view caused selection to change while clearing (and before clearing is complete). The selection change triggered an update that attempted a recursive tree view clear. Since the first clear leaves the tree view in an inconsistant state till it finished, this causes a crash. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6083 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: UI layout changesjstebbins2014-02-251-2/+4
| | | | | | | Make some things fit a little better and make room for additional auto passthru options. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6082 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: simplify subtitle track refrencingjstebbins2014-02-241-14/+30
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6079 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: rework how hb containers are refrenced from linguijstebbins2014-02-231-25/+53
| | | | | | Cleans up the interface and fixes failure to use fallbacks properly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6067 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: rework how hb titles are referenced from linguijstebbins2014-02-231-16/+23
| | | | | | | Provides a less cryptic interface to identifying and looking up hb titles. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6064 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix range update issues and plug memory leaksjstebbins2014-02-211-1/+8
| | | | | | | | Updating the range of GtkScale and GtkSpinButtons causes the current value to update inappropriately under some conditions. So update the range and value concurrently. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6051 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: rework title listjstebbins2014-02-191-57/+37
| | | | | | | | | | | | | | Title list is now linked to a settings list. There is one settings dict per title. The settings list is populated when scan completes. As you change titles, the settings for that title populate the UI. Changes made are saved in the settings and restored if you go to another title and then return. This is preparation for improvements to "Add All to Queue" feature. Settings for each title can be customized before adding to the queue. All titles don't have to use the same preset or settings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6046 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Audio and subtitle UI rework.jstebbins2014-02-181-1013/+1115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds new tabs for audio and subtitle defaults (presets). "Audio" and "Subtitle" tabs renamed to "Audio List" and "Subtitle List" New Preset Keys: AudioLanguageList - array of strings List of languages that will be used to generate the output audio tracks for a job. Values: preset - UI display iso639_2 codes - native_name if not NULL, else eng_name SubtitleLanguageList - array of strings List of languages that will be used to generate the output subtitle tracks for a job. Values: preset - UI display iso639_2 codes - native_name if not NULL, else eng_name AudioTrackSelectionBehavior - string Defines how source tracks will be selected when generating the audio list for a job. Values: preset - UI display none - None first - First Matching Selected Languages all - All Matching Selected Languages SubtitleTrackSelectionBehavior - string Defines how source tracks will be selected when generating the subtitle list for a job. Values: preset - UI display none - None first - First Matching Selected Languages all - All Matching Selected Languages SubtitleAddCC - boolean Add Closed Caption track to subtitle list if available SubtitleAddForeignAudioSearch - boolean Add Foreign audio search pass to job if a default subtitle language is set (i.e. SubtitleLanguageList is not empty and first entry is not "Any") and default audio track language matches subtitle preferred language. SubtitleAddForeignAudioSubtitle - boolean Add preferred language subtitle track if the default subtitle language is set (i.e. SubtitleLanguageList is not empty and first entry is not "Any") and default audio track language does not match the preferred subtitle language. Removed Preset Keys: AudioTrack SubtitleList - I think only the LinGui had this key. Note that the remaining keys in the pre-existing AudioList are reused and map to the "Audio Encoder Settings" on the "Audio Defaults" tab. They used to map to the entries in the list on the old "Audio" tab. The old "Audio" tab is now the "Audio List" tab. Nothing in the "Audio List" tab map to preset values in the new design. The contents of this tab is strictly for use in the encode job. Ditto for "Subtitle Defaults" and "Subtitle List". git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6040 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix gtk3 subtitle and audio list issuejstebbins2013-01-291-7/+16
| | | | | | | | | | | The wrong subtitle or audio track was sometimes getting removed from the list when the remove button was pressed. The sequence of widget callbacks changed is such a way as to require some small rearrangement of code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5222 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Update copyright datesjstebbins2012-12-301-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5117 b64f7644-9d1e-0410-96f1-a4d463321fa5
* lingui: convert tabs to spacesjstebbins2012-12-271-1222/+1222
| | | | | | | Makes lingui source conform to hb standard for indentation. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5112 b64f7644-9d1e-0410-96f1-a4d463321fa5
* lingui: fix subtitle configuration problemjstebbins2012-12-041-1/+2
| | | | | | | | | If the preset has "burned" checked, under certain circumstances, both "burned" and "default" would be checked in the gui. These are suppose to be mutually exclusive. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5089 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a bunch of compiler warningsjstebbins2012-05-261-4/+4
| | | | 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-3/+0
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4700 b64f7644-9d1e-0410-96f1-a4d463321fa5
* PGS (bluray) subtitle support \o/jstebbins2012-04-261-41/+85
| | | | | | | | | | | | Thanks to patches supplied by David Mitchell and Rob McMullen we finally have PGS support. I added a fix for libav pgs timestamp processing and detection of forced subtitles to their work, then made foreign audio search work with PGS subs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4605 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: experimental support for batch queuingjstebbins2011-10-161-99/+173
| | | | | | | | | 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 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
* SSA subtitle burn injstebbins2010-09-281-17/+37
| | | | | | | | | | 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
* LinGui: initialize srt language with preferred language from preferncesjstebbins2010-06-091-2/+4
| | | | | | | whenever a new srt is added to the subtitle list. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3374 b64f7644-9d1e-0410-96f1-a4d463321fa5
* Add SSA subtitle supportjstebbins2010-06-011-45/+20
| | | | | | | Thanks to davidfster git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3342 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: tweak the ui to accommodate universal subtitle inputjstebbins2010-05-291-2/+13
| | | | | | | | don't show burned or forced fields for non-vobsubs show subtitle type in the subtitle track combo box git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3332 b64f7644-9d1e-0410-96f1-a4d463321fa5
* add support for Nero vobsubs in mp4jstebbins2010-05-241-9/+0
| | | | | | | | | | | Note that these do not work with any apple products that I know of. Perian might be able to do something with them. MPlayer and VLC both grok nero vobsubs. libhb, cli, and lingui updated. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3325 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: enhancements to automatic audio selection when passthru is requestedjstebbins2009-11-241-1/+0
| | | | | | | 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 subtitle burned and default checkboxes mutually exclusivejstebbins2009-11-201-2/+20
| | | | | | | | "default" doesn't really apply to burned in subtitles so it shouldn't be checked when burned. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2947 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix reference to hash key that was never added to hashjstebbins2009-11-191-55/+39
| | | | | | | reorganized some subtitle code to eliminate the possibility of this happening git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2945 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a couple subtitle UI issuesjstebbins2009-10-031-2/+8
| | | | | | | | - SRT filename was getting lost when moving the subtitle highlight around - SRT subtitles didn't get reloaded properly when editing a queue item git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2862 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix mbtree/b-pyramid dependency issuejstebbins2009-09-301-4/+4
| | | | | | | make sure b-pyramid gets set to insensitive when mbtree is enabled git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2858 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix incorrect marking of CC track as forced or burnedjstebbins2009-09-301-2/+6
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2855 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix loading of multiple subtitles from a presetjstebbins2009-09-291-3/+5
| | | | | | | | under some circumstances the "default" and "forced" flags would end up on the incorrect entry in the list. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2850 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix problem updating subtitle type description in subtitle listjstebbins2009-09-281-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2846 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: don't remove srt subs when changing from mkv to mp4jstebbins2009-09-261-13/+20
| | | | | | | | The logic to remove extra vobsubs that can't all be burned was also sweeping away srt's. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2841 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: change mp4 extension to m4v if there are any soft subtitlesjstebbins2009-08-241-0/+21
| | | | | | | yet another qt boneheadism git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2775 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a double free crashjstebbins2009-07-221-1/+1
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2720 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add preference option to automatically add CC track if presentjstebbins2009-07-171-0/+29
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2706 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: SRT supportjstebbins2009-06-301-26/+420
| | | | | | | | | | | | | | | | - there are now two buttons to add subtitles one button adds normal subtitles from the source. the second adds SRT subtitles. - when an SRT subtitle is selected in the list, the available controls change SRT controls are: Language, Character Codeset, File, and Time Offset (ms) - A combo entry box is used for character code. A subset of the most common character codes is available in the popup. Other codes can be manually entered in the entry box. - The last used SRT file directory is remembered. - Remove the debug printf eddyg left in decsrtsub.c git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2648 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: fix a problem with saving subtitle language to presetjstebbins2009-06-271-0/+4
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2635 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: subtitle previewsjstebbins2009-06-261-0/+7
| | | | | | | | | | - Increase the font size of subtitles in the preview. the default is microscopic. - reset the status of live preview encodings whenever a subtitle setting is changed. forces re-encoding. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2632 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: preference improvementsjstebbins2009-06-241-1/+1
| | | | | | | | | | - move PreferredLanguage and AudioDUB from audio tab to preferences - move CRF vs. CQP option from video tab to preferences - reorganize preferences into categories (general, audio, advanced) - add blank spaces to unclutter preferences some. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2615 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add subtitle list to queue displayjstebbins2009-06-231-25/+35
| | | | git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2605 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: add audio-dub/add-subtitle radio buttons for preferred language controljstebbins2009-06-221-3/+76
| | | | | | | | | | - When Audio DUB is enabled, behavior is essentially unchanged - When Add Subtitle is enabled, a subtitle of the preferred language will be added to the subtitle list when the preferred language does not match the first audio track. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2600 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: Put DVD volume name scanning on it's own thread.jstebbins2009-06-191-3/+3
| | | | | | | | | | At startup, I scan all dvd devices for their volume names. Usually this information is cached by the filesystem so this is fast. But every once in a while this takes several seconds which delays the initial display of the UI. This activity is now on it's own thread to prevent the delay. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2578 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: revert the extra widgets for subtitle foreign audio searchjstebbins2009-06-081-39/+1
| | | | | | | | put it back in the list with the normal subtitle tracks. gets rid of extra preset keys that were really unnecessary git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2504 b64f7644-9d1e-0410-96f1-a4d463321fa5
* LinGui: make "Foreign Audio Search" a separate widget instead of adding itjstebbins2009-06-041-6/+42
| | | | | | | like a to the subtitle track list as if it were a regular subtitle track. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2485 b64f7644-9d1e-0410-96f1-a4d463321fa5