]> git.sesse.net Git - vlc/blob - src/libvlc-module.c
Allow win users to select Lithuanian
[vlc] / src / libvlc-module.c
1 /*****************************************************************************
2  * libvlc-module.c: Options for the main (libvlc itself) module
3  *****************************************************************************
4  * Copyright (C) 1998-2009 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Vincent Seguin <seguin@via.ecp.fr>
8  *          Samuel Hocevar <sam@zoy.org>
9  *          Gildas Bazin <gbazin@videolan.org>
10  *          Jean-Paul Saman <jpsaman #_at_# m2x.nl>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25  *****************************************************************************/
26
27 // Pretend we are a builtin module
28 #define MODULE_NAME main
29 #define MODULE_PATH main
30 #define __BUILTIN__
31
32
33 #ifdef HAVE_CONFIG_H
34 # include "config.h"
35 #endif
36
37 #include <vlc_common.h>
38 #include <vlc_plugin.h>
39 #include "libvlc.h"
40
41 //#define Nothing here, this is just to prevent update-po from being stupid
42 #include "vlc_keys.h"
43 #include "vlc_meta.h"
44
45 #if defined (WIN32) || defined (__APPLE__)
46 static const char *const ppsz_language[] =
47 {
48     "auto",
49     "en",
50     "ar",
51     "bn",
52     "pt_BR",
53     "en_GB",
54     "bg",
55     "ca",
56     "zh_TW",
57     "cs",
58     "da",
59     "nl",
60     "fi",
61     "fr",
62     "gl",
63     "ka",
64     "de",
65     "he",
66     "hu",
67     "id",
68     "it",
69     "ja",
70     "ko",
71     "lt",
72     "mn",
73     "ms",
74     "kk",
75     "km",
76     "oc",
77     "fa",
78     "pl",
79     "pt_PT",
80     "pa",
81     "ro",
82     "ru",
83     "zh_CN",
84     "sr",
85     "sk",
86     "sl",
87     "ckb",
88     "es",
89     "sv",
90     "tr",
91     "uk",
92     "vi",
93 };
94
95 static const char *const ppsz_language_text[] =
96 {
97     N_("Auto"),
98     "American English",
99     "ﻉﺮﺒﻳ",
100     "বাংলা",
101     "Português Brasileiro",
102     "British English",
103     "български език",
104     "Català",
105     "正體中文",
106     "Čeština",
107     "Dansk",
108     "Nederlands",
109     "Suomi",
110     "Français",
111     "Galego",
112     "ქართული",
113     "Deutsch",
114     "עברית",
115     "Magyar",
116     "Bahasa Indonesia",
117     "Italiano",
118     "日本語",
119     "한국어",
120     "lietuvių",
121     "Монгол хэл",
122     "Melayu",
123     "Қазақ тілі",
124     "ភាសាខ្មែរ",
125     "Occitan",
126     "ﻑﺍﺮﺳی",
127     "Polski",
128     "Português",
129     "ਪੰਜਾਬੀ",
130     "Română",
131     "Русский",
132     "简体中文",
133     "српски",
134     "Slovensky",
135     "slovenščina",
136     "کوردیی سۆرانی",
137     "Español",
138     "Svenska",
139     "Türkçe",
140     "украї́нська мо́ва",
141     "tiếng Việt",
142 };
143 #endif
144
145 static const char *const ppsz_snap_formats[] =
146 { "png", "jpg" };
147
148 /*****************************************************************************
149  * Configuration options for the main program. Each module will also separatly
150  * define its own configuration options.
151  * Look into configuration.h if you need to know more about the following
152  * macros.
153  *****************************************************************************/
154
155 /*****************************************************************************
156  * Intf
157  ****************************************************************************/
158
159 // DEPRECATED
160 #define INTF_CAT_LONGTEXT N_( \
161     "These options allow you to configure the interfaces used by VLC. " \
162     "You can select the main interface, additional " \
163     "interface modules, and define various related options." )
164
165 #define INTF_TEXT N_("Interface module")
166 #define INTF_LONGTEXT N_( \
167     "This is the main interface used by VLC. " \
168     "The default behavior is to automatically select the best module " \
169     "available.")
170
171 #define EXTRAINTF_TEXT N_("Extra interface modules")
172 #define EXTRAINTF_LONGTEXT N_( \
173     "You can select \"additional interfaces\" for VLC. " \
174     "They will be launched in the background in addition to the default " \
175     "interface. Use a comma separated list of interface modules. (common " \
176     "values are \"rc\" (remote control), \"http\", \"gestures\" ...)")
177
178 #define CONTROL_TEXT N_("Control interfaces")
179 #define CONTROL_LONGTEXT N_( \
180     "You can select control interfaces for VLC.")
181
182 #define VERBOSE_TEXT N_("Verbosity (0,1,2)")
183 #define VERBOSE_LONGTEXT N_( \
184     "This is the verbosity level (0=only errors and " \
185     "standard messages, 1=warnings, 2=debug).")
186
187 #define VERBOSE_OBJECTS_TEXT N_("Choose which objects should print debug " \
188     "message")
189 #define VERBOSE_OBJECTS_LONGTEXT N_( \
190     "This is a ',' separated string, each objects should be prefixed by " \
191     "a '+' or a '-' to respectively enable or disable it. The keyword " \
192     "'all' refers to all objects. Objects can be refered to by their " \
193     "type or module name. Rules applying to named objects take precendence " \
194     "over rules applying to object types. Note that you still need to " \
195     "use -vvv to actually display debug message.")
196
197 #define QUIET_TEXT N_("Be quiet")
198 #define QUIET_LONGTEXT N_( \
199     "Turn off all warning and information messages.")
200
201 #define OPEN_TEXT N_("Default stream")
202 #define OPEN_LONGTEXT N_( \
203     "This stream will always be opened at VLC startup." )
204
205 #define LANGUAGE_TEXT N_("Language")
206 #define LANGUAGE_LONGTEXT N_( "You can manually select a language for the " \
207     "interface. The system language is auto-detected if \"auto\" is " \
208     "specified here." )
209
210 #define COLOR_TEXT N_("Color messages")
211 #define COLOR_LONGTEXT N_( \
212     "This enables colorization of the messages sent to the console " \
213     "Your terminal needs Linux color support for this to work.")
214
215 #define ADVANCED_TEXT N_("Show advanced options")
216 #define ADVANCED_LONGTEXT N_( \
217     "When this is enabled, the preferences and/or interfaces will " \
218     "show all available options, including those that most users should " \
219     "never touch.")
220
221 #define INTERACTION_TEXT N_("Interface interaction")
222 #define INTERACTION_LONGTEXT N_( \
223     "When this is enabled, the interface will show a dialog box each time " \
224     "some user input is required." )
225
226
227 /*****************************************************************************
228  * Audio
229  ****************************************************************************/
230
231 // DEPRECATED
232 #define AOUT_CAT_LONGTEXT N_( \
233     "These options allow you to modify the behavior of the audio " \
234     "subsystem, and to add audio filters which can be used for " \
235     "post processing or visual effects (spectrum analyzer, etc.). " \
236     "Enable these filters here, and configure them in the \"audio filters\" " \
237     "modules section.")
238
239 #define AOUT_TEXT N_("Audio output module")
240 #define AOUT_LONGTEXT N_( \
241     "This is the audio output method used by VLC. " \
242     "The default behavior is to automatically select the best method " \
243     "available.")
244
245 #define AUDIO_TEXT N_("Enable audio")
246 #define AUDIO_LONGTEXT N_( \
247     "You can completely disable the audio output. The audio " \
248     "decoding stage will not take place, thus saving some processing power.")
249
250 #if 0
251 #define MONO_TEXT N_("Force mono audio")
252 #define MONO_LONGTEXT N_("This will force a mono audio output.")
253 #endif
254
255 #define VOLUME_TEXT N_("Default audio volume")
256 #define VOLUME_LONGTEXT N_( \
257     "You can set the default audio output volume here, in a range from 0 to " \
258     "1024.")
259
260 #define VOLUME_SAVE_TEXT N_("Audio output saved volume")
261 #define VOLUME_SAVE_LONGTEXT N_( \
262     "This saves the audio output volume when you use the mute function. " \
263     "You should not change this option manually.")
264
265 #define VOLUME_STEP_TEXT N_("Audio output volume step")
266 #define VOLUME_STEP_LONGTEXT N_( \
267     "The step size of the volume is adjustable using this option, " \
268     "in a range from 0 to 1024." )
269
270 #define AOUT_RATE_TEXT N_("Audio output frequency (Hz)")
271 #define AOUT_RATE_LONGTEXT N_( \
272     "You can force the audio output frequency here. Common values are " \
273     "-1 (default), 48000, 44100, 32000, 22050, 16000, 11025, 8000.")
274
275 #if !defined( __APPLE__ )
276 #define AOUT_RESAMP_TEXT N_("High quality audio resampling")
277 #define AOUT_RESAMP_LONGTEXT N_( \
278     "This uses a high quality audio resampling algorithm. High quality "\
279     "audio resampling can be processor intensive so you can " \
280     "disable it and a cheaper resampling algorithm will be used instead.")
281 #endif
282
283 #define DESYNC_TEXT N_("Audio desynchronization compensation")
284 #define DESYNC_LONGTEXT N_( \
285     "This delays the audio output. The delay must be given in milliseconds." \
286     "This can be handy if you notice a lag between the video and the audio.")
287
288 #define MULTICHA_TEXT N_("Audio output channels mode")
289 #define MULTICHA_LONGTEXT N_( \
290     "This sets the audio output channels mode that will " \
291     "be used by default when possible (ie. if your hardware supports it as " \
292     "well as the audio stream being played).")
293
294 #define SPDIF_TEXT N_("Use S/PDIF when available")
295 #define SPDIF_LONGTEXT N_( \
296     "S/PDIF can be used by default when " \
297     "your hardware supports it as well as the audio stream being played.")
298
299 #define FORCE_DOLBY_TEXT N_("Force detection of Dolby Surround")
300 #define FORCE_DOLBY_LONGTEXT N_( \
301     "Use this when you know your stream is (or is not) encoded with Dolby "\
302     "Surround but fails to be detected as such. Even if the stream is "\
303     "not actually encoded with Dolby Surround, turning on this option might "\
304     "enhance your experience, especially when combined with the Headphone "\
305     "Channel Mixer." )
306 static const int pi_force_dolby_values[] = { 0, 1, 2 };
307 static const char *const ppsz_force_dolby_descriptions[] = {
308     N_("Auto"), N_("On"), N_("Off") };
309
310
311 #define AUDIO_FILTER_TEXT N_("Audio filters")
312 #define AUDIO_FILTER_LONGTEXT N_( \
313     "This adds audio post processing filters, to modify " \
314     "the sound rendering." )
315
316 #define AUDIO_VISUAL_TEXT N_("Audio visualizations ")
317 #define AUDIO_VISUAL_LONGTEXT N_( \
318     "This adds visualization modules (spectrum analyzer, etc.).")
319
320
321 #define AUDIO_REPLAY_GAIN_MODE_TEXT N_( \
322     "Replay gain mode" )
323 #define AUDIO_REPLAY_GAIN_MODE_LONGTEXT N_( \
324     "Select the replay gain mode" )
325 #define AUDIO_REPLAY_GAIN_PREAMP_TEXT N_( \
326     "Replay preamp" )
327 #define AUDIO_REPLAY_GAIN_PREAMP_LONGTEXT N_( \
328     "This allows you to change the default target level (89 dB) " \
329     "for stream with replay gain information" )
330 #define AUDIO_REPLAY_GAIN_DEFAULT_TEXT N_( \
331     "Default replay gain" )
332 #define AUDIO_REPLAY_GAIN_DEFAULT_LONGTEXT N_( \
333     "This is the gain used for stream without replay gain information" )
334 #define AUDIO_REPLAY_GAIN_PEAK_PROTECTION_TEXT N_( \
335     "Peak protection" )
336 #define AUDIO_REPLAY_GAIN_PEAK_PROTECTION_LONGTEXT N_( \
337     "Protect against sound clipping" )
338
339 #define AUDIO_TIME_STRETCH_TEXT N_( \
340     "Enable time streching audio" )
341 #define AUDIO_TIME_STRETCH_LONGTEXT N_( \
342     "This allows to play audio at lower or higher speed without" \
343     "affecting the audio pitch" )
344
345
346 static const char *const ppsz_replay_gain_mode[] = {
347     "none", "track", "album" };
348 static const char *const ppsz_replay_gain_mode_text[] = {
349     N_("None"), N_("Track"), N_("Album") };
350
351 /*****************************************************************************
352  * Video
353  ****************************************************************************/
354
355 // DEPRECATED
356 #define VOUT_CAT_LONGTEXT N_( \
357     "These options allow you to modify the behavior of the video output " \
358     "subsystem. You can for example enable video filters (deinterlacing, " \
359     "image adjusting, etc.). Enable these filters here and configure " \
360     "them in the \"video filters\" modules section. You can also set many " \
361     "miscellaneous video options." )
362
363 #define VOUT_TEXT N_("Video output module")
364 #define VOUT_LONGTEXT N_( \
365     "This is the the video output method used by VLC. " \
366     "The default behavior is to automatically select the best method available.")
367
368 #define VIDEO_TEXT N_("Enable video")
369 #define VIDEO_LONGTEXT N_( \
370     "You can completely disable the video output. The video " \
371     "decoding stage will not take place, thus saving some processing power.")
372
373 #define WIDTH_TEXT N_("Video width")
374 #define WIDTH_LONGTEXT N_( \
375     "You can enforce the video width. By default (-1) VLC will " \
376     "adapt to the video characteristics.")
377
378 #define HEIGHT_TEXT N_("Video height")
379 #define HEIGHT_LONGTEXT N_( \
380     "You can enforce the video height. By default (-1) VLC will " \
381     "adapt to the video characteristics.")
382
383 #define VIDEOX_TEXT N_("Video X coordinate")
384 #define VIDEOX_LONGTEXT N_( \
385     "You can enforce the position of the top left corner of the video window "\
386     "(X coordinate).")
387
388 #define VIDEOY_TEXT N_("Video Y coordinate")
389 #define VIDEOY_LONGTEXT N_( \
390     "You can enforce the position of the top left corner of the video window "\
391     "(Y coordinate).")
392
393 #define VIDEO_TITLE_TEXT N_("Video title")
394 #define VIDEO_TITLE_LONGTEXT N_( \
395     "Custom title for the video window (in case the video is not embedded in "\
396     "the interface).")
397
398 #define ALIGN_TEXT N_("Video alignment")
399 #define ALIGN_LONGTEXT N_( \
400     "Enforce the alignment of the video in its window. By default (0) it " \
401     "will be centered (0=center, 1=left, 2=right, 4=top, 8=bottom, you can " \
402     "also use combinations of these values, like 6=4+2 meaning top-right).")
403 static const int pi_align_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
404 static const char *const ppsz_align_descriptions[] =
405 { N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
406   N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
407
408 #define ZOOM_TEXT N_("Zoom video")
409 #define ZOOM_LONGTEXT N_( \
410     "You can zoom the video by the specified factor.")
411
412 #define GRAYSCALE_TEXT N_("Grayscale video output")
413 #define GRAYSCALE_LONGTEXT N_( \
414     "Output video in grayscale. As the color information aren't decoded, " \
415     "this can save some processing power." )
416
417 #define EMBEDDED_TEXT N_("Embedded video")
418 #define EMBEDDED_LONGTEXT N_( \
419     "Embed the video output in the main interface." )
420
421 #define FULLSCREEN_TEXT N_("Fullscreen video output")
422 #define FULLSCREEN_LONGTEXT N_( \
423     "Start video in fullscreen mode" )
424
425 #define OVERLAY_TEXT N_("Overlay video output")
426 #define OVERLAY_LONGTEXT N_( \
427     "Overlay is the hardware acceleration capability of your video card " \
428     "(ability to render video directly). VLC will try to use it by default." )
429
430 #define VIDEO_ON_TOP_TEXT N_("Always on top")
431 #define VIDEO_ON_TOP_LONGTEXT N_( \
432     "Always place the video window on top of other windows." )
433
434 #define VIDEO_TITLE_SHOW_TEXT N_("Show media title on video")
435 #define VIDEO_TITLE_SHOW_LONGTEXT N_( \
436     "Display the title of the video on top of the movie.")
437
438 #define VIDEO_TITLE_TIMEOUT_TEXT N_("Show video title for x milliseconds")
439 #define VIDEO_TITLE_TIMEOUT_LONGTEXT N_( \
440     "Show the video title for n milliseconds, default is 5000 ms (5 sec.)")
441
442 #define VIDEO_TITLE_POSITION_TEXT N_("Position of video title")
443 #define VIDEO_TITLE_POSITION_LONGTEXT N_( \
444     "Place on video where to display the title (default bottom center).")
445
446 #define MOUSE_HIDE_TIMEOUT_TEXT N_("Hide cursor and fullscreen " \
447                                    "controller after x milliseconds")
448 #define MOUSE_HIDE_TIMEOUT_LONGTEXT N_( \
449     "Hide mouse cursor and fullscreen controller after " \
450     "n milliseconds, default is 3000 ms (3 sec.)")
451
452 static const int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
453 static const char *const ppsz_pos_descriptions[] =
454 { N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
455   N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
456
457 #define SS_TEXT N_("Disable screensaver")
458 #define SS_LONGTEXT N_("Disable the screensaver during video playback." )
459
460 #define INHIBIT_TEXT N_("Inhibit the power management daemon during playback")
461 #define INHIBIT_LONGTEXT N_("Inhibits the power management daemon during any " \
462     "playback, to avoid the computer being suspended because of inactivity.")
463
464 #define VIDEO_DECO_TEXT N_("Window decorations")
465 #define VIDEO_DECO_LONGTEXT N_( \
466     "VLC can avoid creating window caption, frames, etc... around the video" \
467     ", giving a \"minimal\" window.")
468
469 #define VOUT_FILTER_TEXT N_("Video output filter module")
470 #define VOUT_FILTER_LONGTEXT N_( \
471     "This adds video output filters like clone or wall" )
472
473 #define VIDEO_FILTER_TEXT N_("Video filter module")
474 #define VIDEO_FILTER_LONGTEXT N_( \
475     "This adds post-processing filters to enhance the " \
476     "picture quality, for instance deinterlacing, or distort" \
477     "the video.")
478
479 #define SNAP_PATH_TEXT N_("Video snapshot directory (or filename)")
480 #define SNAP_PATH_LONGTEXT N_( \
481     "Directory where the video snapshots will be stored.")
482
483 #define SNAP_PREFIX_TEXT N_("Video snapshot file prefix")
484 #define SNAP_PREFIX_LONGTEXT N_( \
485     "Video snapshot file prefix" )
486
487 #define SNAP_FORMAT_TEXT N_("Video snapshot format")
488 #define SNAP_FORMAT_LONGTEXT N_( \
489     "Image format which will be used to store the video snapshots" )
490
491 #define SNAP_PREVIEW_TEXT N_("Display video snapshot preview")
492 #define SNAP_PREVIEW_LONGTEXT N_( \
493     "Display the snapshot preview in the screen's top-left corner.")
494
495 #define SNAP_SEQUENTIAL_TEXT N_("Use sequential numbers instead of timestamps")
496 #define SNAP_SEQUENTIAL_LONGTEXT N_( \
497     "Use sequential numbers instead of timestamps for snapshot numbering")
498
499 #define SNAP_WIDTH_TEXT N_("Video snapshot width")
500 #define SNAP_WIDTH_LONGTEXT N_( \
501     "You can enforce the width of the video snapshot. By default " \
502     "it will keep the original width (-1). Using 0 will scale the width " \
503     "to keep the aspect ratio." )
504
505 #define SNAP_HEIGHT_TEXT N_("Video snapshot height")
506 #define SNAP_HEIGHT_LONGTEXT N_( \
507     "You can enforce the height of the video snapshot. By default " \
508     "it will keep the original height (-1). Using 0 will scale the height " \
509     "to keep the aspect ratio." )
510
511 #define CROP_TEXT N_("Video cropping")
512 #define CROP_LONGTEXT N_( \
513     "This forces the cropping of the source video. " \
514     "Accepted formats are x:y (4:3, 16:9, etc.) expressing the global image " \
515     "aspect.")
516
517 #define ASPECT_RATIO_TEXT N_("Source aspect ratio")
518 #define ASPECT_RATIO_LONGTEXT N_( \
519     "This forces the source aspect ratio. For instance, some DVDs claim " \
520     "to be 16:9 while they are actually 4:3. This can also be used as a " \
521     "hint for VLC when a movie does not have aspect ratio information. " \
522     "Accepted formats are x:y (4:3, 16:9, etc.) expressing the global image " \
523     "aspect, or a float value (1.25, 1.3333, etc.) expressing pixel " \
524     "squareness.")
525
526 #define AUTOSCALE_TEXT N_("Video Auto Scaling")
527 #define AUTOSCALE_LONGTEXT N_( \
528     "Let the video scale to fit a given window or fullscreen.")
529
530 #define SCALEFACTOR_TEXT N_("Video scaling factor")
531 #define SCALEFACTOR_LONGTEXT N_( \
532     "Scaling factor used when Auto Scaling is disabled.\n" \
533     "Default value is 1.0 (original video size).")
534
535 #define CUSTOM_CROP_RATIOS_TEXT N_("Custom crop ratios list")
536 #define CUSTOM_CROP_RATIOS_LONGTEXT N_( \
537     "Comma separated list of crop ratios which will be added in the " \
538     "interface's crop ratios list.")
539
540 #define CUSTOM_ASPECT_RATIOS_TEXT N_("Custom aspect ratios list")
541 #define CUSTOM_ASPECT_RATIOS_LONGTEXT N_( \
542     "Comma separated list of aspect ratios which will be added in the " \
543     "interface's aspect ratio list.")
544
545 #define HDTV_FIX_TEXT N_("Fix HDTV height")
546 #define HDTV_FIX_LONGTEXT N_( \
547     "This allows proper handling of HDTV-1080 video format " \
548     "even if broken encoder incorrectly sets height to 1088 lines. " \
549     "You should only disable this option if your video has a " \
550     "non-standard format requiring all 1088 lines.")
551
552 #define MASPECT_RATIO_TEXT N_("Monitor pixel aspect ratio")
553 #define MASPECT_RATIO_LONGTEXT N_( \
554     "This forces the monitor aspect ratio. Most monitors have square " \
555     "pixels (1:1). If you have a 16:9 screen, you might need to change this " \
556     "to 4:3 in order to keep proportions.")
557
558 #define SKIP_FRAMES_TEXT N_("Skip frames")
559 #define SKIP_FRAMES_LONGTEXT N_( \
560     "Enables framedropping on MPEG2 stream. Framedropping " \
561     "occurs when your computer is not powerful enough" )
562
563 #define DROP_LATE_FRAMES_TEXT N_("Drop late frames")
564 #define DROP_LATE_FRAMES_LONGTEXT N_( \
565     "This drops frames that are late (arrive to the video output after " \
566     "their intended display date)." )
567
568 #define QUIET_SYNCHRO_TEXT N_("Quiet synchro")
569 #define QUIET_SYNCHRO_LONGTEXT N_( \
570     "This avoids flooding the message log with debug output from the " \
571     "video output synchronization mechanism.")
572
573 #define VOUT_EVENT_TEXT N_("key and mouse event handling at vout level.")
574 #define VOUT_EVENT_LONGTEXT N_( \
575     "This parameter accepts values : 1 (full event handling support), " \
576     "2 (event handling only for fullscreen) or 3 (No event handling). "  \
577     "Full event handling support is the default value.")
578
579 static const int pi_vout_event_values[] = { 1, 2, 3 };
580 static const char *const ppsz_vout_event_descriptions[] =
581      { N_("Full support"), N_("Fullscreen-only"), N_("None") };
582
583 /*****************************************************************************
584  * Input
585  ****************************************************************************/
586
587 // Deprecated
588 #define INPUT_CAT_LONGTEXT N_( \
589     "These options allow you to modify the behavior of the input " \
590     "subsystem, such as the DVD or VCD device, the network interface " \
591     "settings or the subtitle channel.")
592
593 #define CR_AVERAGE_TEXT N_("Clock reference average counter")
594 #define CR_AVERAGE_LONGTEXT N_( \
595     "When using the PVR input (or a very irregular source), you should " \
596     "set this to 10000.")
597
598 #define CLOCK_SYNCHRO_TEXT N_("Clock synchronisation")
599 #define CLOCK_SYNCHRO_LONGTEXT N_( \
600     "It is possible to disable the input clock synchronisation for " \
601     "real-time sources. Use this if you experience jerky playback of " \
602     "network streams.")
603
604 #define NETSYNC_TEXT N_("Network synchronisation" )
605 #define NETSYNC_LONGTEXT N_( "This allows you to remotely " \
606         "synchronise clocks for server and client. The detailed settings " \
607         "are available in Advanced / Network Sync." )
608
609 static const int pi_clock_values[] = { -1, 0, 1 };
610 static const char *const ppsz_clock_descriptions[] =
611 { N_("Default"), N_("Disable"), N_("Enable") };
612
613 #define SERVER_PORT_TEXT N_("UDP port")
614 #define SERVER_PORT_LONGTEXT N_( \
615     "This is the default port used for UDP streams. Default is 1234." )
616
617 #define MTU_TEXT N_("MTU of the network interface")
618 #define MTU_LONGTEXT N_( \
619     "This is the maximum application-layer packet size that can be " \
620     "transmitted over the network (in bytes).")
621 /* Should be less than 1500 - 8[ppp] - 40[ip6] - 8[udp] in any case. */
622 #define MTU_DEFAULT 1400
623
624 #define TTL_TEXT N_("Hop limit (TTL)")
625 #define TTL_LONGTEXT N_( \
626     "This is the hop limit (also known as \"Time-To-Live\" or TTL) of " \
627     "the multicast packets sent by the stream output (-1 = use operating " \
628     "system built-in default).")
629
630 #define MIFACE_TEXT N_("Multicast output interface")
631 #define MIFACE_LONGTEXT N_( \
632     "Default multicast interface. This overrides the routing table.")
633
634 #define MIFACE_ADDR_TEXT N_("IPv4 multicast output interface address")
635 #define MIFACE_ADDR_LONGTEXT N_( \
636     "IPv4 address for the default multicast interface. This overrides " \
637     "the routing table.")
638
639 #define DSCP_TEXT N_("DiffServ Code Point")
640 #define DSCP_LONGTEXT N_("Differentiated Services Code Point " \
641     "for outgoing UDP streams (or IPv4 Type Of Service, " \
642     "or IPv6 Traffic Class). This is used for network Quality of Service.")
643
644 #define INPUT_PROGRAM_TEXT N_("Program")
645 #define INPUT_PROGRAM_LONGTEXT N_( \
646     "Choose the program to select by giving its Service ID. " \
647     "Only use this option if you want to read a multi-program stream " \
648     "(like DVB streams for example)." )
649
650 #define INPUT_PROGRAMS_TEXT N_("Programs")
651 #define INPUT_PROGRAMS_LONGTEXT N_( \
652     "Choose the programs to select by giving a comma-separated list of " \
653     "Service IDs (SIDs). " \
654     "Only use this option if you want to read a multi-program stream " \
655     "(like DVB streams for example)." )
656
657 /// \todo Document how to find it
658 #define INPUT_AUDIOTRACK_TEXT N_("Audio track")
659 #define INPUT_AUDIOTRACK_LONGTEXT N_( \
660     "Stream number of the audio track to use " \
661     "(from 0 to n).")
662
663 #define INPUT_SUBTRACK_TEXT N_("Subtitles track")
664 #define INPUT_SUBTRACK_LONGTEXT N_( \
665     "Stream number of the subtitle track to use " \
666     "(from 0 to n).")
667
668 #define INPUT_AUDIOTRACK_LANG_TEXT N_("Audio language")
669 #define INPUT_AUDIOTRACK_LANG_LONGTEXT N_( \
670     "Language of the audio track you want to use " \
671     "(comma separated, two or three letter country code).")
672
673 #define INPUT_SUBTRACK_LANG_TEXT N_("Subtitle language")
674 #define INPUT_SUBTRACK_LANG_LONGTEXT N_( \
675     "Language of the subtitle track you want to use " \
676     "(comma separated, two or three letters country code).")
677
678 /// \todo Document how to find it
679 #define INPUT_AUDIOTRACK_ID_TEXT N_("Audio track ID")
680 #define INPUT_AUDIOTRACK_ID_LONGTEXT N_( \
681     "Stream ID of the audio track to use.")
682
683 #define INPUT_SUBTRACK_ID_TEXT N_("Subtitles track ID")
684 #define INPUT_SUBTRACK_ID_LONGTEXT N_( \
685     "Stream ID of the subtitle track to use.")
686
687 #define INPUT_REPEAT_TEXT N_("Input repetitions")
688 #define INPUT_REPEAT_LONGTEXT N_( \
689     "Number of time the same input will be repeated")
690
691 #define START_TIME_TEXT N_("Start time")
692 #define START_TIME_LONGTEXT N_( \
693     "The stream will start at this position (in seconds)." )
694
695 #define STOP_TIME_TEXT N_("Stop time")
696 #define STOP_TIME_LONGTEXT N_( \
697     "The stream will stop at this position (in seconds)." )
698
699 #define RUN_TIME_TEXT N_("Run time")
700 #define RUN_TIME_LONGTEXT N_( \
701     "The stream will run this duration (in seconds)." )
702
703 #define INPUT_FAST_SEEK_TEXT N_("Fast seek")
704 #define INPUT_FAST_SEEK_LONGTEXT N_( \
705     "Favor speed over precision while seeking" )
706
707 #define INPUT_LIST_TEXT N_("Input list")
708 #define INPUT_LIST_LONGTEXT N_( \
709     "You can give a comma-separated list " \
710     "of inputs that will be concatenated together after the normal one.")
711
712 #define INPUT_SLAVE_TEXT N_("Input slave (experimental)")
713 #define INPUT_SLAVE_LONGTEXT N_( \
714     "This allows you to play from several inputs at " \
715     "the same time. This feature is experimental, not all formats " \
716     "are supported. Use a '#' separated list of inputs.")
717
718 #define BOOKMARKS_TEXT N_("Bookmarks list for a stream")
719 #define BOOKMARKS_LONGTEXT N_( \
720     "You can manually give a list of bookmarks for a stream in " \
721     "the form \"{name=bookmark-name,time=optional-time-offset," \
722     "bytes=optional-byte-offset},{...}\"")
723
724 #define INPUT_RECORD_PATH_TEXT N_("Record directory or filename")
725 #define INPUT_RECORD_PATH_LONGTEXT N_( \
726     "Directory or filename where the records will be stored" )
727
728 #define INPUT_RECORD_NATIVE_TEXT N_("Prefer native stream recording")
729 #define INPUT_RECORD_NATIVE_LONGTEXT N_( \
730     "When possible, the input stream will be recorded instead of using" \
731     "the stream output module" )
732
733 #define INPUT_TIMESHIFT_PATH_TEXT N_("Timeshift directory")
734 #define INPUT_TIMESHIFT_PATH_LONGTEXT N_( \
735     "Directory used to store the timeshift temporary files." )
736
737 #define INPUT_TIMESHIFT_GRANULARITY_TEXT N_("Timeshift granularity")
738 #define INPUT_TIMESHIFT_GRANULARITY_LONGTEXT N_( \
739     "This is the maximum size in bytes of the temporary files " \
740     "that will be used to store the timeshifted streams." )
741
742 // DEPRECATED
743 #define SUB_CAT_LONGTEXT N_( \
744     "These options allow you to modify the behavior of the subpictures " \
745     "subsystem. You can for example enable subpictures filters (logo, etc.). " \
746     "Enable these filters here and configure them in the " \
747     "\"subpictures filters\" modules section. You can also set many " \
748     "miscellaneous subpictures options." )
749
750 #define SUB_MARGIN_TEXT N_("Force subtitle position")
751 #define SUB_MARGIN_LONGTEXT N_( \
752     "You can use this option to place the subtitles under the movie, " \
753     "instead of over the movie. Try several positions.")
754
755 #define SPU_TEXT N_("Enable sub-pictures")
756 #define SPU_LONGTEXT N_( \
757     "You can completely disable the sub-picture processing.")
758
759 #define OSD_TEXT N_("On Screen Display")
760 #define OSD_LONGTEXT N_( \
761     "VLC can display messages on the video. This is called OSD (On Screen " \
762     "Display).")
763
764 #define TEXTRENDERER_TEXT N_("Text rendering module")
765 #define TEXTRENDERER_LONGTEXT N_( \
766     "VLC normally uses Freetype for rendering, but this allows you to use svg for instance.")
767
768 #define SUB_FILTER_TEXT N_("Subpictures filter module")
769 #define SUB_FILTER_LONGTEXT N_( \
770     "This adds so-called \"subpicture filters\". These filters overlay " \
771     "some images or text over the video (like a logo, arbitrary text, ...)." )
772
773 #define SUB_AUTO_TEXT N_("Autodetect subtitle files")
774 #define SUB_AUTO_LONGTEXT N_( \
775     "Automatically detect a subtitle file, if no subtitle filename is " \
776     "specified (based on the filename of the movie).")
777
778 #define SUB_FUZZY_TEXT N_("Subtitle autodetection fuzziness")
779 #define SUB_FUZZY_LONGTEXT N_( \
780     "This determines how fuzzy subtitle and movie filename matching " \
781     "will be. Options are:\n" \
782     "0 = no subtitles autodetected\n" \
783     "1 = any subtitle file\n" \
784     "2 = any subtitle file containing the movie name\n" \
785     "3 = subtitle file matching the movie name with additional chars\n" \
786     "4 = subtitle file matching the movie name exactly")
787
788 #define SUB_PATH_TEXT N_("Subtitle autodetection paths")
789 #define SUB_PATH_LONGTEXT N_( \
790     "Look for a subtitle file in those paths too, if your subtitle " \
791     "file was not found in the current directory.")
792
793 #define SUB_FILE_TEXT N_("Use subtitle file")
794 #define SUB_FILE_LONGTEXT N_( \
795     "Load this subtitle file. To be used when autodetect cannot detect " \
796     "your subtitle file.")
797
798 #define DVD_DEV_TEXT N_("DVD device")
799 #ifdef WIN32
800 #define DVD_DEV_LONGTEXT N_( \
801     "This is the default DVD drive (or file) to use. Don't forget the colon " \
802     "after the drive letter (eg. D:)")
803 #else
804 #define DVD_DEV_LONGTEXT N_( \
805     "This is the default DVD device to use.")
806 #endif
807
808 #define VCD_DEV_TEXT N_("VCD device")
809 #ifdef HAVE_VCDX
810 #define VCD_DEV_LONGTEXT N_( \
811     "This is the default VCD device to use. " \
812     "If you don't specify anything, we'll scan for a suitable CD-ROM device." )
813 #else
814 #define VCD_DEV_LONGTEXT N_( \
815     "This is the default VCD device to use." )
816 #endif
817
818 #define CDAUDIO_DEV_TEXT N_("Audio CD device")
819 #ifdef HAVE_CDDAX
820 #define CDAUDIO_DEV_LONGTEXT N_( \
821     "This is the default Audio CD device to use. " \
822     "If you don't specify anything, we'll scan for a suitable CD-ROM device." )
823 #else
824 #define CDAUDIO_DEV_LONGTEXT N_( \
825     "This is the default Audio CD device to use." )
826 #endif
827
828 #define IPV6_TEXT N_("Force IPv6")
829 #define IPV6_LONGTEXT N_( \
830     "IPv6 will be used by default for all connections.")
831
832 #define IPV4_TEXT N_("Force IPv4")
833 #define IPV4_LONGTEXT N_( \
834     "IPv4 will be used by default for all connections.")
835
836 #define TIMEOUT_TEXT N_("TCP connection timeout")
837 #define TIMEOUT_LONGTEXT N_( \
838     "Default TCP connection timeout (in milliseconds). " )
839
840 #define SOCKS_SERVER_TEXT N_("SOCKS server")
841 #define SOCKS_SERVER_LONGTEXT N_( \
842     "SOCKS proxy server to use. This must be of the form " \
843     "address:port. It will be used for all TCP connections" )
844
845 #define SOCKS_USER_TEXT N_("SOCKS user name")
846 #define SOCKS_USER_LONGTEXT N_( \
847     "User name to be used for connection to the SOCKS proxy." )
848
849 #define SOCKS_PASS_TEXT N_("SOCKS password")
850 #define SOCKS_PASS_LONGTEXT N_( \
851     "Password to be used for connection to the SOCKS proxy." )
852
853 #define META_TITLE_TEXT N_("Title metadata")
854 #define META_TITLE_LONGTEXT N_( \
855      "Allows you to specify a \"title\" metadata for an input.")
856
857 #define META_AUTHOR_TEXT N_("Author metadata")
858 #define META_AUTHOR_LONGTEXT N_( \
859      "Allows you to specify an \"author\" metadata for an input.")
860
861 #define META_ARTIST_TEXT N_("Artist metadata")
862 #define META_ARTIST_LONGTEXT N_( \
863      "Allows you to specify an \"artist\" metadata for an input.")
864
865 #define META_GENRE_TEXT N_("Genre metadata")
866 #define META_GENRE_LONGTEXT N_( \
867      "Allows you to specify a \"genre\" metadata for an input.")
868
869 #define META_CPYR_TEXT N_("Copyright metadata")
870 #define META_CPYR_LONGTEXT N_( \
871      "Allows you to specify a \"copyright\" metadata for an input.")
872
873 #define META_DESCR_TEXT N_("Description metadata")
874 #define META_DESCR_LONGTEXT N_( \
875      "Allows you to specify a \"description\" metadata for an input.")
876
877 #define META_DATE_TEXT N_("Date metadata")
878 #define META_DATE_LONGTEXT N_( \
879      "Allows you to specify a \"date\" metadata for an input.")
880
881 #define META_URL_TEXT N_("URL metadata")
882 #define META_URL_LONGTEXT N_( \
883      "Allows you to specify a \"url\" metadata for an input.")
884
885 // DEPRECATED
886 #define CODEC_CAT_LONGTEXT N_( \
887     "This option can be used to alter the way VLC selects " \
888     "its codecs (decompression methods). Only advanced users should " \
889     "alter this option as it can break playback of all your streams." )
890
891 #define CODEC_TEXT N_("Preferred decoders list")
892 #define CODEC_LONGTEXT N_( \
893     "List of codecs that VLC will use in " \
894     "priority. For instance, 'dummy,a52' will try the dummy and a52 codecs " \
895     "before trying the other ones. Only advanced users should " \
896     "alter this option as it can break playback of all your streams." )
897
898 #define ENCODER_TEXT N_("Preferred encoders list")
899 #define ENCODER_LONGTEXT N_( \
900     "This allows you to select a list of encoders that VLC will use in " \
901     "priority.")
902
903 #define SYSTEM_CODEC_TEXT N_("Prefer system plugins over VLC")
904 #define SYSTEM_CODEC_LONGTEXT N_( \
905     "Indicates whether VLC will prefer native plugins installed " \
906     "on system over VLC owns plugins whenever a choice is available." )
907
908 /*****************************************************************************
909  * Sout
910  ****************************************************************************/
911
912 // DEPRECATED
913 #define SOUT_CAT_LONGTEXT N_( \
914     "These options allow you to set default global options for the " \
915     "stream output subsystem." )
916
917 #define SOUT_TEXT N_("Default stream output chain")
918 #define SOUT_LONGTEXT N_( \
919     "You can enter here a default stream output chain. Refer to "\
920     "the documentation to learn how to build such chains." \
921     "Warning: this chain will be enabled for all streams." )
922
923 #define SOUT_ALL_TEXT N_("Enable streaming of all ES")
924 #define SOUT_ALL_LONGTEXT N_( \
925     "Stream all elementary streams (video, audio and subtitles)")
926
927 #define SOUT_DISPLAY_TEXT N_("Display while streaming")
928 #define SOUT_DISPLAY_LONGTEXT N_( \
929     "Play locally the stream while streaming it.")
930
931 #define SOUT_VIDEO_TEXT N_("Enable video stream output")
932 #define SOUT_VIDEO_LONGTEXT N_( \
933     "Choose whether the video stream should be redirected to " \
934     "the stream output facility when this last one is enabled.")
935
936 #define SOUT_AUDIO_TEXT N_("Enable audio stream output")
937 #define SOUT_AUDIO_LONGTEXT N_( \
938     "Choose whether the audio stream should be redirected to " \
939     "the stream output facility when this last one is enabled.")
940
941 #define SOUT_SPU_TEXT N_("Enable SPU stream output")
942 #define SOUT_SPU_LONGTEXT N_( \
943     "Choose whether the SPU streams should be redirected to " \
944     "the stream output facility when this last one is enabled.")
945
946 #define SOUT_KEEP_TEXT N_("Keep stream output open" )
947 #define SOUT_KEEP_LONGTEXT N_( \
948     "This allows you to keep an unique stream output instance across " \
949     "multiple playlist item (automatically insert the gather stream output " \
950     "if not specified)" )
951
952 #define SOUT_MUX_CACHING_TEXT N_("Stream output muxer caching (ms)")
953 #define SOUT_MUX_CACHING_LONGTEXT N_( \
954     "This allow you to configure the initial caching amount for stream output " \
955     " muxer. This value should be set in milliseconds." )
956
957 #define PACKETIZER_TEXT N_("Preferred packetizer list")
958 #define PACKETIZER_LONGTEXT N_( \
959     "This allows you to select the order in which VLC will choose its " \
960     "packetizers."  )
961
962 #define MUX_TEXT N_("Mux module")
963 #define MUX_LONGTEXT N_( \
964     "This is a legacy entry to let you configure mux modules")
965
966 #define ACCESS_OUTPUT_TEXT N_("Access output module")
967 #define ACCESS_OUTPUT_LONGTEXT N_( \
968     "This is a legacy entry to let you configure access output modules")
969
970 #define ANN_SAPCTRL_TEXT N_("Control SAP flow")
971 #define ANN_SAPCTRL_LONGTEXT N_( \
972     "If this option is enabled, the flow on " \
973     "the SAP multicast address will be controlled. This is needed if you " \
974     "want to make announcements on the MBone." )
975
976 #define ANN_SAPINTV_TEXT N_("SAP announcement interval")
977 #define ANN_SAPINTV_LONGTEXT N_( \
978     "When the SAP flow control is disabled, " \
979     "this lets you set the fixed interval between SAP announcements." )
980
981 /*****************************************************************************
982  * Advanced
983  ****************************************************************************/
984
985 // DEPRECATED
986 #define CPU_CAT_LONGTEXT N_( \
987     "These options allow you to enable special CPU optimizations. " \
988     "You should always leave all these enabled." )
989
990 #define FPU_TEXT N_("Enable FPU support")
991 #define FPU_LONGTEXT N_( \
992     "If your processor has a floating point calculation unit, VLC can take " \
993     "advantage of it.")
994
995 #define MMX_TEXT N_("Enable CPU MMX support")
996 #define MMX_LONGTEXT N_( \
997     "If your processor supports the MMX instructions set, VLC can take " \
998     "advantage of them.")
999
1000 #define THREE_DN_TEXT N_("Enable CPU 3D Now! support")
1001 #define THREE_DN_LONGTEXT N_( \
1002     "If your processor supports the 3D Now! instructions set, VLC can take " \
1003     "advantage of them.")
1004
1005 #define MMXEXT_TEXT N_("Enable CPU MMX EXT support")
1006 #define MMXEXT_LONGTEXT N_( \
1007     "If your processor supports the MMX EXT instructions set, VLC can take " \
1008     "advantage of them.")
1009
1010 #define SSE_TEXT N_("Enable CPU SSE support")
1011 #define SSE_LONGTEXT N_( \
1012     "If your processor supports the SSE instructions set, VLC can take " \
1013     "advantage of them.")
1014
1015 #define SSE2_TEXT N_("Enable CPU SSE2 support")
1016 #define SSE2_LONGTEXT N_( \
1017     "If your processor supports the SSE2 instructions set, VLC can take " \
1018     "advantage of them.")
1019
1020 #define SSE3_TEXT N_("Enable CPU SSE3 support")
1021 #define SSE3_LONGTEXT N_( \
1022     "If your processor supports the SSE3 instructions set, VLC can take " \
1023     "advantage of them.")
1024
1025
1026 #define ALTIVEC_TEXT N_("Enable CPU AltiVec support")
1027 #define ALTIVEC_LONGTEXT N_( \
1028     "If your processor supports the AltiVec instructions set, VLC can take " \
1029     "advantage of them.")
1030
1031 // DEPRECATED
1032 #define MISC_CAT_LONGTEXT N_( \
1033     "These options allow you to select default modules. Leave these " \
1034     "alone unless you really know what you are doing." )
1035
1036 #define MEMCPY_TEXT N_("Memory copy module")
1037 #define MEMCPY_LONGTEXT N_( \
1038     "You can select which memory copy module you want to use. By default " \
1039     "VLC will select the fastest one supported by your hardware.")
1040
1041 #define ACCESS_TEXT N_("Access module")
1042 #define ACCESS_LONGTEXT N_( \
1043     "This allows you to force an access module. You can use it if " \
1044     "the correct access is not automatically detected. You should not "\
1045     "set this as a global option unless you really know what you are doing." )
1046
1047 #define STREAM_FILTER_TEXT N_("Stream filter module")
1048 #define STREAM_FILTER_LONGTEXT N_( \
1049     "Stream filters are used to modify the stream that is being read. " )
1050
1051 #define DEMUX_TEXT N_("Demux module")
1052 #define DEMUX_LONGTEXT N_( \
1053     "Demultiplexers are used to separate the \"elementary\" streams " \
1054     "(like audio and video streams). You can use it if " \
1055     "the correct demuxer is not automatically detected. You should not "\
1056     "set this as a global option unless you really know what you are doing." )
1057
1058 #define RT_PRIORITY_TEXT N_("Allow real-time priority")
1059 #define RT_PRIORITY_LONGTEXT N_( \
1060     "Running VLC in real-time priority will allow for much more precise " \
1061     "scheduling and yield better, especially when streaming content. " \
1062     "It can however lock up your whole machine, or make it very very " \
1063     "slow. You should only activate this if you know what you're " \
1064     "doing.")
1065
1066 #define RT_OFFSET_TEXT N_("Adjust VLC priority")
1067 #define RT_OFFSET_LONGTEXT N_( \
1068     "This option adds an offset (positive or negative) to VLC default " \
1069     "priorities. You can use it to tune VLC priority against other " \
1070     "programs, or against other VLC instances.")
1071
1072 #define USE_STREAM_IMMEDIATE N_("(Experimental) Don't do caching at the access level.")
1073 #define USE_STREAM_IMMEDIATE_LONGTEXT N_( \
1074      "This option is useful if you want to lower the latency when " \
1075      "reading a stream")
1076
1077 #define PLUGIN_PATH_TEXT N_("Modules search path")
1078 #define PLUGIN_PATH_LONGTEXT N_( \
1079     "Additional path for VLC to look for its modules. You can add " \
1080     "several paths by concatenating them using \" PATH_SEP \" as separator")
1081
1082 #define VLM_CONF_TEXT N_("VLM configuration file")
1083 #define VLM_CONF_LONGTEXT N_( \
1084     "Read a VLM configuration file as soon as VLM is started." )
1085
1086 #define PLUGINS_CACHE_TEXT N_("Use a plugins cache")
1087 #define PLUGINS_CACHE_LONGTEXT N_( \
1088     "Use a plugins cache which will greatly improve the startup time of VLC.")
1089
1090 #define STATS_TEXT N_("Locally collect statistics")
1091 #define STATS_LONGTEXT N_( \
1092      "Collect miscellaneous local statistics about the playing media.")
1093
1094 #define DAEMON_TEXT N_("Run as daemon process")
1095 #define DAEMON_LONGTEXT N_( \
1096      "Runs VLC as a background daemon process.")
1097
1098 #define PIDFILE_TEXT N_("Write process id to file")
1099 #define PIDFILE_LONGTEXT N_( \
1100        "Writes process id into specified file.")
1101
1102 #define FILE_LOG_TEXT N_( "Log to file" )
1103 #define FILE_LOG_LONGTEXT N_( \
1104     "Log all VLC messages to a text file." )
1105
1106 #define SYSLOG_TEXT N_( "Log to syslog" )
1107 #define SYSLOG_LONGTEXT N_( \
1108     "Log all VLC messages to syslog (UNIX systems)." )
1109
1110 #define ONEINSTANCE_TEXT N_("Allow only one running instance")
1111 #if defined( WIN32 )
1112 #define ONEINSTANCE_LONGTEXT N_( \
1113     "Allowing only one running instance of VLC can sometimes be useful, " \
1114     "for example if you associated VLC with some media types and you " \
1115     "don't want a new instance of VLC to be opened each time you " \
1116     "double-click on a file in the explorer. This option will allow you " \
1117     "to play the file with the already running instance or enqueue it.")
1118 #elif defined( HAVE_DBUS )
1119 #define ONEINSTANCE_LONGTEXT N_( \
1120     "Allowing only one running instance of VLC can sometimes be useful, " \
1121     "for example if you associated VLC with some media types and you " \
1122     "don't want a new instance of VLC to be opened each time you " \
1123     "open a file in your file manager. This option will allow you " \
1124     "to play the file with the already running instance or enqueue it. " \
1125     "This option requires the D-Bus session daemon to be active " \
1126     "and the running instance of VLC to use D-Bus control interface.")
1127 #endif
1128
1129 #define STARTEDFROMFILE_TEXT N_("VLC is started from file association")
1130 #define STARTEDFROMFILE_LONGTEXT N_( \
1131     "Tell VLC that it is being launched due to a file association in the OS" )
1132
1133 #define ONEINSTANCEWHENSTARTEDFROMFILE_TEXT N_( \
1134     "One instance when started from file")
1135 #define ONEINSTANCEWHENSTARTEDFROMFILE_LONGTEXT N_( \
1136     "Allow only one running instance when started from file.")
1137
1138 #define HPRIORITY_TEXT N_("Increase the priority of the process")
1139 #define HPRIORITY_LONGTEXT N_( \
1140     "Increasing the priority of the process will very likely improve your " \
1141     "playing experience as it allows VLC not to be disturbed by other " \
1142     "applications that could otherwise take too much processor time. " \
1143     "However be advised that in certain circumstances (bugs) VLC could take " \
1144     "all the processor time and render the whole system unresponsive which " \
1145     "might require a reboot of your machine.")
1146
1147 #define PLAYLISTENQUEUE_TEXT N_( \
1148     "Enqueue items to playlist when in one instance mode")
1149 #define PLAYLISTENQUEUE_LONGTEXT N_( \
1150     "When using the one instance only option, enqueue items to playlist " \
1151     "and keep playing current item.")
1152
1153 /*****************************************************************************
1154  * Playlist
1155  ****************************************************************************/
1156
1157 // DEPRECATED
1158 #define PLAYLIST_CAT_LONGTEXT N_( \
1159      "These options define the behavior of the playlist. Some " \
1160      "of them can be overridden in the playlist dialog box." )
1161
1162 #define PREPARSE_TEXT N_( "Automatically preparse files")
1163 #define PREPARSE_LONGTEXT N_( \
1164     "Automatically preparse files added to the playlist " \
1165     "(to retrieve some metadata)." )
1166
1167 #define ALBUM_ART_TEXT N_( "Album art policy" )
1168 #define ALBUM_ART_LONGTEXT N_( \
1169     "Choose how album art will be downloaded." )
1170
1171 static const int pi_albumart_values[] = { ALBUM_ART_WHEN_ASKED,
1172                                           ALBUM_ART_WHEN_PLAYED,
1173                                           ALBUM_ART_ALL };
1174 static const char *const ppsz_albumart_descriptions[] =
1175     { N_("Manual download only"),
1176       N_("When track starts playing"),
1177       N_("As soon as track is added") };
1178
1179 #define SD_TEXT N_( "Services discovery modules")
1180 #define SD_LONGTEXT N_( \
1181      "Specifies the services discovery modules to load, separated by " \
1182      "semi-colons. Typical values are sap, hal, ..." )
1183
1184 #define RANDOM_TEXT N_("Play files randomly forever")
1185 #define RANDOM_LONGTEXT N_( \
1186     "VLC will randomly play files in the playlist until interrupted.")
1187
1188 #define LOOP_TEXT N_("Repeat all")
1189 #define LOOP_LONGTEXT N_( \
1190     "VLC will keep playing the playlist indefinitely." )
1191
1192 #define REPEAT_TEXT N_("Repeat current item")
1193 #define REPEAT_LONGTEXT N_( \
1194     "VLC will keep playing the current playlist item." )
1195
1196 #define PAS_TEXT N_("Play and stop")
1197 #define PAS_LONGTEXT N_( \
1198     "Stop the playlist after each played playlist item." )
1199
1200 #define PAE_TEXT N_("Play and exit")
1201 #define PAE_LONGTEXT N_( \
1202     "Exit if there are no more items in the playlist." )
1203
1204 #define PAP_TEXT N_("Play and pause")
1205 #define PAP_LONGTEXT N_( \
1206     "Pause each item in the playlist on the last frame." )
1207
1208 #define ML_TEXT N_("Use media library")
1209 #define ML_LONGTEXT N_( \
1210     "The media library is automatically saved and reloaded each time you " \
1211     "start VLC." )
1212
1213 #define PLTREE_TEXT N_("Display playlist tree")
1214 #define PLTREE_LONGTEXT N_( \
1215     "The playlist can use a tree to categorize some items, like the " \
1216     "contents of a directory." )
1217
1218
1219 /*****************************************************************************
1220  * Hotkeys
1221  ****************************************************************************/
1222
1223 // DEPRECATED
1224 #define HOTKEY_CAT_LONGTEXT N_( "These settings are the global VLC key " \
1225     "bindings, known as \"hotkeys\"." )
1226
1227 #define TOGGLE_FULLSCREEN_KEY_TEXT N_("Fullscreen")
1228 #define TOGGLE_FULLSCREEN_KEY_LONGTEXT N_("Select the hotkey to use to swap fullscreen state.")
1229 #define LEAVE_FULLSCREEN_KEY_TEXT N_("Leave fullscreen")
1230 #define LEAVE_FULLSCREEN_KEY_LONGTEXT N_("Select the hotkey to use to leave fullscreen state.")
1231 #define PLAY_PAUSE_KEY_TEXT N_("Play/Pause")
1232 #define PLAY_PAUSE_KEY_LONGTEXT N_("Select the hotkey to use to swap paused state.")
1233 #define PAUSE_KEY_TEXT N_("Pause only")
1234 #define PAUSE_KEY_LONGTEXT N_("Select the hotkey to use to pause.")
1235 #define PLAY_KEY_TEXT N_("Play only")
1236 #define PLAY_KEY_LONGTEXT N_("Select the hotkey to use to play.")
1237 #define FASTER_KEY_TEXT N_("Faster")
1238 #define FASTER_KEY_LONGTEXT N_("Select the hotkey to use for fast forward playback.")
1239 #define SLOWER_KEY_TEXT N_("Slower")
1240 #define SLOWER_KEY_LONGTEXT N_("Select the hotkey to use for slow motion playback.")
1241 #define RATE_NORMAL_KEY_TEXT N_("Normal rate")
1242 #define RATE_NORMAL_KEY_LONGTEXT N_("Select the hotkey to set the playback rate back to normal.")
1243 #define RATE_FASTER_FINE_KEY_TEXT N_("Faster (fine)")
1244 #define RATE_FASTER_FINE_KEY_LONGTEXT N_("Select the hotkey to use for fast forward playback.")
1245 #define RATE_SLOWER_FINE_KEY_TEXT N_("Slower (fine)")
1246 #define RATE_SLOWER_FINE_KEY_LONGTEXT N_("Select the hotkey to use for slow motion playback.")
1247 #define NEXT_KEY_TEXT N_("Next")
1248 #define NEXT_KEY_LONGTEXT N_("Select the hotkey to use to skip to the next item in the playlist.")
1249 #define PREV_KEY_TEXT N_("Previous")
1250 #define PREV_KEY_LONGTEXT N_("Select the hotkey to use to skip to the previous item in the playlist.")
1251 #define STOP_KEY_TEXT N_("Stop")
1252 #define STOP_KEY_LONGTEXT N_("Select the hotkey to stop playback.")
1253 #define POSITION_KEY_TEXT N_("Position")
1254 #define POSITION_KEY_LONGTEXT N_("Select the hotkey to display the position.")
1255
1256 #define JBEXTRASHORT_KEY_TEXT N_("Very short backwards jump")
1257 #define JBEXTRASHORT_KEY_LONGTEXT \
1258     N_("Select the hotkey to make a very short backwards jump.")
1259 #define JBSHORT_KEY_TEXT N_("Short backwards jump")
1260 #define JBSHORT_KEY_LONGTEXT \
1261     N_("Select the hotkey to make a short backwards jump.")
1262 #define JBMEDIUM_KEY_TEXT N_("Medium backwards jump")
1263 #define JBMEDIUM_KEY_LONGTEXT \
1264     N_("Select the hotkey to make a medium backwards jump.")
1265 #define JBLONG_KEY_TEXT N_("Long backwards jump")
1266 #define JBLONG_KEY_LONGTEXT \
1267     N_("Select the hotkey to make a long backwards jump.")
1268
1269 #define JFEXTRASHORT_KEY_TEXT N_("Very short forward jump")
1270 #define JFEXTRASHORT_KEY_LONGTEXT \
1271     N_("Select the hotkey to make a very short forward jump.")
1272 #define JFSHORT_KEY_TEXT N_("Short forward jump")
1273 #define JFSHORT_KEY_LONGTEXT \
1274     N_("Select the hotkey to make a short forward jump.")
1275 #define JFMEDIUM_KEY_TEXT N_("Medium forward jump")
1276 #define JFMEDIUM_KEY_LONGTEXT \
1277     N_("Select the hotkey to make a medium forward jump.")
1278 #define JFLONG_KEY_TEXT N_("Long forward jump")
1279 #define JFLONG_KEY_LONGTEXT \
1280     N_("Select the hotkey to make a long forward jump.")
1281 #define FRAME_NEXT_KEY_TEXT N_("Next frame")
1282 #define FRAME_NEXT_KEY_LONGTEXT \
1283     N_("Select the hotkey to got to the next video frame.")
1284
1285 #define JIEXTRASHORT_TEXT N_("Very short jump length")
1286 #define JIEXTRASHORT_LONGTEXT N_("Very short jump length, in seconds.")
1287 #define JISHORT_TEXT N_("Short jump length")
1288 #define JISHORT_LONGTEXT N_("Short jump length, in seconds.")
1289 #define JIMEDIUM_TEXT N_("Medium jump length")
1290 #define JIMEDIUM_LONGTEXT N_("Medium jump length, in seconds.")
1291 #define JILONG_TEXT N_("Long jump length")
1292 #define JILONG_LONGTEXT N_("Long jump length, in seconds.")
1293
1294 #define QUIT_KEY_TEXT N_("Quit")
1295 #define QUIT_KEY_LONGTEXT N_("Select the hotkey to quit the application.")
1296 #define NAV_UP_KEY_TEXT N_("Navigate up")
1297 #define NAV_UP_KEY_LONGTEXT N_("Select the key to move the selector up in DVD menus.")
1298 #define NAV_DOWN_KEY_TEXT N_("Navigate down")
1299 #define NAV_DOWN_KEY_LONGTEXT N_("Select the key to move the selector down in DVD menus.")
1300 #define NAV_LEFT_KEY_TEXT N_("Navigate left")
1301 #define NAV_LEFT_KEY_LONGTEXT N_("Select the key to move the selector left in DVD menus.")
1302 #define NAV_RIGHT_KEY_TEXT N_("Navigate right")
1303 #define NAV_RIGHT_KEY_LONGTEXT N_("Select the key to move the selector right in DVD menus.")
1304 #define NAV_ACTIVATE_KEY_TEXT N_("Activate")
1305 #define NAV_ACTIVATE_KEY_LONGTEXT N_("Select the key to activate selected item in DVD menus.")
1306 #define DISC_MENU_TEXT N_("Go to the DVD menu")
1307 #define DISC_MENU_LONGTEXT N_("Select the key to take you to the DVD menu")
1308 #define TITLE_PREV_TEXT N_("Select previous DVD title")
1309 #define TITLE_PREV_LONGTEXT N_("Select the key to choose the previous title from the DVD")
1310 #define TITLE_NEXT_TEXT N_("Select next DVD title")
1311 #define TITLE_NEXT_LONGTEXT N_("Select the key to choose the next title from the DVD")
1312 #define CHAPTER_PREV_TEXT N_("Select prev DVD chapter")
1313 #define CHAPTER_PREV_LONGTEXT N_("Select the key to choose the previous chapter from the DVD")
1314 #define CHAPTER_NEXT_TEXT N_("Select next DVD chapter")
1315 #define CHAPTER_NEXT_LONGTEXT N_("Select the key to choose the next chapter from the DVD")
1316 #define VOL_UP_KEY_TEXT N_("Volume up")
1317 #define VOL_UP_KEY_LONGTEXT N_("Select the key to increase audio volume.")
1318 #define VOL_DOWN_KEY_TEXT N_("Volume down")
1319 #define VOL_DOWN_KEY_LONGTEXT N_("Select the key to decrease audio volume.")
1320 #define VOL_MUTE_KEY_TEXT N_("Mute")
1321 #define VOL_MUTE_KEY_LONGTEXT N_("Select the key to mute audio.")
1322 #define SUBDELAY_UP_KEY_TEXT N_("Subtitle delay up")
1323 #define SUBDELAY_UP_KEY_LONGTEXT N_("Select the key to increase the subtitle delay.")
1324 #define SUBDELAY_DOWN_KEY_TEXT N_("Subtitle delay down")
1325 #define SUBDELAY_DOWN_KEY_LONGTEXT N_("Select the key to decrease the subtitle delay.")
1326 #define AUDIODELAY_UP_KEY_TEXT N_("Audio delay up")
1327 #define AUDIODELAY_UP_KEY_LONGTEXT N_("Select the key to increase the audio delay.")
1328 #define AUDIODELAY_DOWN_KEY_TEXT N_("Audio delay down")
1329 #define AUDIODELAY_DOWN_KEY_LONGTEXT N_("Select the key to decrease the audio delay.")
1330
1331 #define ZOOM_QUARTER_KEY_TEXT N_("1:4 Quarter")
1332 #define ZOOM_HALF_KEY_TEXT N_("1:2 Half")
1333 #define ZOOM_ORIGINAL_KEY_TEXT N_("1:1 Original")
1334 #define ZOOM_DOUBLE_KEY_TEXT N_("2:1 Double")
1335
1336 #define PLAY_BOOKMARK1_KEY_TEXT N_("Play playlist bookmark 1")
1337 #define PLAY_BOOKMARK2_KEY_TEXT N_("Play playlist bookmark 2")
1338 #define PLAY_BOOKMARK3_KEY_TEXT N_("Play playlist bookmark 3")
1339 #define PLAY_BOOKMARK4_KEY_TEXT N_("Play playlist bookmark 4")
1340 #define PLAY_BOOKMARK5_KEY_TEXT N_("Play playlist bookmark 5")
1341 #define PLAY_BOOKMARK6_KEY_TEXT N_("Play playlist bookmark 6")
1342 #define PLAY_BOOKMARK7_KEY_TEXT N_("Play playlist bookmark 7")
1343 #define PLAY_BOOKMARK8_KEY_TEXT N_("Play playlist bookmark 8")
1344 #define PLAY_BOOKMARK9_KEY_TEXT N_("Play playlist bookmark 9")
1345 #define PLAY_BOOKMARK10_KEY_TEXT N_("Play playlist bookmark 10")
1346 #define PLAY_BOOKMARK_KEY_LONGTEXT N_("Select the key to play this bookmark.")
1347 #define SET_BOOKMARK1_KEY_TEXT N_("Set playlist bookmark 1")
1348 #define SET_BOOKMARK2_KEY_TEXT N_("Set playlist bookmark 2")
1349 #define SET_BOOKMARK3_KEY_TEXT N_("Set playlist bookmark 3")
1350 #define SET_BOOKMARK4_KEY_TEXT N_("Set playlist bookmark 4")
1351 #define SET_BOOKMARK5_KEY_TEXT N_("Set playlist bookmark 5")
1352 #define SET_BOOKMARK6_KEY_TEXT N_("Set playlist bookmark 6")
1353 #define SET_BOOKMARK7_KEY_TEXT N_("Set playlist bookmark 7")
1354 #define SET_BOOKMARK8_KEY_TEXT N_("Set playlist bookmark 8")
1355 #define SET_BOOKMARK9_KEY_TEXT N_("Set playlist bookmark 9")
1356 #define SET_BOOKMARK10_KEY_TEXT N_("Set playlist bookmark 10")
1357 #define SET_BOOKMARK_KEY_LONGTEXT N_("Select the key to set this playlist bookmark.")
1358
1359 #define BOOKMARK1_TEXT N_("Playlist bookmark 1")
1360 #define BOOKMARK2_TEXT N_("Playlist bookmark 2")
1361 #define BOOKMARK3_TEXT N_("Playlist bookmark 3")
1362 #define BOOKMARK4_TEXT N_("Playlist bookmark 4")
1363 #define BOOKMARK5_TEXT N_("Playlist bookmark 5")
1364 #define BOOKMARK6_TEXT N_("Playlist bookmark 6")
1365 #define BOOKMARK7_TEXT N_("Playlist bookmark 7")
1366 #define BOOKMARK8_TEXT N_("Playlist bookmark 8")
1367 #define BOOKMARK9_TEXT N_("Playlist bookmark 9")
1368 #define BOOKMARK10_TEXT N_("Playlist bookmark 10")
1369 #define BOOKMARK_LONGTEXT N_( \
1370       "This allows you to define playlist bookmarks.")
1371
1372 #define HISTORY_BACK_TEXT N_("Go back in browsing history")
1373 #define HISTORY_BACK_LONGTEXT N_("Select the key to go back (to the previous media item) in the browsing history.")
1374 #define HISTORY_FORWARD_TEXT N_("Go forward in browsing history")
1375 #define HISTORY_FORWARD_LONGTEXT N_("Select the key to go forward (to the next media item) in the browsing history.")
1376
1377 #define AUDIO_TRACK_KEY_TEXT N_("Cycle audio track")
1378 #define AUDIO_TRACK_KEY_LONGTEXT N_("Cycle through the available audio tracks(languages).")
1379 #define SUBTITLE_TRACK_KEY_TEXT N_("Cycle subtitle track")
1380 #define SUBTITLE_TRACK_KEY_LONGTEXT N_("Cycle through the available subtitle tracks.")
1381 #define ASPECT_RATIO_KEY_TEXT N_("Cycle source aspect ratio")
1382 #define ASPECT_RATIO_KEY_LONGTEXT N_("Cycle through a predefined list of source aspect ratios.")
1383 #define CROP_KEY_TEXT N_("Cycle video crop")
1384 #define CROP_KEY_LONGTEXT N_("Cycle through a predefined list of crop formats.")
1385 #define TOGGLE_AUTOSCALE_KEY_TEXT N_("Toggle autoscaling")
1386 #define TOGGLE_AUTOSCALE_KEY_LONGTEXT N_("Activate or deactivate autoscaling.")
1387 #define SCALE_UP_KEY_TEXT N_("Increase scale factor")
1388 #define SCALE_UP_KEY_LONGTEXT N_("Increase scale factor.")
1389 #define SCALE_DOWN_KEY_TEXT N_("Decrease scale factor")
1390 #define SCALE_DOWN_KEY_LONGTEXT N_("Decrease scale factor.")
1391 #define DEINTERLACE_KEY_TEXT N_("Cycle deinterlace modes")
1392 #define DEINTERLACE_KEY_LONGTEXT N_("Cycle through deinterlace modes.")
1393 #define INTF_SHOW_KEY_TEXT N_("Show interface")
1394 #define INTF_SHOW_KEY_LONGTEXT N_("Raise the interface above all other windows.")
1395 #define INTF_HIDE_KEY_TEXT N_("Hide interface")
1396 #define INTF_HIDE_KEY_LONGTEXT N_("Lower the interface below all other windows.")
1397 #define SNAP_KEY_TEXT N_("Take video snapshot")
1398 #define SNAP_KEY_LONGTEXT N_("Takes a video snapshot and writes it to disk.")
1399
1400 #define RECORD_KEY_TEXT N_("Record")
1401 #define RECORD_KEY_LONGTEXT N_("Record access filter start/stop.")
1402 #define DUMP_KEY_TEXT N_("Dump")
1403 #define DUMP_KEY_LONGTEXT N_("Media dump access filter trigger.")
1404
1405 #define LOOP_KEY_TEXT N_("Normal/Repeat/Loop")
1406 #define LOOP_KEY_LONGTEXT N_("Toggle Normal/Repeat/Loop playlist modes")
1407
1408 #define RANDOM_KEY_TEXT N_("Random")
1409 #define RANDOM_KEY_LONGTEXT N_("Toggle random playlist playback")
1410
1411 #define ZOOM_KEY_TEXT N_("Zoom")
1412 #define ZOOM_KEY_LONGTEXT N_("Zoom")
1413
1414 #define UNZOOM_KEY_TEXT N_("Un-Zoom")
1415 #define UNZOOM_KEY_LONGTEXT N_("Un-Zoom")
1416
1417 #define CROP_TOP_KEY_TEXT N_("Crop one pixel from the top of the video")
1418 #define CROP_TOP_KEY_LONGTEXT N_("Crop one pixel from the top of the video")
1419 #define UNCROP_TOP_KEY_TEXT N_("Uncrop one pixel from the top of the video")
1420 #define UNCROP_TOP_KEY_LONGTEXT N_("Uncrop one pixel from the top of the video")
1421
1422 #define CROP_LEFT_KEY_TEXT N_("Crop one pixel from the left of the video")
1423 #define CROP_LEFT_KEY_LONGTEXT N_("Crop one pixel from the left of the video")
1424 #define UNCROP_LEFT_KEY_TEXT N_("Uncrop one pixel from the left of the video")
1425 #define UNCROP_LEFT_KEY_LONGTEXT N_("Uncrop one pixel from the left of the video")
1426
1427 #define CROP_BOTTOM_KEY_TEXT N_("Crop one pixel from the bottom of the video")
1428 #define CROP_BOTTOM_KEY_LONGTEXT N_("Crop one pixel from the bottom of the video")
1429 #define UNCROP_BOTTOM_KEY_TEXT N_("Uncrop one pixel from the bottom of the video")
1430 #define UNCROP_BOTTOM_KEY_LONGTEXT N_("Uncrop one pixel from the bottom of the video")
1431
1432 #define CROP_RIGHT_KEY_TEXT N_("Crop one pixel from the right of the video")
1433 #define CROP_RIGHT_KEY_LONGTEXT N_("Crop one pixel from the right of the video")
1434 #define UNCROP_RIGHT_KEY_TEXT N_("Uncrop one pixel from the right of the video")
1435 #define UNCROP_RIGHT_KEY_LONGTEXT N_("Uncrop one pixel from the right of the video")
1436
1437 #define WALLPAPER_KEY_TEXT N_("Toggle wallpaper mode in video output")
1438 #define WALLPAPER_KEY_LONGTEXT N_( \
1439     "Toggle wallpaper mode in video output. Only works with the directx " \
1440     "video output for the time being." )
1441
1442 #define MENU_ON_KEY_TEXT N_("Display OSD menu on top of video output")
1443 #define MENU_ON_KEY_LONGTEXT N_("Display OSD menu on top of video output")
1444 #define MENU_OFF_KEY_TEXT N_("Do not display OSD menu on video output")
1445 #define MENU_OFF_KEY_LONGTEXT N_("Do not display OSD menu on top of video output")
1446 #define MENU_RIGHT_KEY_TEXT N_("Highlight widget on the right")
1447 #define MENU_RIGHT_KEY_LONGTEXT N_( \
1448         "Move OSD menu highlight to the widget on the right")
1449 #define MENU_LEFT_KEY_TEXT N_("Highlight widget on the left")
1450 #define MENU_LEFT_KEY_LONGTEXT N_( \
1451         "Move OSD menu highlight to the widget on the left")
1452 #define MENU_UP_KEY_TEXT N_("Highlight widget on top")
1453 #define MENU_UP_KEY_LONGTEXT N_( \
1454         "Move OSD menu highlight to the widget on top")
1455 #define MENU_DOWN_KEY_TEXT N_("Highlight widget below")
1456 #define MENU_DOWN_KEY_LONGTEXT N_( \
1457         "Move OSD menu highlight to the widget below")
1458 #define MENU_SELECT_KEY_TEXT N_("Select current widget")
1459 #define MENU_SELECT_KEY_LONGTEXT N_( \
1460         "Selecting current widget performs the associated action.")
1461
1462 #define AUDI_DEVICE_CYCLE_KEY_TEXT N_("Cycle through audio devices")
1463 #define AUDI_DEVICE_CYCLE_KEY_LONGTEXT N_("Cycle through available audio devices")
1464 const char vlc_usage[] = N_(
1465     "Usage: %s [options] [stream] ..."
1466     "\nYou can specify multiple streams on the commandline. They will be enqueued in the playlist."
1467     "\nThe first item specified will be played first."
1468     "\n"
1469     "\nOptions-styles:"
1470     "\n  --option  A global option that is set for the duration of the program."
1471     "\n   -option  A single letter version of a global --option."
1472     "\n   :option  An option that only applies to the stream directly before it"
1473     "\n            and that overrides previous settings."
1474     "\n"
1475     "\nStream MRL syntax:"
1476     "\n  [[access][/demux]://]URL[@[title][:chapter][-[title][:chapter]]] [:option=value ...]"
1477     "\n"
1478     "\n  Many of the global --options can also be used as MRL specific :options."
1479     "\n  Multiple :option=value pairs can be specified."
1480     "\n"
1481     "\nURL syntax:"
1482     "\n  [file://]filename              Plain media file"
1483     "\n  http://ip:port/file            HTTP URL"
1484     "\n  ftp://ip:port/file             FTP URL"
1485     "\n  mms://ip:port/file             MMS URL"
1486     "\n  screen://                      Screen capture"
1487     "\n  [dvd://][device][@raw_device]  DVD device"
1488     "\n  [vcd://][device]               VCD device"
1489     "\n  [cdda://][device]              Audio CD device"
1490     "\n  udp://[[<source address>]@[<bind address>][:<bind port>]]"
1491     "\n                                 UDP stream sent by a streaming server"
1492     "\n  vlc://pause:<seconds>          Special item to pause the playlist for a certain time"
1493     "\n  vlc://quit                     Special item to quit VLC"
1494     "\n");
1495
1496 /*
1497  * Quick usage guide for the configuration options:
1498  *
1499  * add_category_hint( N_(text), N_(longtext), b_advanced_option )
1500  * add_subcategory_hint( N_(text), N_(longtext), b_advanced_option )
1501  * add_usage_hint( N_(text), b_advanced_option )
1502  * add_string( option_name, value, p_callback, N_(text), N_(longtext),
1503                b_advanced_option )
1504  * add_file( option_name, psz_value, p_callback, N_(text), N_(longtext) )
1505  * add_module( option_name, psz_value, i_capability, p_callback,
1506  *             N_(text), N_(longtext) )
1507  * add_integer( option_name, i_value, p_callback, N_(text), N_(longtext),
1508                 b_advanced_option )
1509  * add_bool( option_name, b_value, p_callback, N_(text), N_(longtext),
1510              b_advanced_option )
1511  */
1512
1513 vlc_module_begin ()
1514 /* Audio options */
1515     set_category( CAT_AUDIO )
1516     set_subcategory( SUBCAT_AUDIO_GENERAL )
1517     add_category_hint( N_("Audio"), AOUT_CAT_LONGTEXT , false )
1518
1519     add_bool( "audio", 1, NULL, AUDIO_TEXT, AUDIO_LONGTEXT, false )
1520         change_safe ()
1521     add_integer_with_range( "volume", AOUT_VOLUME_DEFAULT, AOUT_VOLUME_MIN,
1522                             AOUT_VOLUME_MAX, NULL, VOLUME_TEXT,
1523                             VOLUME_LONGTEXT, false )
1524     add_integer_with_range( "volume-step", AOUT_VOLUME_STEP, AOUT_VOLUME_MIN,
1525                             AOUT_VOLUME_MAX, NULL, VOLUME_STEP_TEXT,
1526                             VOLUME_STEP_LONGTEXT, true )
1527     add_integer( "aout-rate", -1, NULL, AOUT_RATE_TEXT,
1528                  AOUT_RATE_LONGTEXT, true )
1529 #if !defined( __APPLE__ )
1530     add_bool( "hq-resampling", 1, NULL, AOUT_RESAMP_TEXT,
1531               AOUT_RESAMP_LONGTEXT, true )
1532 #endif
1533     add_bool( "spdif", 0, NULL, SPDIF_TEXT, SPDIF_LONGTEXT, false )
1534     add_integer( "force-dolby-surround", 0, NULL, FORCE_DOLBY_TEXT,
1535                  FORCE_DOLBY_LONGTEXT, false )
1536         change_integer_list( pi_force_dolby_values, ppsz_force_dolby_descriptions, NULL )
1537     add_integer( "audio-desync", 0, NULL, DESYNC_TEXT,
1538                  DESYNC_LONGTEXT, true )
1539         change_safe ()
1540
1541     /* FIXME TODO create a subcat replay gain ? */
1542     add_string( "audio-replay-gain-mode", ppsz_replay_gain_mode[0], NULL, AUDIO_REPLAY_GAIN_MODE_TEXT,
1543                 AUDIO_REPLAY_GAIN_MODE_LONGTEXT, false )
1544         change_string_list( ppsz_replay_gain_mode, ppsz_replay_gain_mode_text, 0 )
1545     add_float( "audio-replay-gain-preamp", 0.0, NULL,
1546                AUDIO_REPLAY_GAIN_PREAMP_TEXT, AUDIO_REPLAY_GAIN_PREAMP_LONGTEXT, false )
1547     add_float( "audio-replay-gain-default", -7.0, NULL,
1548                AUDIO_REPLAY_GAIN_DEFAULT_TEXT, AUDIO_REPLAY_GAIN_DEFAULT_LONGTEXT, false )
1549     add_bool( "audio-replay-gain-peak-protection", true, NULL,
1550               AUDIO_REPLAY_GAIN_PEAK_PROTECTION_TEXT, AUDIO_REPLAY_GAIN_PEAK_PROTECTION_LONGTEXT, true )
1551
1552     add_bool( "audio-time-stretch", true, NULL,
1553               AUDIO_TIME_STRETCH_TEXT, AUDIO_TIME_STRETCH_LONGTEXT, false )
1554
1555     set_subcategory( SUBCAT_AUDIO_AOUT )
1556     add_module( "aout", "audio output", NULL, NULL, AOUT_TEXT, AOUT_LONGTEXT,
1557                 true )
1558         change_short('A')
1559     set_subcategory( SUBCAT_AUDIO_AFILTER )
1560     add_module_list_cat( "audio-filter", SUBCAT_AUDIO_AFILTER, 0,
1561                          NULL, AUDIO_FILTER_TEXT,
1562                          AUDIO_FILTER_LONGTEXT, false )
1563     set_subcategory( SUBCAT_AUDIO_VISUAL )
1564     add_module( "audio-visual", "visualization",NULL, NULL,AUDIO_VISUAL_TEXT,
1565                 AUDIO_VISUAL_LONGTEXT, false )
1566
1567 /* Video options */
1568     set_category( CAT_VIDEO )
1569     set_subcategory( SUBCAT_VIDEO_GENERAL )
1570     add_category_hint( N_("Video"), VOUT_CAT_LONGTEXT , false )
1571
1572     add_bool( "video", 1, NULL, VIDEO_TEXT, VIDEO_LONGTEXT, true )
1573         change_safe ()
1574     add_bool( "grayscale", 0, NULL, GRAYSCALE_TEXT,
1575               GRAYSCALE_LONGTEXT, true )
1576     add_bool( "fullscreen", 0, NULL, FULLSCREEN_TEXT,
1577               FULLSCREEN_LONGTEXT, false )
1578         change_short('f')
1579         change_safe ()
1580     add_bool( "embedded-video", 1, NULL, EMBEDDED_TEXT, EMBEDDED_LONGTEXT,
1581               true )
1582 #ifdef __APPLE__
1583        add_deprecated_alias( "macosx-embedded" ) /*deprecated since 0.9.0 */
1584 #endif
1585     add_bool( "drop-late-frames", 1, NULL, DROP_LATE_FRAMES_TEXT,
1586               DROP_LATE_FRAMES_LONGTEXT, true )
1587     /* Used in vout_synchro */
1588     add_bool( "skip-frames", 1, NULL, SKIP_FRAMES_TEXT,
1589               SKIP_FRAMES_LONGTEXT, true )
1590     add_bool( "quiet-synchro", 0, NULL, QUIET_SYNCHRO_TEXT,
1591               QUIET_SYNCHRO_LONGTEXT, true )
1592     add_integer( "vout-event", 1, NULL, VOUT_EVENT_TEXT, VOUT_EVENT_LONGTEXT, true )
1593         change_safe()
1594         change_integer_list( pi_vout_event_values, ppsz_vout_event_descriptions, NULL )
1595         add_deprecated_alias( "x11-event" ) /* renamed since 1.0.0 */
1596 #ifndef __APPLE__
1597     add_bool( "overlay", 1, NULL, OVERLAY_TEXT, OVERLAY_LONGTEXT, false )
1598 #endif
1599     add_bool( "video-on-top", 0, NULL, VIDEO_ON_TOP_TEXT,
1600               VIDEO_ON_TOP_LONGTEXT, false )
1601     add_bool( "disable-screensaver", true, NULL, SS_TEXT, SS_LONGTEXT,
1602               true )
1603
1604     add_bool( "video-title-show", 1, NULL, VIDEO_TITLE_SHOW_TEXT,
1605               VIDEO_TITLE_SHOW_LONGTEXT, false )
1606         change_safe()
1607     add_integer( "video-title-timeout", 5000, NULL, VIDEO_TITLE_TIMEOUT_TEXT,
1608                  VIDEO_TITLE_TIMEOUT_LONGTEXT, false )
1609         change_safe()
1610     add_integer( "video-title-position", 8, NULL, VIDEO_TITLE_POSITION_TEXT,
1611                  VIDEO_TITLE_POSITION_LONGTEXT, false )
1612         change_safe()
1613         change_integer_list( pi_pos_values, ppsz_pos_descriptions, NULL )
1614     // autohide after 1.5s
1615     add_integer( "mouse-hide-timeout", 1500, NULL, MOUSE_HIDE_TIMEOUT_TEXT,
1616                  MOUSE_HIDE_TIMEOUT_LONGTEXT, false )
1617     set_section( N_("Snapshot") , NULL )
1618     add_directory( "snapshot-path", NULL, NULL, SNAP_PATH_TEXT,
1619                    SNAP_PATH_LONGTEXT, false )
1620     add_string( "snapshot-prefix", "vlcsnap-", NULL, SNAP_PREFIX_TEXT,
1621                    SNAP_PREFIX_LONGTEXT, false )
1622     add_string( "snapshot-format", "png", NULL, SNAP_FORMAT_TEXT,
1623                    SNAP_FORMAT_LONGTEXT, false )
1624         change_string_list( ppsz_snap_formats, NULL, 0 )
1625     add_bool( "snapshot-preview", true, NULL, SNAP_PREVIEW_TEXT,
1626               SNAP_PREVIEW_LONGTEXT, false )
1627     add_bool( "snapshot-sequential", false, NULL, SNAP_SEQUENTIAL_TEXT,
1628               SNAP_SEQUENTIAL_LONGTEXT, false )
1629     add_integer( "snapshot-width", -1, NULL, SNAP_WIDTH_TEXT,
1630                  SNAP_WIDTH_LONGTEXT, true )
1631     add_integer( "snapshot-height", -1, NULL, SNAP_HEIGHT_TEXT,
1632                  SNAP_HEIGHT_LONGTEXT, true )
1633
1634     set_section( N_("Window properties" ), NULL )
1635     add_integer( "width", -1, NULL, WIDTH_TEXT, WIDTH_LONGTEXT, true )
1636         change_safe ()
1637     add_integer( "height", -1, NULL, HEIGHT_TEXT, HEIGHT_LONGTEXT, true )
1638         change_safe ()
1639     add_integer( "video-x", -1, NULL, VIDEOX_TEXT, VIDEOX_LONGTEXT, true )
1640         change_safe ()
1641     add_integer( "video-y", -1, NULL, VIDEOY_TEXT, VIDEOY_LONGTEXT, true )
1642         change_safe ()
1643     add_string( "crop", NULL, NULL, CROP_TEXT, CROP_LONGTEXT, false )
1644         change_safe ()
1645     add_string( "custom-crop-ratios", NULL, NULL, CUSTOM_CROP_RATIOS_TEXT,
1646                 CUSTOM_CROP_RATIOS_LONGTEXT, false )
1647     add_string( "aspect-ratio", NULL, NULL,
1648                 ASPECT_RATIO_TEXT, ASPECT_RATIO_LONGTEXT, false )
1649         change_safe ()
1650     add_bool( "autoscale", true, NULL, AUTOSCALE_TEXT, AUTOSCALE_LONGTEXT, false )
1651         change_safe ()
1652     add_float( "scale", 1.0, NULL, SCALEFACTOR_TEXT, SCALEFACTOR_LONGTEXT, false )
1653         change_safe ()
1654     add_string( "monitor-par", NULL, NULL,
1655                 MASPECT_RATIO_TEXT, MASPECT_RATIO_LONGTEXT, true )
1656     add_string( "custom-aspect-ratios", NULL, NULL, CUSTOM_ASPECT_RATIOS_TEXT,
1657                 CUSTOM_ASPECT_RATIOS_LONGTEXT, false )
1658     add_bool( "hdtv-fix", 1, NULL, HDTV_FIX_TEXT, HDTV_FIX_LONGTEXT, true )
1659     add_bool( "video-deco", 1, NULL, VIDEO_DECO_TEXT,
1660               VIDEO_DECO_LONGTEXT, true )
1661     add_string( "video-title", NULL, NULL, VIDEO_TITLE_TEXT,
1662                  VIDEO_TITLE_LONGTEXT, true )
1663     add_integer( "align", 0, NULL, ALIGN_TEXT, ALIGN_LONGTEXT, true )
1664         change_integer_list( pi_align_values, ppsz_align_descriptions, NULL )
1665     add_float( "zoom", 1, NULL, ZOOM_TEXT, ZOOM_LONGTEXT, true )
1666
1667
1668     set_subcategory( SUBCAT_VIDEO_VOUT )
1669     add_module( "vout", "video output", NULL, NULL, VOUT_TEXT, VOUT_LONGTEXT,
1670                 true )
1671         change_short('V')
1672
1673     set_subcategory( SUBCAT_VIDEO_VFILTER )
1674     add_module_list_cat( "video-filter", SUBCAT_VIDEO_VFILTER, NULL, NULL,
1675                 VIDEO_FILTER_TEXT, VIDEO_FILTER_LONGTEXT, false )
1676         add_deprecated_alias( "filter" ) /*deprecated since 0.8.2 */
1677     add_module_list_cat( "vout-filter", SUBCAT_VIDEO_VFILTER, NULL, NULL,
1678                         VOUT_FILTER_TEXT, VOUT_FILTER_LONGTEXT, false )
1679 #if 0
1680     add_string( "pixel-ratio", "1", NULL, PIXEL_RATIO_TEXT, PIXEL_RATIO_TEXT )
1681 #endif
1682
1683 /* Subpictures options */
1684     set_subcategory( SUBCAT_VIDEO_SUBPIC )
1685     set_section( N_("On Screen Display") , NULL )
1686     add_category_hint( N_("Subpictures"), SUB_CAT_LONGTEXT , false )
1687
1688     add_bool( "spu", 1, NULL, SPU_TEXT, SPU_LONGTEXT, true )
1689         change_safe ()
1690     add_bool( "osd", 1, NULL, OSD_TEXT, OSD_LONGTEXT, false )
1691     add_module( "text-renderer", "text renderer", NULL, NULL, TEXTRENDERER_TEXT,
1692                 TEXTRENDERER_LONGTEXT, true )
1693
1694     set_section( N_("Subtitles") , NULL )
1695     add_file( "sub-file", NULL, NULL, SUB_FILE_TEXT,
1696               SUB_FILE_LONGTEXT, false )
1697     add_bool( "sub-autodetect-file", true, NULL,
1698                  SUB_AUTO_TEXT, SUB_AUTO_LONGTEXT, false )
1699     add_integer( "sub-autodetect-fuzzy", 3, NULL,
1700                  SUB_FUZZY_TEXT, SUB_FUZZY_LONGTEXT, true )
1701 #ifdef WIN32
1702 #   define SUB_PATH ".\\subtitles"
1703 #else
1704 #   define SUB_PATH "./Subtitles, ./subtitles"
1705 #endif
1706     add_string( "sub-autodetect-path", SUB_PATH, NULL,
1707                  SUB_PATH_TEXT, SUB_PATH_LONGTEXT, true )
1708     add_integer( "sub-margin", 0, NULL, SUB_MARGIN_TEXT,
1709                  SUB_MARGIN_LONGTEXT, true )
1710         add_deprecated_alias( "spu-margin" ) /*Deprecated since 0.8.2 */
1711     set_section( N_( "Overlays" ) , NULL )
1712     add_module_list_cat( "sub-filter", SUBCAT_VIDEO_SUBPIC, NULL, NULL,
1713                 SUB_FILTER_TEXT, SUB_FILTER_LONGTEXT, false )
1714
1715 /* Input options */
1716     set_category( CAT_INPUT )
1717     set_subcategory( SUBCAT_INPUT_GENERAL )
1718
1719     set_section( N_( "Track settings" ), NULL )
1720     add_integer( "program", 0, NULL,
1721                  INPUT_PROGRAM_TEXT, INPUT_PROGRAM_LONGTEXT, true )
1722         change_safe ()
1723     add_string( "programs", "", NULL,
1724                 INPUT_PROGRAMS_TEXT, INPUT_PROGRAMS_LONGTEXT, true )
1725         change_safe ()
1726     add_integer( "audio-track", -1, NULL,
1727                  INPUT_AUDIOTRACK_TEXT, INPUT_AUDIOTRACK_LONGTEXT, true )
1728         change_safe ()
1729         add_deprecated_alias( "audio-channel" ) /*deprecated since 0.8.2 */
1730     add_integer( "sub-track", -1, NULL,
1731                  INPUT_SUBTRACK_TEXT, INPUT_SUBTRACK_LONGTEXT, true )
1732         change_safe ()
1733         add_deprecated_alias("spu-channel" ) /*deprecated since 0.8.2*/
1734     add_string( "audio-language", "", NULL,
1735                  INPUT_AUDIOTRACK_LANG_TEXT, INPUT_AUDIOTRACK_LANG_LONGTEXT,
1736                   false )
1737         change_safe ()
1738     add_string( "sub-language", "", NULL,
1739                  INPUT_SUBTRACK_LANG_TEXT, INPUT_SUBTRACK_LANG_LONGTEXT,
1740                   false )
1741         change_safe ()
1742     add_integer( "audio-track-id", -1, NULL, INPUT_AUDIOTRACK_ID_TEXT,
1743                  INPUT_AUDIOTRACK_ID_LONGTEXT, true )
1744         change_safe ()
1745     add_integer( "sub-track-id", -1, NULL,
1746                  INPUT_SUBTRACK_ID_TEXT, INPUT_SUBTRACK_ID_LONGTEXT, true )
1747         change_safe ()
1748
1749     set_section( N_( "Playback control" ) , NULL)
1750     add_integer( "input-repeat", 0, NULL,
1751                  INPUT_REPEAT_TEXT, INPUT_REPEAT_LONGTEXT, false )
1752         change_safe ()
1753     add_float( "start-time", 0, NULL,
1754                START_TIME_TEXT, START_TIME_LONGTEXT, true )
1755         change_safe ()
1756     add_float( "stop-time", 0, NULL,
1757                STOP_TIME_TEXT, STOP_TIME_LONGTEXT, true )
1758         change_safe ()
1759     add_float( "run-time", 0, NULL,
1760                RUN_TIME_TEXT, RUN_TIME_LONGTEXT, true )
1761         change_safe ()
1762     add_bool( "input-fast-seek", false, NULL,
1763               INPUT_FAST_SEEK_TEXT, INPUT_FAST_SEEK_LONGTEXT, false )
1764         change_safe ()
1765
1766     add_string( "input-list", NULL, NULL,
1767                  INPUT_LIST_TEXT, INPUT_LIST_LONGTEXT, true )
1768     add_string( "input-slave", NULL, NULL,
1769                  INPUT_SLAVE_TEXT, INPUT_SLAVE_LONGTEXT, true )
1770
1771     add_string( "bookmarks", NULL, NULL,
1772                  BOOKMARKS_TEXT, BOOKMARKS_LONGTEXT, true )
1773
1774     set_section( N_( "Default devices") , NULL )
1775
1776     add_file( "dvd", DVD_DEVICE, NULL, DVD_DEV_TEXT, DVD_DEV_LONGTEXT,
1777               false )
1778     add_file( "vcd", VCD_DEVICE, NULL, VCD_DEV_TEXT, VCD_DEV_LONGTEXT,
1779               false )
1780     add_file( "cd-audio", CDAUDIO_DEVICE, NULL, CDAUDIO_DEV_TEXT,
1781               CDAUDIO_DEV_LONGTEXT, false )
1782
1783     set_section( N_( "Network settings" ), NULL )
1784
1785     add_integer( "server-port", 1234, NULL,
1786                  SERVER_PORT_TEXT, SERVER_PORT_LONGTEXT, false )
1787     add_integer( "mtu", MTU_DEFAULT, NULL, MTU_TEXT, MTU_LONGTEXT, true )
1788     add_bool( "ipv6", 0, NULL, IPV6_TEXT, IPV6_LONGTEXT, false )
1789         change_short('6')
1790     add_bool( "ipv4", 0, NULL, IPV4_TEXT, IPV4_LONGTEXT, false )
1791         change_short('4')
1792     add_integer( "ipv4-timeout", 5 * 1000, NULL, TIMEOUT_TEXT,
1793                  TIMEOUT_LONGTEXT, true )
1794
1795     set_section( N_( "Socks proxy") , NULL )
1796     add_string( "socks", NULL, NULL,
1797                  SOCKS_SERVER_TEXT, SOCKS_SERVER_LONGTEXT, true )
1798     add_string( "socks-user", NULL, NULL,
1799                  SOCKS_USER_TEXT, SOCKS_USER_LONGTEXT, true )
1800     add_string( "socks-pwd", NULL, NULL,
1801                  SOCKS_PASS_TEXT, SOCKS_PASS_LONGTEXT, true )
1802
1803
1804     set_section( N_("Metadata" ) , NULL )
1805     add_string( "meta-title", NULL, NULL, META_TITLE_TEXT,
1806                 META_TITLE_LONGTEXT, true )
1807         change_safe()
1808     add_string( "meta-author", NULL, NULL, META_AUTHOR_TEXT,
1809                 META_AUTHOR_LONGTEXT, true )
1810         change_safe()
1811     add_string( "meta-artist", NULL, NULL, META_ARTIST_TEXT,
1812                 META_ARTIST_LONGTEXT, true )
1813         change_safe()
1814     add_string( "meta-genre", NULL, NULL, META_GENRE_TEXT,
1815                 META_GENRE_LONGTEXT, true )
1816         change_safe()
1817     add_string( "meta-copyright", NULL, NULL, META_CPYR_TEXT,
1818                 META_CPYR_LONGTEXT, true )
1819         change_safe()
1820     add_string( "meta-description", NULL, NULL, META_DESCR_TEXT,
1821                 META_DESCR_LONGTEXT, true )
1822         change_safe()
1823     add_string( "meta-date", NULL, NULL, META_DATE_TEXT,
1824                 META_DATE_LONGTEXT, true )
1825         change_safe()
1826     add_string( "meta-url", NULL, NULL, META_URL_TEXT,
1827                 META_URL_LONGTEXT, true )
1828         change_safe()
1829
1830     set_section( N_( "Advanced" ), NULL )
1831
1832     add_integer( "cr-average", 40, NULL, CR_AVERAGE_TEXT,
1833                  CR_AVERAGE_LONGTEXT, true )
1834     add_integer( "clock-synchro", -1, NULL, CLOCK_SYNCHRO_TEXT,
1835                  CLOCK_SYNCHRO_LONGTEXT, true )
1836         change_integer_list( pi_clock_values, ppsz_clock_descriptions, NULL )
1837
1838     add_bool( "network-synchronisation", false, NULL, NETSYNC_TEXT,
1839               NETSYNC_LONGTEXT, true )
1840
1841     add_string( "input-record-path", NULL, NULL, INPUT_RECORD_PATH_TEXT,
1842                 INPUT_RECORD_PATH_LONGTEXT, true )
1843     add_bool( "input-record-native", true, NULL, INPUT_RECORD_NATIVE_TEXT,
1844               INPUT_RECORD_NATIVE_LONGTEXT, true )
1845
1846     add_string( "input-timeshift-path", NULL, NULL, INPUT_TIMESHIFT_PATH_TEXT,
1847                 INPUT_TIMESHIFT_PATH_LONGTEXT, true )
1848     add_integer( "input-timeshift-granularity", -1, NULL, INPUT_TIMESHIFT_GRANULARITY_TEXT,
1849                  INPUT_TIMESHIFT_GRANULARITY_LONGTEXT, true )
1850
1851 /* Decoder options */
1852     add_category_hint( N_("Decoders"), CODEC_CAT_LONGTEXT , true )
1853     add_string( "codec", NULL, NULL, CODEC_TEXT,
1854                 CODEC_LONGTEXT, true )
1855     add_string( "encoder",  NULL, NULL, ENCODER_TEXT,
1856                 ENCODER_LONGTEXT, true )
1857
1858     set_subcategory( SUBCAT_INPUT_ACCESS )
1859     add_category_hint( N_("Input"), INPUT_CAT_LONGTEXT , false )
1860     add_module( "access", "access", NULL, NULL, ACCESS_TEXT,
1861                 ACCESS_LONGTEXT, true )
1862
1863     set_subcategory( SUBCAT_INPUT_DEMUX )
1864     add_module( "demux", "demux", NULL, NULL, DEMUX_TEXT,
1865                 DEMUX_LONGTEXT, true )
1866     set_subcategory( SUBCAT_INPUT_VCODEC )
1867     set_subcategory( SUBCAT_INPUT_ACODEC )
1868     set_subcategory( SUBCAT_INPUT_SCODEC )
1869     add_bool( "prefer-system-codecs", false, NULL, SYSTEM_CODEC_TEXT,
1870                                 SYSTEM_CODEC_LONGTEXT, false )
1871
1872     set_subcategory( SUBCAT_INPUT_STREAM_FILTER )
1873     add_module_list_cat( "stream-filter", SUBCAT_INPUT_STREAM_FILTER, NULL, NULL,
1874                 STREAM_FILTER_TEXT, STREAM_FILTER_LONGTEXT, false )
1875
1876
1877 /* Stream output options */
1878     set_category( CAT_SOUT )
1879     set_subcategory( SUBCAT_SOUT_GENERAL )
1880     add_category_hint( N_("Stream output"), SOUT_CAT_LONGTEXT , true )
1881
1882     add_string( "sout", NULL, NULL, SOUT_TEXT, SOUT_LONGTEXT, true )
1883     add_bool( "sout-display", false, NULL, SOUT_DISPLAY_TEXT,
1884                                 SOUT_DISPLAY_LONGTEXT, true )
1885     add_bool( "sout-keep", false, NULL, SOUT_KEEP_TEXT,
1886                                 SOUT_KEEP_LONGTEXT, true )
1887     add_bool( "sout-all", 0, NULL, SOUT_ALL_TEXT,
1888                                 SOUT_ALL_LONGTEXT, true )
1889     add_bool( "sout-audio", 1, NULL, SOUT_AUDIO_TEXT,
1890                                 SOUT_AUDIO_LONGTEXT, true )
1891     add_bool( "sout-video", 1, NULL, SOUT_VIDEO_TEXT,
1892                                 SOUT_VIDEO_LONGTEXT, true )
1893     add_bool( "sout-spu", 1, NULL, SOUT_SPU_TEXT,
1894                                 SOUT_SPU_LONGTEXT, true )
1895     add_integer( "sout-mux-caching", 1500, NULL, SOUT_MUX_CACHING_TEXT,
1896                                 SOUT_MUX_CACHING_LONGTEXT, true )
1897
1898     set_section( N_("VLM"), NULL )
1899     add_string( "vlm-conf", NULL, NULL, VLM_CONF_TEXT,
1900                     VLM_CONF_LONGTEXT, true )
1901
1902
1903
1904     set_subcategory( SUBCAT_SOUT_STREAM )
1905     set_subcategory( SUBCAT_SOUT_MUX )
1906     add_module( "mux", "sout mux", NULL, NULL, MUX_TEXT,
1907                                 MUX_LONGTEXT, true )
1908     set_subcategory( SUBCAT_SOUT_ACO )
1909     add_module( "access_output", "sout access", NULL, NULL,
1910                 ACCESS_OUTPUT_TEXT, ACCESS_OUTPUT_LONGTEXT, true )
1911     add_integer( "ttl", -1, NULL, TTL_TEXT, TTL_LONGTEXT, true )
1912     add_string( "miface", NULL, NULL, MIFACE_TEXT, MIFACE_LONGTEXT, true )
1913     add_string( "miface-addr", NULL, NULL, MIFACE_ADDR_TEXT, MIFACE_ADDR_LONGTEXT, true )
1914     add_integer( "dscp", 0, NULL, DSCP_TEXT, DSCP_LONGTEXT, true )
1915
1916     set_subcategory( SUBCAT_SOUT_PACKETIZER )
1917     add_module( "packetizer","packetizer", NULL, NULL,
1918                 PACKETIZER_TEXT, PACKETIZER_LONGTEXT, true )
1919
1920     set_subcategory( SUBCAT_SOUT_SAP )
1921     add_obsolete_bool( "sap-flow-control" )
1922     add_integer( "sap-interval", 5, NULL, ANN_SAPINTV_TEXT,
1923                                ANN_SAPINTV_LONGTEXT, true )
1924
1925     set_subcategory( SUBCAT_SOUT_VOD )
1926
1927 /* CPU options */
1928     set_category( CAT_ADVANCED )
1929     set_subcategory( SUBCAT_ADVANCED_CPU )
1930     add_category_hint( N_("CPU"), CPU_CAT_LONGTEXT, true )
1931     add_bool( "fpu", 1, NULL, FPU_TEXT, FPU_LONGTEXT, true )
1932         change_need_restart ()
1933 #if defined( __i386__ ) || defined( __x86_64__ )
1934     add_bool( "mmx", 1, NULL, MMX_TEXT, MMX_LONGTEXT, true )
1935         change_need_restart ()
1936     add_bool( "3dn", 1, NULL, THREE_DN_TEXT, THREE_DN_LONGTEXT, true )
1937         change_need_restart ()
1938     add_bool( "mmxext", 1, NULL, MMXEXT_TEXT, MMXEXT_LONGTEXT, true )
1939         change_need_restart ()
1940     add_bool( "sse", 1, NULL, SSE_TEXT, SSE_LONGTEXT, true )
1941         change_need_restart ()
1942     add_bool( "sse2", 1, NULL, SSE2_TEXT, SSE2_LONGTEXT, true )
1943         change_need_restart ()
1944     add_bool( "sse3", 1, NULL, SSE3_TEXT, SSE3_LONGTEXT, true )
1945         change_need_restart ()
1946 #endif
1947 #if defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc64__ )
1948     add_bool( "altivec", 1, NULL, ALTIVEC_TEXT, ALTIVEC_LONGTEXT, true )
1949         change_need_restart ()
1950 #endif
1951
1952 /* Misc options */
1953     set_subcategory( SUBCAT_ADVANCED_MISC )
1954     set_section( N_("Special modules"), NULL )
1955     add_category_hint( N_("Miscellaneous"), MISC_CAT_LONGTEXT, true )
1956     add_module( "memcpy", "memcpy", NULL, NULL, MEMCPY_TEXT,
1957                 MEMCPY_LONGTEXT, true )
1958         change_need_restart ()
1959
1960     set_section( N_("Plugins" ), NULL )
1961     add_bool( "plugins-cache", true, NULL, PLUGINS_CACHE_TEXT,
1962               PLUGINS_CACHE_LONGTEXT, true )
1963         change_need_restart ()
1964     add_directory( "plugin-path", NULL, NULL, PLUGIN_PATH_TEXT,
1965                    PLUGIN_PATH_LONGTEXT, true )
1966         change_need_restart ()
1967
1968     set_section( N_("Performance options"), NULL )
1969     add_obsolete_bool( "minimize-threads" )
1970
1971     add_obsolete_bool( "use-stream-immediate" )
1972
1973     add_obsolete_bool( "auto-adjust-pts-delay" )
1974
1975 #if !defined(__APPLE__) && !defined(SYS_BEOS) && defined(LIBVLC_USE_PTHREAD)
1976     add_bool( "rt-priority", false, NULL, RT_PRIORITY_TEXT,
1977               RT_PRIORITY_LONGTEXT, true )
1978         change_need_restart ()
1979 #endif
1980
1981 #if !defined(SYS_BEOS) && defined(LIBVLC_USE_PTHREAD)
1982     add_integer( "rt-offset", 0, NULL, RT_OFFSET_TEXT,
1983                  RT_OFFSET_LONGTEXT, true )
1984         change_need_restart ()
1985 #endif
1986
1987 #if defined(HAVE_DBUS)
1988     add_bool( "inhibit", 1, NULL, INHIBIT_TEXT,
1989               INHIBIT_LONGTEXT, true )
1990 #endif
1991
1992 #if defined(WIN32) || defined(HAVE_DBUS)
1993     add_bool( "one-instance", 0, NULL, ONEINSTANCE_TEXT,
1994               ONEINSTANCE_LONGTEXT, true )
1995     add_bool( "started-from-file", 0, NULL, STARTEDFROMFILE_TEXT,
1996               STARTEDFROMFILE_LONGTEXT, true )
1997         change_internal ()
1998         change_unsaveable ()
1999     add_bool( "one-instance-when-started-from-file", 1, NULL,
2000               ONEINSTANCEWHENSTARTEDFROMFILE_TEXT,
2001               ONEINSTANCEWHENSTARTEDFROMFILE_LONGTEXT, true )
2002     add_bool( "playlist-enqueue", 0, NULL, PLAYLISTENQUEUE_TEXT,
2003               PLAYLISTENQUEUE_LONGTEXT, true )
2004         change_unsaveable ()
2005 #endif
2006
2007 #if defined(WIN32)
2008     add_bool( "high-priority", 0, NULL, HPRIORITY_TEXT,
2009               HPRIORITY_LONGTEXT, false )
2010         change_need_restart ()
2011 #endif
2012
2013 /* Playlist options */
2014     set_category( CAT_PLAYLIST )
2015     set_subcategory( SUBCAT_PLAYLIST_GENERAL )
2016     add_category_hint( N_("Playlist"), PLAYLIST_CAT_LONGTEXT , false )
2017     add_bool( "random", 0, NULL, RANDOM_TEXT, RANDOM_LONGTEXT, false )
2018         change_short('Z')
2019         change_safe()
2020     add_bool( "loop", 0, NULL, LOOP_TEXT, LOOP_LONGTEXT, false )
2021         change_short('L')
2022         change_safe()
2023     add_bool( "repeat", 0, NULL, REPEAT_TEXT, REPEAT_LONGTEXT, false )
2024         change_short('R')
2025         change_safe()
2026     add_bool( "play-and-exit", 0, NULL, PAE_TEXT, PAE_LONGTEXT, false )
2027     add_bool( "play-and-stop", 0, NULL, PAS_TEXT, PAS_LONGTEXT, false )
2028         change_safe()
2029     add_bool( "play-and-pause", 0, NULL, PAP_TEXT, PAP_LONGTEXT, true )
2030         change_safe()
2031     add_bool( "media-library", 1, NULL, ML_TEXT, ML_LONGTEXT, false )
2032     add_bool( "playlist-tree", 0, NULL, PLTREE_TEXT, PLTREE_LONGTEXT, false )
2033
2034     add_string( "open", "", NULL, OPEN_TEXT, OPEN_LONGTEXT, false )
2035         change_need_restart ()
2036
2037     add_bool( "auto-preparse", true, NULL, PREPARSE_TEXT,
2038               PREPARSE_LONGTEXT, false )
2039
2040     add_integer( "album-art", ALBUM_ART_WHEN_ASKED, NULL, ALBUM_ART_TEXT,
2041                  ALBUM_ART_LONGTEXT, false )
2042         change_integer_list( pi_albumart_values,
2043                              ppsz_albumart_descriptions, 0 )
2044
2045     set_subcategory( SUBCAT_PLAYLIST_SD )
2046     add_module_list_cat( "services-discovery", SUBCAT_PLAYLIST_SD, NULL,
2047                           NULL, SD_TEXT, SD_LONGTEXT, false )
2048         change_short('S')
2049         change_need_restart ()
2050
2051 /* Interface options */
2052     set_category( CAT_INTERFACE )
2053     set_subcategory( SUBCAT_INTERFACE_GENERAL )
2054     add_integer( "verbose", 0, NULL, VERBOSE_TEXT, VERBOSE_LONGTEXT,
2055                  false )
2056         change_short('v')
2057     add_string( "verbose-objects", 0, NULL, VERBOSE_OBJECTS_TEXT, VERBOSE_OBJECTS_LONGTEXT,
2058                  false )
2059     add_bool( "quiet", 0, NULL, QUIET_TEXT, QUIET_LONGTEXT, true )
2060         change_short('q')
2061
2062 #if !defined(WIN32)
2063     add_bool( "daemon", 0, NULL, DAEMON_TEXT, DAEMON_LONGTEXT, true )
2064         change_short('d')
2065         change_need_restart ()
2066
2067     add_string( "pidfile", NULL, NULL, PIDFILE_TEXT, PIDFILE_LONGTEXT,
2068                                        false )
2069         change_need_restart ()
2070 #endif
2071
2072     add_bool( "file-logging", false, NULL, FILE_LOG_TEXT, FILE_LOG_LONGTEXT,
2073               true )
2074         change_need_restart ()
2075 #ifdef HAVE_SYSLOG_H
2076     add_bool ( "syslog", false, NULL, SYSLOG_TEXT, SYSLOG_LONGTEXT,
2077                true )
2078         change_need_restart ()
2079 #endif
2080
2081 #if defined (WIN32) || defined (__APPLE__)
2082     add_string( "language", "auto", NULL, LANGUAGE_TEXT, LANGUAGE_LONGTEXT,
2083                 false )
2084         change_string_list( ppsz_language, ppsz_language_text, 0 )
2085         change_need_restart ()
2086 #endif
2087
2088     add_bool( "color", true, NULL, COLOR_TEXT, COLOR_LONGTEXT, true )
2089     add_bool( "advanced", false, NULL, ADVANCED_TEXT, ADVANCED_LONGTEXT,
2090                     false )
2091         change_need_restart ()
2092     add_bool( "interact", true, NULL, INTERACTION_TEXT,
2093               INTERACTION_LONGTEXT, false )
2094
2095     add_obsolete_bool( "show-intf" );
2096
2097     add_bool ( "stats", true, NULL, STATS_TEXT, STATS_LONGTEXT, true )
2098         change_need_restart ()
2099
2100     set_subcategory( SUBCAT_INTERFACE_MAIN )
2101     add_module_cat( "intf", SUBCAT_INTERFACE_MAIN, NULL, NULL, INTF_TEXT,
2102                 INTF_LONGTEXT, false )
2103         change_short('I')
2104         change_need_restart ()
2105     add_module_list_cat( "extraintf", SUBCAT_INTERFACE_MAIN,
2106                          NULL, NULL, EXTRAINTF_TEXT,
2107                          EXTRAINTF_LONGTEXT, false )
2108         change_need_restart ()
2109
2110
2111     set_subcategory( SUBCAT_INTERFACE_CONTROL )
2112     add_module_list_cat( "control", SUBCAT_INTERFACE_CONTROL, NULL, NULL,
2113                          CONTROL_TEXT, CONTROL_LONGTEXT, false )
2114         change_need_restart ()
2115
2116 /* Hotkey options*/
2117     set_subcategory( SUBCAT_INTERFACE_HOTKEYS )
2118     add_category_hint( N_("Hot keys"), HOTKEY_CAT_LONGTEXT , false )
2119
2120 #if defined(__APPLE__)
2121 /* Don't use the following combo's */
2122
2123 /*  copy                          KEY_MODIFIER_COMMAND|'c'
2124  *  cut                           KEY_MODIFIER_COMMAND|'x'
2125  *  paste                         KEY_MODIFIER_COMMAND|'v'
2126  *  select all                    KEY_MODIFIER_COMMAND|'a'
2127  *  preferences                   KEY_MODIFIER_COMMAND|','
2128  *  hide vlc                      KEY_MODIFIER_COMMAND|'h'
2129  *  hide other                    KEY_MODIFIER_COMMAND|KEY_MODIFIER_ALT|'h'
2130  *  open file                     KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'o'
2131  *  open                          KEY_MODIFIER_COMMAND|'o'
2132  *  open disk                     KEY_MODIFIER_COMMAND|'d'
2133  *  open network                  KEY_MODIFIER_COMMAND|'n'
2134  *  open capture                  KEY_MODIFIER_COMMAND|'r'
2135  *  save playlist                 KEY_MODIFIER_COMMAND|'s'
2136  *  playlist repeat all           KEY_MODIFIER_COMMAND|'l'
2137  *  playlist repeat               KEY_MODIFIER_COMMAND|'r'
2138  *  video fit to screen           KEY_MODIFIER_COMMAND|'3'
2139  *  minimize window               KEY_MODIFIER_COMMAND|'m'
2140  *  close window                  KEY_MODIFIER_COMMAND|'w'
2141  *  streaming wizard              KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'w'
2142  *  show controller               KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'c'
2143  *  show playlist                 KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'p'
2144  *  show info                     KEY_MODIFIER_COMMAND|'i'
2145  *  show extended controls        KEY_MODIFIER_COMMAND|'e'
2146  *  show equaliser                KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'e'
2147  *  show bookmarks                KEY_MODIFIER_COMMAND|'b'
2148  *  show messages                 KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'m'
2149  *  show errors and warnings      KEY_MODIFIER_COMMAND|KEY_MODIFIER_CTRL|'m'
2150  *  help                          KEY_MODIFIER_COMMAND|'?'
2151  *  readme / FAQ                  KEY_MODIFIER_COMMAND|KEY_MODIFIER_ALT|'?'
2152  */
2153 #   define KEY_TOGGLE_FULLSCREEN  KEY_MODIFIER_COMMAND|'f'
2154 #   define KEY_LEAVE_FULLSCREEN   KEY_ESC
2155 #   define KEY_PLAY_PAUSE         KEY_MODIFIER_COMMAND|'p'
2156 #   define KEY_PAUSE              KEY_UNSET
2157 #   define KEY_PLAY               KEY_UNSET
2158 #   define KEY_FASTER             KEY_MODIFIER_COMMAND|'='
2159 #   define KEY_SLOWER             KEY_MODIFIER_COMMAND|'-'
2160 #   define KEY_RATE_NORMAL        KEY_UNSET
2161 #   define KEY_RATE_FASTER_FINE   KEY_UNSET
2162 #   define KEY_RATE_SLOWER_FINE   KEY_UNSET
2163 #   define KEY_NEXT               KEY_MODIFIER_COMMAND|KEY_RIGHT
2164 #   define KEY_PREV               KEY_MODIFIER_COMMAND|KEY_LEFT
2165 #   define KEY_STOP               KEY_MODIFIER_COMMAND|'.'
2166 #   define KEY_POSITION           't'
2167 #   define KEY_JUMP_MEXTRASHORT   KEY_MODIFIER_COMMAND|KEY_MODIFIER_CTRL|KEY_LEFT
2168 #   define KEY_JUMP_PEXTRASHORT   KEY_MODIFIER_COMMAND|KEY_MODIFIER_CTRL|KEY_RIGHT
2169 #   define KEY_JUMP_MSHORT        KEY_MODIFIER_COMMAND|KEY_MODIFIER_ALT|KEY_LEFT
2170 #   define KEY_JUMP_PSHORT        KEY_MODIFIER_COMMAND|KEY_MODIFIER_ALT|KEY_RIGHT
2171 #   define KEY_JUMP_MMEDIUM       KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|KEY_LEFT
2172 #   define KEY_JUMP_PMEDIUM       KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|KEY_RIGHT
2173 #   define KEY_JUMP_MLONG         KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|KEY_MODIFIER_ALT|KEY_LEFT
2174 #   define KEY_JUMP_PLONG         KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|KEY_MODIFIER_ALT|KEY_RIGHT
2175 #   define KEY_FRAME_NEXT         'e'
2176 #   define KEY_NAV_ACTIVATE       KEY_ENTER
2177 #   define KEY_NAV_UP             KEY_UP
2178 #   define KEY_NAV_DOWN           KEY_DOWN
2179 #   define KEY_NAV_LEFT           KEY_LEFT
2180 #   define KEY_NAV_RIGHT          KEY_RIGHT
2181 #   define KEY_QUIT               KEY_MODIFIER_COMMAND|'q'
2182 #   define KEY_VOL_UP             KEY_MODIFIER_COMMAND|KEY_UP
2183 #   define KEY_VOL_DOWN           KEY_MODIFIER_COMMAND|KEY_DOWN
2184 #   define KEY_VOL_MUTE           KEY_MODIFIER_COMMAND|KEY_MODIFIER_ALT|KEY_DOWN
2185 #   define KEY_SUBDELAY_UP        'j'
2186 #   define KEY_SUBDELAY_DOWN      'h'
2187 #   define KEY_AUDIODELAY_UP      'g'
2188 #   define KEY_AUDIODELAY_DOWN    'f'
2189 #   define KEY_AUDIO_TRACK        'l'
2190 #   define KEY_SUBTITLE_TRACK     's'
2191 #   define KEY_ASPECT_RATIO       'a'
2192 #   define KEY_CROP               'c'
2193 #   define KEY_TOGGLE_AUTOSCALE   'o'
2194 #   define KEY_SCALE_UP           KEY_MODIFIER_ALT|'o'
2195 #   define KEY_SCALE_DOWN         KEY_MODIFIER_SHIFT|KEY_MODIFIER_ALT|'o'
2196 #   define KEY_DEINTERLACE        'd'
2197 #   define KEY_INTF_SHOW          'i'
2198 #   define KEY_INTF_HIDE          KEY_MODIFIER_SHIFT|'i'
2199 #   define KEY_DISC_MENU          KEY_MODIFIER_CTRL|'m'
2200 #   define KEY_TITLE_PREV         KEY_MODIFIER_CTRL|'p'
2201 #   define KEY_TITLE_NEXT         KEY_MODIFIER_CTRL|'n'
2202 #   define KEY_CHAPTER_PREV       KEY_MODIFIER_CTRL|'u'
2203 #   define KEY_CHAPTER_NEXT       KEY_MODIFIER_CTRL|'d'
2204 #   define KEY_SNAPSHOT           KEY_MODIFIER_COMMAND|KEY_MODIFIER_ALT|'s'
2205 #   define KEY_ZOOM               'z'
2206 #   define KEY_UNZOOM             KEY_MODIFIER_SHIFT|'z'
2207 #   define KEY_RANDOM             KEY_MODIFIER_COMMAND|'z'
2208 #   define KEY_LOOP               KEY_MODIFIER_SHIFT|'l'
2209
2210 #   define KEY_CROP_TOP           KEY_MODIFIER_ALT|'i'
2211 #   define KEY_UNCROP_TOP         KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'i'
2212 #   define KEY_CROP_LEFT          KEY_MODIFIER_ALT|'j'
2213 #   define KEY_UNCROP_LEFT        KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'j'
2214 #   define KEY_CROP_BOTTOM        KEY_MODIFIER_ALT|'k'
2215 #   define KEY_UNCROP_BOTTOM      KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'k'
2216 #   define KEY_CROP_RIGHT         KEY_MODIFIER_ALT|'l'
2217 #   define KEY_UNCROP_RIGHT       KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'l'
2218
2219 /* the macosx-interface already has bindings */
2220 #   define KEY_ZOOM_QUARTER       KEY_UNSET
2221 #   define KEY_ZOOM_HALF          KEY_MODIFIER_COMMAND|'0'
2222 #   define KEY_ZOOM_ORIGINAL      KEY_MODIFIER_COMMAND|'1'
2223 #   define KEY_ZOOM_DOUBLE        KEY_MODIFIER_COMMAND|'2'
2224
2225 #   define KEY_SET_BOOKMARK1      KEY_MODIFIER_COMMAND|KEY_F1
2226 #   define KEY_SET_BOOKMARK2      KEY_MODIFIER_COMMAND|KEY_F2
2227 #   define KEY_SET_BOOKMARK3      KEY_MODIFIER_COMMAND|KEY_F3
2228 #   define KEY_SET_BOOKMARK4      KEY_MODIFIER_COMMAND|KEY_F4
2229 #   define KEY_SET_BOOKMARK5      KEY_MODIFIER_COMMAND|KEY_F5
2230 #   define KEY_SET_BOOKMARK6      KEY_MODIFIER_COMMAND|KEY_F6
2231 #   define KEY_SET_BOOKMARK7      KEY_MODIFIER_COMMAND|KEY_F7
2232 #   define KEY_SET_BOOKMARK8      KEY_MODIFIER_COMMAND|KEY_F8
2233 #   define KEY_SET_BOOKMARK9      KEY_UNSET
2234 #   define KEY_SET_BOOKMARK10     KEY_UNSET
2235 #   define KEY_PLAY_BOOKMARK1     KEY_F1
2236 #   define KEY_PLAY_BOOKMARK2     KEY_F2
2237 #   define KEY_PLAY_BOOKMARK3     KEY_F3
2238 #   define KEY_PLAY_BOOKMARK4     KEY_F4
2239 #   define KEY_PLAY_BOOKMARK5     KEY_F5
2240 #   define KEY_PLAY_BOOKMARK6     KEY_F6
2241 #   define KEY_PLAY_BOOKMARK7     KEY_F7
2242 #   define KEY_PLAY_BOOKMARK8     KEY_F8
2243 #   define KEY_PLAY_BOOKMARK9     KEY_UNSET
2244 #   define KEY_PLAY_BOOKMARK10    KEY_UNSET
2245 #   define KEY_HISTORY_BACK       KEY_MODIFIER_COMMAND|'['
2246 #   define KEY_HISTORY_FORWARD    KEY_MODIFIER_COMMAND|']'
2247 #   define KEY_RECORD             KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'r'
2248 #   define KEY_DUMP               KEY_MODIFIER_COMMAND|KEY_MODIFIER_SHIFT|'d'
2249 #   define KEY_WALLPAPER          KEY_MODIFIER_COMMAND|'w'
2250
2251 #   define KEY_MENU_ON            KEY_MODIFIER_ALT|'m'
2252 #   define KEY_MENU_OFF           KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'m'
2253 #   define KEY_MENU_RIGHT         KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_RIGHT
2254 #   define KEY_MENU_LEFT          KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_LEFT
2255 #   define KEY_MENU_UP            KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_UP
2256 #   define KEY_MENU_DOWN          KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_DOWN
2257 #   define KEY_MENU_SELECT        KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_ENTER
2258 #   define KEY_AUDIODEVICE_CYCLE  KEY_MODIFIER_SHIFT|'a'
2259
2260 #else /* Non Mac OS X */
2261     /*
2262        You should try to avoid Ctrl + letter key, because they are usually for
2263        dialogs showing and interface related stuffs.
2264        It would be nice (less important than previous rule) to try to avoid
2265        alt + letter key, because they are usually for menu accelerators and you
2266        don't know how the translator is going to do it.
2267      */
2268 #   define KEY_TOGGLE_FULLSCREEN  'f'
2269 #   define KEY_LEAVE_FULLSCREEN   KEY_ESC
2270 #   define KEY_PLAY_PAUSE         KEY_SPACE
2271 #   define KEY_PAUSE              KEY_UNSET
2272 #   define KEY_PLAY               KEY_UNSET
2273 #   define KEY_FASTER             '+'
2274 #   define KEY_SLOWER             '-'
2275 #   define KEY_RATE_NORMAL        '='
2276 #   define KEY_RATE_FASTER_FINE   ']'
2277 #   define KEY_RATE_SLOWER_FINE   '['
2278 #   define KEY_NEXT               'n'
2279 #   define KEY_PREV               'p'
2280 #   define KEY_STOP               's'
2281 #   define KEY_POSITION           't'
2282 #   define KEY_JUMP_MEXTRASHORT   KEY_MODIFIER_SHIFT|KEY_LEFT
2283 #   define KEY_JUMP_PEXTRASHORT   KEY_MODIFIER_SHIFT|KEY_RIGHT
2284 #   define KEY_JUMP_MSHORT        KEY_MODIFIER_ALT|KEY_LEFT
2285 #   define KEY_JUMP_PSHORT        KEY_MODIFIER_ALT|KEY_RIGHT
2286 #   define KEY_JUMP_MMEDIUM       KEY_MODIFIER_CTRL|KEY_LEFT
2287 #   define KEY_JUMP_PMEDIUM       KEY_MODIFIER_CTRL|KEY_RIGHT
2288 #   define KEY_JUMP_MLONG         KEY_MODIFIER_CTRL|KEY_MODIFIER_ALT|KEY_LEFT
2289 #   define KEY_JUMP_PLONG         KEY_MODIFIER_CTRL|KEY_MODIFIER_ALT|KEY_RIGHT
2290 #   define KEY_FRAME_NEXT         'e'
2291 #   define KEY_NAV_ACTIVATE       KEY_ENTER
2292 #   define KEY_NAV_UP             KEY_UP
2293 #   define KEY_NAV_DOWN           KEY_DOWN
2294 #   define KEY_NAV_LEFT           KEY_LEFT
2295 #   define KEY_NAV_RIGHT          KEY_RIGHT
2296 #   define KEY_QUIT               KEY_MODIFIER_CTRL|'q'
2297 #   define KEY_VOL_UP             KEY_MODIFIER_CTRL|KEY_UP
2298 #   define KEY_VOL_DOWN           KEY_MODIFIER_CTRL|KEY_DOWN
2299 #   define KEY_VOL_MUTE           'm'
2300 #   define KEY_SUBDELAY_UP        'h'
2301 #   define KEY_SUBDELAY_DOWN      'g'
2302 #   define KEY_AUDIODELAY_UP      'k'
2303 #   define KEY_AUDIODELAY_DOWN    'j'
2304 #   define KEY_RANDOM             'r'
2305 #   define KEY_LOOP               'l'
2306
2307 #   define KEY_AUDIO_TRACK        'b'
2308 #   define KEY_SUBTITLE_TRACK     'v'
2309 #   define KEY_ASPECT_RATIO       'a'
2310 #   define KEY_CROP               'c'
2311 #   define KEY_TOGGLE_AUTOSCALE   'o'
2312 #   define KEY_SCALE_UP           KEY_MODIFIER_ALT|'o'
2313 #   define KEY_SCALE_DOWN         KEY_MODIFIER_SHIFT|KEY_MODIFIER_ALT|'o'
2314 #   define KEY_DEINTERLACE        'd'
2315 #   define KEY_INTF_SHOW          'i'
2316 #   define KEY_INTF_HIDE          KEY_MODIFIER_SHIFT|'i'
2317 #   define KEY_DISC_MENU          KEY_MODIFIER_SHIFT|'m'
2318 #   define KEY_TITLE_PREV         KEY_MODIFIER_SHIFT|'o'
2319 #   define KEY_TITLE_NEXT         KEY_MODIFIER_SHIFT|'b'
2320 #   define KEY_CHAPTER_PREV       KEY_MODIFIER_SHIFT|'p'
2321 #   define KEY_CHAPTER_NEXT       KEY_MODIFIER_SHIFT|'n'
2322 #   define KEY_SNAPSHOT           KEY_MODIFIER_SHIFT|'s'
2323
2324 #   define KEY_ZOOM               'z'
2325 #   define KEY_UNZOOM             KEY_MODIFIER_SHIFT|'z'
2326
2327 #   define KEY_AUDIODEVICE_CYCLE  KEY_MODIFIER_SHIFT|'a'
2328
2329 #   define KEY_HISTORY_BACK       KEY_MODIFIER_SHIFT|'g'
2330 #   define KEY_HISTORY_FORWARD    KEY_MODIFIER_SHIFT|'h'
2331 #   define KEY_RECORD             KEY_MODIFIER_SHIFT|'r'
2332 #   define KEY_DUMP               KEY_MODIFIER_SHIFT|'d'
2333 #   define KEY_WALLPAPER          'w'
2334
2335 /* Cropping */
2336 #   define KEY_CROP_TOP           KEY_MODIFIER_ALT|'r'
2337 #   define KEY_UNCROP_TOP         KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'r'
2338 #   define KEY_CROP_LEFT          KEY_MODIFIER_ALT|'d'
2339 #   define KEY_UNCROP_LEFT        KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'d'
2340 #   define KEY_CROP_BOTTOM        KEY_MODIFIER_ALT|'c'
2341 #   define KEY_UNCROP_BOTTOM      KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'c'
2342 #   define KEY_CROP_RIGHT         KEY_MODIFIER_ALT|'f'
2343 #   define KEY_UNCROP_RIGHT       KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'f'
2344
2345 /* Zooming */
2346 #   define KEY_ZOOM_QUARTER       KEY_MODIFIER_CTRL|'1'
2347 #   define KEY_ZOOM_HALF          KEY_MODIFIER_CTRL|'2'
2348 #   define KEY_ZOOM_ORIGINAL      KEY_MODIFIER_CTRL|'3'
2349 #   define KEY_ZOOM_DOUBLE        KEY_MODIFIER_CTRL|'4'
2350
2351 /* Bookmarks */
2352 #   define KEY_SET_BOOKMARK1      KEY_MODIFIER_CTRL|KEY_F1
2353 #   define KEY_SET_BOOKMARK2      KEY_MODIFIER_CTRL|KEY_F2
2354 #   define KEY_SET_BOOKMARK3      KEY_MODIFIER_CTRL|KEY_F3
2355 #   define KEY_SET_BOOKMARK4      KEY_MODIFIER_CTRL|KEY_F4
2356 #   define KEY_SET_BOOKMARK5      KEY_MODIFIER_CTRL|KEY_F5
2357 #   define KEY_SET_BOOKMARK6      KEY_MODIFIER_CTRL|KEY_F6
2358 #   define KEY_SET_BOOKMARK7      KEY_MODIFIER_CTRL|KEY_F7
2359 #   define KEY_SET_BOOKMARK8      KEY_MODIFIER_CTRL|KEY_F8
2360 #   define KEY_SET_BOOKMARK9      KEY_MODIFIER_CTRL|KEY_F9
2361 #   define KEY_SET_BOOKMARK10     KEY_MODIFIER_CTRL|KEY_F10
2362 #   define KEY_PLAY_BOOKMARK1     KEY_F1
2363 #   define KEY_PLAY_BOOKMARK2     KEY_F2
2364 #   define KEY_PLAY_BOOKMARK3     KEY_F3
2365 #   define KEY_PLAY_BOOKMARK4     KEY_F4
2366 #   define KEY_PLAY_BOOKMARK5     KEY_F5
2367 #   define KEY_PLAY_BOOKMARK6     KEY_F6
2368 #   define KEY_PLAY_BOOKMARK7     KEY_F7
2369 #   define KEY_PLAY_BOOKMARK8     KEY_F8
2370 #   define KEY_PLAY_BOOKMARK9     KEY_F9
2371 #   define KEY_PLAY_BOOKMARK10    KEY_F10
2372
2373 /* OSD menu */
2374 #   define KEY_MENU_ON            KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|'m'
2375 #   define KEY_MENU_OFF           KEY_MODIFIER_ALT|KEY_MODIFIER_CTRL|'m'
2376 #   define KEY_MENU_RIGHT         KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_RIGHT
2377 #   define KEY_MENU_LEFT          KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_LEFT
2378 #   define KEY_MENU_UP            KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_UP
2379 #   define KEY_MENU_DOWN          KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_DOWN
2380 #   define KEY_MENU_SELECT        KEY_MODIFIER_ALT|KEY_MODIFIER_SHIFT|KEY_ENTER
2381 #endif
2382
2383     add_key( "key-toggle-fullscreen", KEY_TOGGLE_FULLSCREEN, NULL, TOGGLE_FULLSCREEN_KEY_TEXT,
2384              TOGGLE_FULLSCREEN_KEY_LONGTEXT, false )
2385        add_deprecated_alias( "key-fullscreen" ) /*deprecated since 0.9.0 */
2386     add_key( "key-leave-fullscreen", KEY_LEAVE_FULLSCREEN, NULL, LEAVE_FULLSCREEN_KEY_TEXT,
2387              LEAVE_FULLSCREEN_KEY_LONGTEXT, false )
2388     add_key( "key-play-pause", KEY_PLAY_PAUSE, NULL, PLAY_PAUSE_KEY_TEXT,
2389              PLAY_PAUSE_KEY_LONGTEXT, false )
2390     add_key( "key-pause", KEY_PAUSE, NULL, PAUSE_KEY_TEXT,
2391              PAUSE_KEY_LONGTEXT, true )
2392     add_key( "key-play", KEY_PLAY, NULL, PLAY_KEY_TEXT,
2393              PLAY_KEY_LONGTEXT, true )
2394     add_key( "key-faster", KEY_FASTER, NULL, FASTER_KEY_TEXT,
2395              FASTER_KEY_LONGTEXT, false )
2396     add_key( "key-slower", KEY_SLOWER, NULL, SLOWER_KEY_TEXT,
2397              SLOWER_KEY_LONGTEXT, false )
2398     add_key( "key-rate-normal", KEY_RATE_NORMAL, NULL, RATE_NORMAL_KEY_TEXT,
2399              RATE_NORMAL_KEY_LONGTEXT, false )
2400     add_key( "key-rate-faster-fine", KEY_RATE_FASTER_FINE, NULL, RATE_FASTER_FINE_KEY_TEXT,
2401              RATE_FASTER_FINE_KEY_LONGTEXT, false )
2402     add_key( "key-rate-slower-fine", KEY_RATE_SLOWER_FINE, NULL, RATE_SLOWER_FINE_KEY_TEXT,
2403              RATE_SLOWER_FINE_KEY_LONGTEXT, false )
2404     add_key( "key-next", KEY_NEXT, NULL, NEXT_KEY_TEXT,
2405              NEXT_KEY_LONGTEXT, false )
2406     add_key( "key-prev", KEY_PREV, NULL, PREV_KEY_TEXT,
2407              PREV_KEY_LONGTEXT, false )
2408     add_key( "key-stop", KEY_STOP, NULL, STOP_KEY_TEXT,
2409              STOP_KEY_LONGTEXT, false )
2410     add_key( "key-position", KEY_POSITION, NULL, POSITION_KEY_TEXT,
2411              POSITION_KEY_LONGTEXT, true )
2412     add_key( "key-jump-extrashort", KEY_JUMP_MEXTRASHORT, NULL,
2413              JBEXTRASHORT_KEY_TEXT, JBEXTRASHORT_KEY_LONGTEXT, false )
2414     add_key( "key-jump+extrashort", KEY_JUMP_PEXTRASHORT, NULL,
2415              JFEXTRASHORT_KEY_TEXT, JFEXTRASHORT_KEY_LONGTEXT, false )
2416     add_key( "key-jump-short", KEY_JUMP_MSHORT, NULL, JBSHORT_KEY_TEXT,
2417              JBSHORT_KEY_LONGTEXT, false )
2418     add_key( "key-jump+short", KEY_JUMP_PSHORT, NULL, JFSHORT_KEY_TEXT,
2419              JFSHORT_KEY_LONGTEXT, false )
2420     add_key( "key-jump-medium", KEY_JUMP_MMEDIUM, NULL, JBMEDIUM_KEY_TEXT,
2421              JBMEDIUM_KEY_LONGTEXT, false )
2422     add_key( "key-jump+medium", KEY_JUMP_PMEDIUM, NULL, JFMEDIUM_KEY_TEXT,
2423              JFMEDIUM_KEY_LONGTEXT, false )
2424     add_key( "key-jump-long", KEY_JUMP_MLONG, NULL, JBLONG_KEY_TEXT,
2425              JBLONG_KEY_LONGTEXT, false )
2426     add_key( "key-jump+long", KEY_JUMP_PLONG, NULL, JFLONG_KEY_TEXT,
2427              JFLONG_KEY_LONGTEXT, false )
2428     add_key( "key-frame-next", KEY_FRAME_NEXT, NULL, FRAME_NEXT_KEY_TEXT,
2429              FRAME_NEXT_KEY_LONGTEXT, false )
2430     add_key( "key-nav-activate", KEY_NAV_ACTIVATE, NULL, NAV_ACTIVATE_KEY_TEXT,
2431              NAV_ACTIVATE_KEY_LONGTEXT, true )
2432     add_key( "key-nav-up", KEY_NAV_UP, NULL, NAV_UP_KEY_TEXT,
2433              NAV_UP_KEY_LONGTEXT, true )
2434     add_key( "key-nav-down", KEY_NAV_DOWN, NULL, NAV_DOWN_KEY_TEXT,
2435              NAV_DOWN_KEY_LONGTEXT, true )
2436     add_key( "key-nav-left", KEY_NAV_LEFT, NULL, NAV_LEFT_KEY_TEXT,
2437              NAV_LEFT_KEY_LONGTEXT, true )
2438     add_key( "key-nav-right", KEY_NAV_RIGHT, NULL, NAV_RIGHT_KEY_TEXT,
2439              NAV_RIGHT_KEY_LONGTEXT, true )
2440
2441     add_key( "key-disc-menu", KEY_DISC_MENU, NULL, DISC_MENU_TEXT,
2442              DISC_MENU_LONGTEXT, true )
2443     add_key( "key-title-prev", KEY_TITLE_PREV, NULL, TITLE_PREV_TEXT,
2444              TITLE_PREV_LONGTEXT, true )
2445     add_key( "key-title-next", KEY_TITLE_NEXT, NULL, TITLE_NEXT_TEXT,
2446              TITLE_NEXT_LONGTEXT, true )
2447     add_key( "key-chapter-prev", KEY_CHAPTER_PREV, NULL, CHAPTER_PREV_TEXT,
2448              CHAPTER_PREV_LONGTEXT, true )
2449     add_key( "key-chapter-next", KEY_CHAPTER_NEXT, NULL, CHAPTER_NEXT_TEXT,
2450              CHAPTER_NEXT_LONGTEXT, true )
2451     add_key( "key-quit", KEY_QUIT, NULL, QUIT_KEY_TEXT,
2452              QUIT_KEY_LONGTEXT, false )
2453     add_key( "key-vol-up", KEY_VOL_UP, NULL, VOL_UP_KEY_TEXT,
2454              VOL_UP_KEY_LONGTEXT, false )
2455     add_key( "key-vol-down", KEY_VOL_DOWN, NULL, VOL_DOWN_KEY_TEXT,
2456              VOL_DOWN_KEY_LONGTEXT, false )
2457     add_key( "key-vol-mute", KEY_VOL_MUTE, NULL, VOL_MUTE_KEY_TEXT,
2458              VOL_MUTE_KEY_LONGTEXT, false )
2459     add_key( "key-subdelay-up", KEY_SUBDELAY_UP, NULL,
2460              SUBDELAY_UP_KEY_TEXT, SUBDELAY_UP_KEY_LONGTEXT, true )
2461     add_key( "key-subdelay-down", KEY_SUBDELAY_DOWN, NULL,
2462              SUBDELAY_DOWN_KEY_TEXT, SUBDELAY_DOWN_KEY_LONGTEXT, true )
2463     add_key( "key-audiodelay-up", KEY_AUDIODELAY_UP, NULL,
2464              AUDIODELAY_UP_KEY_TEXT, AUDIODELAY_UP_KEY_LONGTEXT, true )
2465     add_key( "key-audiodelay-down", KEY_AUDIODELAY_DOWN, NULL,
2466              AUDIODELAY_DOWN_KEY_TEXT, AUDIODELAY_DOWN_KEY_LONGTEXT, true )
2467     add_key( "key-audio-track", KEY_AUDIO_TRACK, NULL, AUDIO_TRACK_KEY_TEXT,
2468              AUDIO_TRACK_KEY_LONGTEXT, false )
2469     add_key( "key-audiodevice-cycle", KEY_AUDIODEVICE_CYCLE, NULL, AUDI_DEVICE_CYCLE_KEY_TEXT,
2470              AUDI_DEVICE_CYCLE_KEY_LONGTEXT, false )
2471     add_key( "key-subtitle-track", KEY_SUBTITLE_TRACK, NULL,
2472              SUBTITLE_TRACK_KEY_TEXT, SUBTITLE_TRACK_KEY_LONGTEXT, false )
2473     add_key( "key-aspect-ratio", KEY_ASPECT_RATIO, NULL,
2474              ASPECT_RATIO_KEY_TEXT, ASPECT_RATIO_KEY_LONGTEXT, false )
2475     add_key( "key-crop", KEY_CROP, NULL,
2476              CROP_KEY_TEXT, CROP_KEY_LONGTEXT, false )
2477     add_key( "key-toggle-autoscale", KEY_TOGGLE_AUTOSCALE, NULL,
2478              TOGGLE_AUTOSCALE_KEY_TEXT, TOGGLE_AUTOSCALE_KEY_LONGTEXT, false )
2479     add_key( "key-incr-scalefactor", KEY_SCALE_UP, NULL,
2480              SCALE_UP_KEY_TEXT, SCALE_UP_KEY_LONGTEXT, false )
2481     add_key( "key-decr-scalefactor", KEY_SCALE_DOWN, NULL,
2482              SCALE_DOWN_KEY_TEXT, SCALE_DOWN_KEY_LONGTEXT, false )
2483     add_key( "key-deinterlace", KEY_DEINTERLACE, NULL,
2484              DEINTERLACE_KEY_TEXT, DEINTERLACE_KEY_LONGTEXT, false )
2485     add_key( "key-intf-show", KEY_INTF_SHOW, NULL,
2486              INTF_SHOW_KEY_TEXT, INTF_SHOW_KEY_LONGTEXT, true )
2487     add_key( "key-intf-hide", KEY_INTF_HIDE, NULL,
2488              INTF_HIDE_KEY_TEXT, INTF_HIDE_KEY_LONGTEXT, true )
2489     add_key( "key-snapshot", KEY_SNAPSHOT, NULL,
2490         SNAP_KEY_TEXT, SNAP_KEY_LONGTEXT, true )
2491     add_key( "key-history-back", KEY_HISTORY_BACK, NULL, HISTORY_BACK_TEXT,
2492              HISTORY_BACK_LONGTEXT, true )
2493     add_key( "key-history-forward", KEY_HISTORY_FORWARD, NULL,
2494              HISTORY_FORWARD_TEXT, HISTORY_FORWARD_LONGTEXT, true )
2495     add_key( "key-record", KEY_RECORD, NULL,
2496              RECORD_KEY_TEXT, RECORD_KEY_LONGTEXT, true )
2497     add_key( "key-dump", KEY_DUMP, NULL,
2498              DUMP_KEY_TEXT, DUMP_KEY_LONGTEXT, true )
2499     add_key( "key-zoom", KEY_ZOOM, NULL,
2500              ZOOM_KEY_TEXT, ZOOM_KEY_LONGTEXT, true )
2501     add_key( "key-unzoom", KEY_UNZOOM, NULL,
2502              UNZOOM_KEY_TEXT, UNZOOM_KEY_LONGTEXT, true )
2503     add_key( "key-wallpaper", KEY_WALLPAPER, NULL, WALLPAPER_KEY_TEXT,
2504              WALLPAPER_KEY_LONGTEXT, false )
2505
2506     add_key( "key-menu-on", KEY_MENU_ON, NULL,
2507              MENU_ON_KEY_TEXT, MENU_ON_KEY_LONGTEXT, true )
2508     add_key( "key-menu-off", KEY_MENU_OFF, NULL,
2509              MENU_OFF_KEY_TEXT, MENU_OFF_KEY_LONGTEXT, true )
2510     add_key( "key-menu-right", KEY_MENU_RIGHT, NULL,
2511              MENU_RIGHT_KEY_TEXT, MENU_RIGHT_KEY_LONGTEXT, true )
2512     add_key( "key-menu-left", KEY_MENU_LEFT, NULL,
2513              MENU_LEFT_KEY_TEXT, MENU_LEFT_KEY_LONGTEXT, true )
2514     add_key( "key-menu-up", KEY_MENU_UP, NULL,
2515              MENU_UP_KEY_TEXT, MENU_UP_KEY_LONGTEXT, true )
2516     add_key( "key-menu-down", KEY_MENU_DOWN, NULL,
2517              MENU_DOWN_KEY_TEXT, MENU_DOWN_KEY_LONGTEXT, true )
2518     add_key( "key-menu-select", KEY_MENU_SELECT, NULL,
2519              MENU_SELECT_KEY_TEXT, MENU_SELECT_KEY_LONGTEXT, true )
2520
2521     add_key( "key-crop-top", KEY_CROP_TOP, NULL,
2522              CROP_TOP_KEY_TEXT, CROP_TOP_KEY_LONGTEXT, true )
2523     add_key( "key-uncrop-top", KEY_UNCROP_TOP, NULL,
2524              UNCROP_TOP_KEY_TEXT, UNCROP_TOP_KEY_LONGTEXT, true )
2525     add_key( "key-crop-left", KEY_CROP_LEFT, NULL,
2526              CROP_LEFT_KEY_TEXT, CROP_LEFT_KEY_LONGTEXT, true )
2527     add_key( "key-uncrop-left", KEY_UNCROP_LEFT, NULL,
2528              UNCROP_LEFT_KEY_TEXT, UNCROP_LEFT_KEY_LONGTEXT, true )
2529     add_key( "key-crop-bottom", KEY_CROP_BOTTOM, NULL,
2530              CROP_BOTTOM_KEY_TEXT, CROP_BOTTOM_KEY_LONGTEXT, true )
2531     add_key( "key-uncrop-bottom", KEY_UNCROP_BOTTOM, NULL,
2532              UNCROP_BOTTOM_KEY_TEXT, UNCROP_BOTTOM_KEY_LONGTEXT, true )
2533     add_key( "key-crop-right", KEY_CROP_RIGHT, NULL,
2534              CROP_RIGHT_KEY_TEXT, CROP_RIGHT_KEY_LONGTEXT, true )
2535     add_key( "key-uncrop-right", KEY_UNCROP_RIGHT, NULL,
2536              UNCROP_RIGHT_KEY_TEXT, UNCROP_RIGHT_KEY_LONGTEXT, true )
2537     add_key( "key-random", KEY_RANDOM, NULL,
2538              RANDOM_KEY_TEXT, RANDOM_KEY_LONGTEXT, false )
2539     add_key( "key-loop", KEY_LOOP, NULL,
2540              LOOP_KEY_TEXT, LOOP_KEY_LONGTEXT, false )
2541
2542     set_section ( N_("Zoom" ), NULL )
2543     add_key( "key-zoom-quarter",  KEY_ZOOM_QUARTER, NULL,
2544         ZOOM_QUARTER_KEY_TEXT,  NULL, false )
2545     add_key( "key-zoom-half",     KEY_ZOOM_HALF, NULL,
2546         ZOOM_HALF_KEY_TEXT,     NULL, false )
2547     add_key( "key-zoom-original", KEY_ZOOM_ORIGINAL, NULL,
2548         ZOOM_ORIGINAL_KEY_TEXT, NULL, false )
2549     add_key( "key-zoom-double",   KEY_ZOOM_DOUBLE, NULL,
2550         ZOOM_DOUBLE_KEY_TEXT,   NULL, false )
2551
2552     set_section ( N_("Jump sizes" ), NULL )
2553     add_integer( "extrashort-jump-size", 3, NULL, JIEXTRASHORT_TEXT,
2554                                     JIEXTRASHORT_LONGTEXT, false )
2555     add_integer( "short-jump-size", 10, NULL, JISHORT_TEXT,
2556                                     JISHORT_LONGTEXT, false )
2557     add_integer( "medium-jump-size", 60, NULL, JIMEDIUM_TEXT,
2558                                     JIMEDIUM_LONGTEXT, false )
2559     add_integer( "long-jump-size", 300, NULL, JILONG_TEXT,
2560                                     JILONG_LONGTEXT, false )
2561
2562     /* HACK so these don't get displayed */
2563     set_category( -1 )
2564     set_subcategory( -1 )
2565     add_key( "key-set-bookmark1", KEY_SET_BOOKMARK1, NULL,
2566              SET_BOOKMARK1_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2567     add_key( "key-set-bookmark2", KEY_SET_BOOKMARK2, NULL,
2568              SET_BOOKMARK2_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2569     add_key( "key-set-bookmark3", KEY_SET_BOOKMARK3, NULL,
2570              SET_BOOKMARK3_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2571     add_key( "key-set-bookmark4", KEY_SET_BOOKMARK4, NULL,
2572              SET_BOOKMARK4_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2573     add_key( "key-set-bookmark5", KEY_SET_BOOKMARK5, NULL,
2574              SET_BOOKMARK5_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2575     add_key( "key-set-bookmark6", KEY_SET_BOOKMARK6, NULL,
2576              SET_BOOKMARK6_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2577     add_key( "key-set-bookmark7", KEY_SET_BOOKMARK7, NULL,
2578              SET_BOOKMARK7_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2579     add_key( "key-set-bookmark8", KEY_SET_BOOKMARK8, NULL,
2580              SET_BOOKMARK8_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2581     add_key( "key-set-bookmark9", KEY_SET_BOOKMARK9, NULL,
2582              SET_BOOKMARK9_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2583     add_key( "key-set-bookmark10", KEY_SET_BOOKMARK10, NULL,
2584              SET_BOOKMARK10_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT, true )
2585     add_key( "key-play-bookmark1", KEY_PLAY_BOOKMARK1, NULL,
2586              PLAY_BOOKMARK1_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2587     add_key( "key-play-bookmark2", KEY_PLAY_BOOKMARK2, NULL,
2588              PLAY_BOOKMARK2_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2589     add_key( "key-play-bookmark3", KEY_PLAY_BOOKMARK3, NULL,
2590              PLAY_BOOKMARK3_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2591     add_key( "key-play-bookmark4", KEY_PLAY_BOOKMARK4, NULL,
2592              PLAY_BOOKMARK4_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2593     add_key( "key-play-bookmark5", KEY_PLAY_BOOKMARK5, NULL,
2594              PLAY_BOOKMARK5_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2595     add_key( "key-play-bookmark6", KEY_PLAY_BOOKMARK6, NULL,
2596              PLAY_BOOKMARK6_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2597     add_key( "key-play-bookmark7", KEY_PLAY_BOOKMARK7, NULL,
2598              PLAY_BOOKMARK7_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2599     add_key( "key-play-bookmark8", KEY_PLAY_BOOKMARK8, NULL,
2600              PLAY_BOOKMARK8_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2601     add_key( "key-play-bookmark9", KEY_PLAY_BOOKMARK9, NULL,
2602              PLAY_BOOKMARK9_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2603     add_key( "key-play-bookmark10", KEY_PLAY_BOOKMARK10, NULL,
2604              PLAY_BOOKMARK10_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT, true )
2605
2606
2607     add_string( "bookmark1", NULL, NULL,
2608              BOOKMARK1_TEXT, BOOKMARK_LONGTEXT, false )
2609     add_string( "bookmark2", NULL, NULL,
2610              BOOKMARK2_TEXT, BOOKMARK_LONGTEXT, false )
2611     add_string( "bookmark3", NULL, NULL,
2612              BOOKMARK3_TEXT, BOOKMARK_LONGTEXT, false )
2613     add_string( "bookmark4", NULL, NULL,
2614              BOOKMARK4_TEXT, BOOKMARK_LONGTEXT, false )
2615     add_string( "bookmark5", NULL, NULL,
2616              BOOKMARK5_TEXT, BOOKMARK_LONGTEXT, false )
2617     add_string( "bookmark6", NULL, NULL,
2618              BOOKMARK6_TEXT, BOOKMARK_LONGTEXT, false )
2619     add_string( "bookmark7", NULL, NULL,
2620              BOOKMARK7_TEXT, BOOKMARK_LONGTEXT, false )
2621     add_string( "bookmark8", NULL, NULL,
2622              BOOKMARK8_TEXT, BOOKMARK_LONGTEXT, false )
2623     add_string( "bookmark9", NULL, NULL,
2624              BOOKMARK9_TEXT, BOOKMARK_LONGTEXT, false )
2625     add_string( "bookmark10", NULL, NULL,
2626               BOOKMARK10_TEXT, BOOKMARK_LONGTEXT, false )
2627
2628 #define HELP_TEXT \
2629     N_("print help for VLC (can be combined with --advanced and " \
2630        "--help-verbose)")
2631 #define FULL_HELP_TEXT \
2632     N_("Exhaustive help for VLC and its modules")
2633 #define LONGHELP_TEXT \
2634     N_("print help for VLC and all its modules (can be combined with " \
2635        "--advanced and --help-verbose)")
2636 #define HELP_VERBOSE_TEXT \
2637     N_("ask for extra verbosity when displaying help")
2638 #define LIST_TEXT \
2639     N_("print a list of available modules")
2640 #define LIST_VERBOSE_TEXT \
2641     N_("print a list of available modules with extra detail")
2642 #define MODULE_TEXT \
2643     N_("print help on a specific module (can be combined with --advanced " \
2644        "and --help-verbose). Prefix the module name with = for strict" \
2645        "matches.")
2646 #define IGNORE_CONFIG_TEXT \
2647     N_("no configuration option will be loaded nor saved to config file")
2648 #define SAVE_CONFIG_TEXT \
2649     N_("save the current command line options in the config")
2650 #define RESET_CONFIG_TEXT \
2651     N_("reset the current config to the default values")
2652 #define CONFIG_TEXT \
2653     N_("use alternate config file")
2654 #define RESET_PLUGINS_CACHE_TEXT \
2655     N_("resets the current plugins cache")
2656 #define VERSION_TEXT \
2657     N_("print version information")
2658
2659     add_bool( "help", false, NULL, HELP_TEXT, "", false )
2660         change_short( 'h' )
2661         change_internal ()
2662         change_unsaveable ()
2663     add_bool( "full-help", false, NULL, FULL_HELP_TEXT, "", false )
2664         change_short( 'H' )
2665         change_internal ()
2666         change_unsaveable ()
2667     add_bool( "longhelp", false, NULL, LONGHELP_TEXT, "", false )
2668         change_internal ()
2669         change_unsaveable ()
2670     add_bool( "help-verbose", false, NULL, HELP_VERBOSE_TEXT, "",
2671               false )
2672         change_internal ()
2673         change_unsaveable ()
2674     add_bool( "list", false, NULL, LIST_TEXT, "", false )
2675         change_short( 'l' )
2676         change_internal ()
2677         change_unsaveable ()
2678     add_bool( "list-verbose", false, NULL, LIST_VERBOSE_TEXT, "",
2679               false )
2680         change_internal ()
2681         change_unsaveable ()
2682     add_string( "module", NULL, NULL, MODULE_TEXT, "", false )
2683         change_short( 'p' )
2684         change_internal ()
2685         change_unsaveable ()
2686     add_bool( "ignore-config", false, NULL, IGNORE_CONFIG_TEXT, "", false )
2687         change_internal ()
2688         change_unsaveable ()
2689     add_bool( "save-config", false, NULL, SAVE_CONFIG_TEXT, "",
2690               false )
2691         change_internal ()
2692         change_unsaveable ()
2693     add_bool( "reset-config", false, NULL, RESET_CONFIG_TEXT, "", false )
2694         change_internal ()
2695         change_unsaveable ()
2696     add_bool( "reset-plugins-cache", false, NULL,
2697               RESET_PLUGINS_CACHE_TEXT, "", false )
2698         change_internal ()
2699         change_unsaveable ()
2700     add_bool( "version", false, NULL, VERSION_TEXT, "", false )
2701         change_internal ()
2702         change_unsaveable ()
2703     add_string( "config", NULL, NULL, CONFIG_TEXT, "", false )
2704         change_internal ()
2705         change_unsaveable ()
2706     add_bool( "version", false, NULL, VERSION_TEXT, "", false )
2707         change_internal ()
2708         change_unsaveable ()
2709
2710    /* Usage (mainly useful for cmd line stuff) */
2711     /* add_usage_hint( PLAYLIST_USAGE ) */
2712
2713     set_description( N_("main program") )
2714     set_capability( "main", 100 )
2715 vlc_module_end ()
2716
2717 /*****************************************************************************
2718  * End configuration.
2719  *****************************************************************************/
2720
2721 /*****************************************************************************
2722  * Initializer for the libvlc instance structure
2723  * storing the action / key associations
2724  *****************************************************************************/
2725 const struct action libvlc_actions[] =
2726 {
2727     { "key-quit", ACTIONID_QUIT, },
2728     { "key-play-pause", ACTIONID_PLAY_PAUSE, },
2729     { "key-play", ACTIONID_PLAY, },
2730     { "key-pause", ACTIONID_PAUSE, },
2731     { "key-stop", ACTIONID_STOP, },
2732     { "key-position", ACTIONID_POSITION, },
2733     { "key-jump-extrashort", ACTIONID_JUMP_BACKWARD_EXTRASHORT, },
2734     { "key-jump+extrashort", ACTIONID_JUMP_FORWARD_EXTRASHORT, },
2735     { "key-jump-short", ACTIONID_JUMP_BACKWARD_SHORT, },
2736     { "key-jump+short", ACTIONID_JUMP_FORWARD_SHORT, },
2737     { "key-jump-medium", ACTIONID_JUMP_BACKWARD_MEDIUM, },
2738     { "key-jump+medium", ACTIONID_JUMP_FORWARD_MEDIUM, },
2739     { "key-jump-long", ACTIONID_JUMP_BACKWARD_LONG, },
2740     { "key-jump+long", ACTIONID_JUMP_FORWARD_LONG, },
2741     { "key-frame-next", ACTIONID_FRAME_NEXT, },
2742     { "key-prev", ACTIONID_PREV, },
2743     { "key-next", ACTIONID_NEXT, },
2744     { "key-faster", ACTIONID_FASTER, },
2745     { "key-slower", ACTIONID_SLOWER, },
2746     { "key-rate-normal", ACTIONID_RATE_NORMAL, },
2747     { "key-rate-faster-fine", ACTIONID_RATE_FASTER_FINE, },
2748     { "key-rate-slower-fine", ACTIONID_RATE_SLOWER_FINE, },
2749     { "key-toggle-fullscreen", ACTIONID_TOGGLE_FULLSCREEN, },
2750     { "key-leave-fullscreen", ACTIONID_LEAVE_FULLSCREEN, },
2751     { "key-vol-up", ACTIONID_VOL_UP, },
2752     { "key-vol-down", ACTIONID_VOL_DOWN, },
2753     { "key-vol-mute", ACTIONID_VOL_MUTE, },
2754     { "key-subdelay-down", ACTIONID_SUBDELAY_DOWN, },
2755     { "key-subdelay-up", ACTIONID_SUBDELAY_UP, },
2756     { "key-audiodelay-down", ACTIONID_AUDIODELAY_DOWN, },
2757     { "key-audiodelay-up", ACTIONID_AUDIODELAY_UP, },
2758     { "key-audio-track", ACTIONID_AUDIO_TRACK, },
2759     { "key-subtitle-track", ACTIONID_SUBTITLE_TRACK, },
2760     { "key-aspect-ratio", ACTIONID_ASPECT_RATIO, },
2761     { "key-crop", ACTIONID_CROP, },
2762     { "key-deinterlace", ACTIONID_DEINTERLACE, },
2763     { "key-intf-show", ACTIONID_INTF_SHOW, },
2764     { "key-intf-hide", ACTIONID_INTF_HIDE, },
2765     { "key-snapshot", ACTIONID_SNAPSHOT, },
2766     { "key-zoom", ACTIONID_ZOOM, },
2767     { "key-unzoom", ACTIONID_UNZOOM, },
2768     { "key-crop-top", ACTIONID_CROP_TOP, },
2769     { "key-uncrop-top", ACTIONID_UNCROP_TOP, },
2770     { "key-crop-left", ACTIONID_CROP_LEFT, },
2771     { "key-uncrop-left", ACTIONID_UNCROP_LEFT, },
2772     { "key-crop-bottom", ACTIONID_CROP_BOTTOM, },
2773     { "key-uncrop-bottom", ACTIONID_UNCROP_BOTTOM, },
2774     { "key-crop-right", ACTIONID_CROP_RIGHT, },
2775     { "key-uncrop-right", ACTIONID_UNCROP_RIGHT, },
2776     { "key-nav-activate", ACTIONID_NAV_ACTIVATE, },
2777     { "key-nav-up", ACTIONID_NAV_UP, },
2778     { "key-nav-down", ACTIONID_NAV_DOWN, },
2779     { "key-nav-left", ACTIONID_NAV_LEFT, },
2780     { "key-nav-right", ACTIONID_NAV_RIGHT, },
2781     { "key-disc-menu", ACTIONID_DISC_MENU, },
2782     { "key-title-prev", ACTIONID_TITLE_PREV, },
2783     { "key-title-next", ACTIONID_TITLE_NEXT, },
2784     { "key-chapter-prev", ACTIONID_CHAPTER_PREV, },
2785     { "key-chapter-next", ACTIONID_CHAPTER_NEXT, },
2786     { "key-zoom-quarter", ACTIONID_ZOOM_QUARTER, },
2787     { "key-zoom-half", ACTIONID_ZOOM_HALF, },
2788     { "key-zoom-original", ACTIONID_ZOOM_ORIGINAL, },
2789     { "key-zoom-double", ACTIONID_ZOOM_DOUBLE, },
2790     { "key-set-bookmark1", ACTIONID_SET_BOOKMARK1, },
2791     { "key-set-bookmark2", ACTIONID_SET_BOOKMARK2, },
2792     { "key-set-bookmark3", ACTIONID_SET_BOOKMARK3, },
2793     { "key-set-bookmark4", ACTIONID_SET_BOOKMARK4, },
2794     { "key-set-bookmark5", ACTIONID_SET_BOOKMARK5, },
2795     { "key-set-bookmark6", ACTIONID_SET_BOOKMARK6, },
2796     { "key-set-bookmark7", ACTIONID_SET_BOOKMARK7, },
2797     { "key-set-bookmark8", ACTIONID_SET_BOOKMARK8, },
2798     { "key-set-bookmark9", ACTIONID_SET_BOOKMARK9, },
2799     { "key-set-bookmark10", ACTIONID_SET_BOOKMARK10, },
2800     { "key-play-bookmark1", ACTIONID_PLAY_BOOKMARK1, },
2801     { "key-play-bookmark2", ACTIONID_PLAY_BOOKMARK2, },
2802     { "key-play-bookmark3", ACTIONID_PLAY_BOOKMARK3, },
2803     { "key-play-bookmark4", ACTIONID_PLAY_BOOKMARK4, },
2804     { "key-play-bookmark5", ACTIONID_PLAY_BOOKMARK5, },
2805     { "key-play-bookmark6", ACTIONID_PLAY_BOOKMARK6, },
2806     { "key-play-bookmark7", ACTIONID_PLAY_BOOKMARK7, },
2807     { "key-play-bookmark8", ACTIONID_PLAY_BOOKMARK8, },
2808     { "key-play-bookmark9", ACTIONID_PLAY_BOOKMARK9, },
2809     { "key-play-bookmark10", ACTIONID_PLAY_BOOKMARK10, },
2810     { "key-history-back", ACTIONID_HISTORY_BACK, },
2811     { "key-history-forward", ACTIONID_HISTORY_FORWARD, },
2812     { "key-record", ACTIONID_RECORD, },
2813     { "key-dump", ACTIONID_DUMP, },
2814     { "key-random", ACTIONID_RANDOM, },
2815     { "key-loop", ACTIONID_LOOP, },
2816     { "key-wallpaper", ACTIONID_WALLPAPER, },
2817     { "key-menu-on", ACTIONID_MENU_ON, },
2818     { "key-menu-off", ACTIONID_MENU_OFF, },
2819     { "key-menu-right", ACTIONID_MENU_RIGHT, },
2820     { "key-menu-left", ACTIONID_MENU_LEFT, },
2821     { "key-menu-up", ACTIONID_MENU_UP, },
2822     { "key-menu-down", ACTIONID_MENU_DOWN, },
2823     { "key-menu-select", ACTIONID_MENU_SELECT, },
2824     { "key-audiodevice-cycle", ACTIONID_AUDIODEVICE_CYCLE, },
2825     { "key-toggle-autoscale", ACTIONID_TOGGLE_AUTOSCALE, },
2826     { "key-incr-scalefactor", ACTIONID_SCALE_UP, },
2827     { "key-decr-scalefactor", ACTIONID_SCALE_DOWN, },
2828 };
2829
2830 const size_t libvlc_actions_count =
2831     sizeof (libvlc_actions) / sizeof (libvlc_actions[0]);