Coverage Report

Created: 2025-08-25 06:17

/src/vlc/src/libvlc-module.c
Line
Count
Source
1
/*****************************************************************************
2
 * libvlc-module.c: Options for the core (libvlc itself) module
3
 *****************************************************************************
4
 * Copyright (C) 1998-2009 VLC authors and VideoLAN
5
 *
6
 * Authors: Vincent Seguin <seguin@via.ecp.fr>
7
 *          Samuel Hocevar <sam@zoy.org>
8
 *          Gildas Bazin <gbazin@videolan.org>
9
 *          Jean-Paul Saman <jpsaman #_at_# m2x.nl>
10
 *
11
 * This program is free software; you can redistribute it and/or modify it
12
 * under the terms of the GNU Lesser General Public License as published by
13
 * the Free Software Foundation; either version 2.1 of the License, or
14
 * (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
 * GNU Lesser General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU Lesser General Public License
22
 * along with this program; if not, write to the Free Software Foundation,
23
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24
 *****************************************************************************/
25
26
// Pretend we are a builtin module
27
#define MODULE_NAME core
28
29
#ifdef HAVE_CONFIG_H
30
# include "config.h"
31
#endif
32
33
#include <limits.h>
34
35
#include <vlc_common.h>
36
#include <vlc_plugin.h>
37
#include <vlc_cpu.h>
38
#include <vlc_vout_display.h>
39
#include <vlc_subpicture.h>
40
#include "libvlc.h"
41
#include "modules/modules.h"
42
43
//#define Nothing here, this is just to prevent update-po from being stupid
44
#include "vlc_actions.h"
45
#include "vlc_meta.h"
46
#include <vlc_aout.h>
47
#include <vlc_vout.h>
48
#include <vlc_player.h>
49
50
#include "clock/clock.h"
51
52
#ifdef HAVE_DYNAMIC_PLUGINS
53
#define VLC_META_EXPORT_DECL( name, value ) \
54
    VLC_API const char * CDECL_SYMBOL \
55
    VLC_SYMBOL(vlc_entry_ ## name)(void); \
56
57
VLC_META_EXPORT_DECL(copyright, VLC_MODULE_COPYRIGHT)
58
VLC_META_EXPORT_DECL(license, VLC_MODULE_LICENSE)
59
#endif
60
61
static const char *const ppsz_snap_formats[] =
62
{ "png", "jpg", "tiff", "webp" };
63
64
/*****************************************************************************
65
 * Configuration options for the core module. Each module will also separately
66
 * define its own configuration options.
67
 * Look into configuration.h if you need to know more about the following
68
 * macros.
69
 *****************************************************************************/
70
71
/*****************************************************************************
72
 * Intf
73
 ****************************************************************************/
74
75
// DEPRECATED
76
#define INTF_CAT_LONGTEXT N_( \
77
    "These options allow you to configure the interfaces used by VLC. " \
78
    "You can select the main interface, additional " \
79
    "interface modules, and define various related options." )
80
81
#define INTF_TEXT N_("Interface module")
82
#define INTF_LONGTEXT N_( \
83
    "This is the main interface used by VLC. " \
84
    "The default behavior is to automatically select the best module " \
85
    "available.")
86
87
#define EXTRAINTF_TEXT N_("Extra interface modules")
88
#define EXTRAINTF_LONGTEXT N_( \
89
    "You can select \"additional interfaces\" for VLC. " \
90
    "They will be launched in the background in addition to the default " \
91
    "interface. Use a colon separated list of interface modules. (common " \
92
    "values are \"rc\" (remote control), \"http\", \"gestures\" ...)")
93
94
#define CONTROL_TEXT N_("Control interfaces")
95
#define CONTROL_LONGTEXT N_( \
96
    "You can select control interfaces for VLC.")
97
98
#define VERBOSE_TEXT N_("Verbosity (0,1,2)")
99
#define VERBOSE_LONGTEXT N_( \
100
    "This is the verbosity level (0=only errors and " \
101
    "standard messages, 1=warnings, 2=debug).")
102
103
#define OPEN_TEXT N_("Default stream")
104
#define OPEN_LONGTEXT N_( \
105
    "This stream will always be opened at VLC startup." )
106
107
#define COLOR_TEXT N_("Color messages")
108
#define COLOR_LONGTEXT N_( \
109
    "This enables colorization of the messages sent to the console. " \
110
    "Your terminal needs Linux color support for this to work.")
111
112
#define INTERACTION_TEXT N_("Interface interaction")
113
#define INTERACTION_LONGTEXT N_( \
114
    "When this is enabled, the interface will show a dialog box each time " \
115
    "some user input is required." )
116
117
118
/*****************************************************************************
119
 * Audio
120
 ****************************************************************************/
121
122
// DEPRECATED
123
#define AOUT_CAT_LONGTEXT N_( \
124
    "These options allow you to modify the behavior of the audio " \
125
    "subsystem, and to add audio filters which can be used for " \
126
    "post processing or visual effects (spectrum analyzer, etc.). " \
127
    "Enable these filters here, and configure them in the \"audio filters\" " \
128
    "modules section.")
129
130
#define AOUT_TEXT N_("Audio output module")
131
#define AOUT_LONGTEXT N_( \
132
    "This is the audio output method used by VLC. " \
133
    "The default behavior is to automatically select the best method " \
134
    "available.")
135
136
#define ROLE_TEXT N_("Media role")
137
#define ROLE_LONGTEXT N_("Media (player) role for operating system policy.")
138
139
#define AUDIO_BITEXACT_TEXT N_("Enable bit-exact mode (pure mode)")
140
#define AUDIO_BITEXACT_LONGTEXT N_( \
141
    "This will disable all audio filters, even audio converters. " \
142
    "This may result on audio not working if the output can't adapt to the " \
143
    "input format.")
144
145
#define AUDIO_TEXT N_("Enable audio")
146
#define AUDIO_LONGTEXT N_( \
147
    "You can completely disable the audio output. The audio " \
148
    "decoding stage will not take place, thus saving some processing power.")
149
static const char *ppsz_roles[] = {
150
     "video", "music", "communication", "game",
151
     "notification", "animation", "production",
152
     "accessibility", "test",
153
};
154
static const char *ppsz_roles_text[] = {
155
    N_("Video"), N_("Music"), N_("Communication"), N_("Game"),
156
    N_("Notification"),  N_("Animation"), N_("Production"),
157
    N_("Accessibility"), N_("Test"),
158
};
159
160
#define GAIN_TEXT N_("Audio gain")
161
#define GAIN_LONGTEXT N_( \
162
    "This linear gain will be applied to outputted audio.")
163
164
#define VOLUME_STEP_TEXT N_("Audio output volume step")
165
#define VOLUME_STEP_LONGTEXT N_( \
166
    "The step size of the volume is adjustable using this option.")
167
#define AOUT_VOLUME_STEP 12.8
168
169
#define VOLUME_SAVE_TEXT N_( "Remember the audio volume" )
170
#define VOLUME_SAVE_LONGTEXT N_( \
171
    "The volume can be recorded and automatically restored next time " \
172
    "VLC is used." )
173
174
#define DESYNC_TEXT N_("Audio desynchronization compensation")
175
#define DESYNC_LONGTEXT N_( \
176
    "This delays the audio output. The delay must be given in milliseconds. " \
177
    "This can be handy if you notice a lag between the video and the audio.")
178
179
#define AUDIO_RESAMPLER_TEXT N_("Audio resampler")
180
#define AUDIO_RESAMPLER_LONGTEXT N_( \
181
    "This selects which plugin to use for audio resampling." )
182
183
#if defined(__ANDROID__) || defined(__APPLE__) || defined(_WIN32)
184
#define SPDIF_TEXT N_("Force S/PDIF support")
185
#define SPDIF_LONGTEXT N_( \
186
    "This option should be used when the audio output can't negotiate S/PDIF support.")
187
#endif
188
189
#define FORCE_DOLBY_TEXT N_("Force detection of Dolby Surround")
190
#define FORCE_DOLBY_LONGTEXT N_( \
191
    "Use this when you know your stream is (or is not) encoded with Dolby "\
192
    "Surround but fails to be detected as such. Even if the stream is "\
193
    "not actually encoded with Dolby Surround, turning on this option might "\
194
    "enhance your experience, especially when combined with the Headphone "\
195
    "Channel Mixer." )
196
static const int pi_force_dolby_values[] = { 0, 1, 2 };
197
static const char *const ppsz_force_dolby_descriptions[] = {
198
    N_("Auto"), N_("On"), N_("Off") };
199
200
#define STEREO_MODE_TEXT N_("Stereo audio output mode")
201
static const int pi_stereo_mode_values[] = { AOUT_VAR_CHAN_UNSET,
202
    AOUT_VAR_CHAN_STEREO, AOUT_VAR_CHAN_RSTEREO,
203
    AOUT_VAR_CHAN_LEFT, AOUT_VAR_CHAN_RIGHT, AOUT_VAR_CHAN_DOLBYS,
204
    AOUT_VAR_CHAN_MONO,
205
};
206
static const char *const ppsz_stereo_mode_texts[] = { N_("Unset"),
207
    N_("Stereo"), N_("Reverse stereo"),
208
    N_("Left"), N_("Right"), N_("Dolby Surround"),
209
    N_("Mono"),
210
};
211
212
#define MIX_MODE_TEXT N_("Audio mix mode")
213
static const int pi_mix_mode_values[] = {
214
    AOUT_MIX_MODE_UNSET, AOUT_MIX_MODE_STEREO, AOUT_MIX_MODE_BINAURAL,
215
    AOUT_MIX_MODE_4_0, AOUT_MIX_MODE_5_1, AOUT_MIX_MODE_7_1,
216
};
217
static const char *const ppsz_mix_mode_texts[] = {
218
    N_("Unset"), N_("Stereo"), N_("Binaural"),
219
    "4.0", "5.1", "7.1",
220
};
221
222
#define AUDIO_FILTER_TEXT N_("Audio filters")
223
#define AUDIO_FILTER_LONGTEXT N_( \
224
    "This adds audio post processing filters, to modify " \
225
    "the sound rendering." )
226
227
#define AUDIO_VISUAL_TEXT N_("Audio visualizations")
228
#define AUDIO_VISUAL_LONGTEXT N_( \
229
    "This adds visualization modules (spectrum analyzer, etc.).")
230
231
232
#define AUDIO_REPLAY_GAIN_MODE_TEXT N_( \
233
    "Replay gain mode" )
234
#define AUDIO_REPLAY_GAIN_MODE_LONGTEXT NULL
235
#define AUDIO_REPLAY_GAIN_PREAMP_TEXT N_( \
236
    "Replay preamp" )
237
#define AUDIO_REPLAY_GAIN_PREAMP_LONGTEXT N_( \
238
    "This allows you to change the default target level (89 dB) " \
239
    "for stream with replay gain information" )
240
#define AUDIO_REPLAY_GAIN_DEFAULT_TEXT N_( \
241
    "Default replay gain" )
242
#define AUDIO_REPLAY_GAIN_DEFAULT_LONGTEXT N_( \
243
    "This is the gain used for stream without replay gain information" )
244
#define AUDIO_REPLAY_GAIN_PEAK_PROTECTION_TEXT N_( \
245
    "Peak protection" )
246
#define AUDIO_REPLAY_GAIN_PEAK_PROTECTION_LONGTEXT N_( \
247
    "Protect against sound clipping" )
248
249
#define AUDIO_TIME_STRETCH_TEXT N_( \
250
    "Enable time stretching audio" )
251
#define AUDIO_TIME_STRETCH_LONGTEXT N_( \
252
    "This allows playing audio at lower or higher speed without " \
253
    "affecting the audio pitch" )
254
255
256
static const char *const ppsz_replay_gain_mode[] = {
257
    "none", "track", "album" };
258
static const char *const ppsz_replay_gain_mode_text[] = {
259
    N_("None"), N_("Track"), N_("Album") };
260
261
/*****************************************************************************
262
 * Video
263
 ****************************************************************************/
264
265
// DEPRECATED
266
#define VOUT_CAT_LONGTEXT N_( \
267
    "These options allow you to modify the behavior of the video output " \
268
    "subsystem. You can for example enable video filters (deinterlacing, " \
269
    "image adjusting, etc.). Enable these filters here and configure " \
270
    "them in the \"video filters\" modules section. You can also set many " \
271
    "miscellaneous video options." )
272
273
#define VOUT_TEXT N_("Video output module")
274
#define VOUT_LONGTEXT N_( \
275
    "This is the the video output method used by VLC. " \
276
    "The default behavior is to automatically select the best method available.")
277
278
#define VIDEO_TEXT N_("Enable video")
279
#define VIDEO_LONGTEXT N_( \
280
    "You can completely disable the video output. The video " \
281
    "decoding stage will not take place, thus saving some processing power.")
282
283
#define WIDTH_TEXT N_("Video width")
284
#define WIDTH_LONGTEXT N_( \
285
    "This requests a specific pixel width for the video window. " \
286
    "By default (-1), the width is requested according to the zoom setting.")
287
288
#define HEIGHT_TEXT N_("Video height")
289
#define HEIGHT_LONGTEXT N_( \
290
    "This requests a specific pixel height for the video window. " \
291
    "By default (-1), the height is requested according to the zoom setting.")
292
293
#define VIDEOX_TEXT N_("Video X coordinate")
294
#define VIDEOX_LONGTEXT N_( \
295
    "You can enforce the position of the top left corner of the video window "\
296
    "(X coordinate).")
297
298
#define VIDEOY_TEXT N_("Video Y coordinate")
299
#define VIDEOY_LONGTEXT N_( \
300
    "You can enforce the position of the top left corner of the video window "\
301
    "(Y coordinate).")
302
303
#define VIDEO_TITLE_TEXT N_("Video title")
304
#define VIDEO_TITLE_LONGTEXT N_( \
305
    "Custom title for the video window (in case the video is not embedded in "\
306
    "the interface).")
307
308
#define ALIGN_TEXT N_("Video alignment")
309
#define ALIGN_LONGTEXT N_( \
310
    "Enforce the alignment of the video in its window. By default (0) it " \
311
    "will be centered (0=center, 1=left, 2=right, 4=top, 8=bottom, you can " \
312
    "also use combinations of these values, like 6=4+2 meaning top-right).")
313
static const int pi_align_values[] = { 0, VOUT_ALIGN_LEFT, VOUT_ALIGN_RIGHT,
314
                                       VOUT_ALIGN_TOP, VOUT_ALIGN_BOTTOM,
315
                                       VOUT_ALIGN_TOP|VOUT_ALIGN_LEFT,
316
                                       VOUT_ALIGN_TOP|VOUT_ALIGN_RIGHT,
317
                                       VOUT_ALIGN_BOTTOM|VOUT_ALIGN_LEFT,
318
                                       VOUT_ALIGN_BOTTOM|VOUT_ALIGN_RIGHT };
319
static const char *const ppsz_align_descriptions[] =
320
{ N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
321
  N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
322
323
#define ZOOM_TEXT N_("Zoom video")
324
#define ZOOM_LONGTEXT N_( \
325
    "You can zoom the video by the specified factor.")
326
327
#define GRAYSCALE_TEXT N_("Grayscale video output")
328
#define GRAYSCALE_LONGTEXT N_( \
329
    "Output video in grayscale. As the color information aren't decoded, " \
330
    "this can save some processing power." )
331
332
#define EMBEDDED_TEXT N_("Embedded video")
333
#define EMBEDDED_LONGTEXT N_( \
334
    "Embed the video output in the main interface." )
335
336
#define FULLSCREEN_TEXT N_("Fullscreen video output")
337
#define FULLSCREEN_LONGTEXT N_( \
338
    "Start video in fullscreen mode" )
339
340
#define PROJECTION_MODE_TEXT N_("360 videos projection mode")
341
#define PROJECTION_MODE_LONGTEXT N_( \
342
    "Change the 360 video projection mode.")
343
344
#define VIDEO_ON_TOP_TEXT N_("Always on top")
345
#define VIDEO_ON_TOP_LONGTEXT N_( \
346
    "Always place the video window on top of other windows." )
347
348
#define WALLPAPER_TEXT N_("Enable wallpaper mode")
349
#define WALLPAPER_LONGTEXT N_( \
350
    "The wallpaper mode allows you to display the video as the desktop " \
351
    "background." )
352
353
#define VIDEO_TITLE_SHOW_TEXT N_("Show media title on video")
354
#define VIDEO_TITLE_SHOW_LONGTEXT N_( \
355
    "Display the title of the video on top of the movie.")
356
357
#define VIDEO_TITLE_TIMEOUT_TEXT N_("Show video title for x milliseconds")
358
#define VIDEO_TITLE_TIMEOUT_LONGTEXT N_( \
359
    "Show the video title for n milliseconds, default is 5000 ms (5 sec.)")
360
361
#define VIDEO_TITLE_POSITION_TEXT N_("Position of video title")
362
#define VIDEO_TITLE_POSITION_LONGTEXT N_( \
363
    "Place on video where to display the title (default bottom center).")
364
365
#define MOUSE_HIDE_TIMEOUT_TEXT N_("Hide cursor and fullscreen " \
366
                                   "controller after x milliseconds")
367
#define MOUSE_HIDE_TIMEOUT_LONGTEXT NULL
368
369
#define DEINTERLACE_TEXT N_("Deinterlace")
370
static const int pi_deinterlace[] = {
371
    0, -1, 1
372
};
373
static const char * const  ppsz_deinterlace_text[] = {
374
    N_("Off"), N_("Automatic"), N_("On")
375
};
376
377
#define DEINTERLACE_MODE_TEXT N_("Deinterlace mode")
378
#define DEINTERLACE_MODE_LONGTEXT N_( \
379
    "Deinterlace method to use for video processing.")
380
static const char * const ppsz_deinterlace_mode[] = {
381
    "auto", "discard", "blend", "mean", "bob",
382
    "linear", "x", "yadif", "yadif2x", "phosphor",
383
    "ivtc"
384
};
385
static const char * const ppsz_deinterlace_mode_text[] = {
386
    N_("Auto"), N_("Discard"), N_("Blend"), N_("Mean"), N_("Bob"),
387
    N_("Linear"), "X", "Yadif", "Yadif (2x)", N_("Phosphor"),
388
    N_("Film NTSC (IVTC)")
389
};
390
391
#define DEINTERLACE_FILTER_TEXT N_("Deinterlace filter")
392
#define DEINTERLACE_FILTER_LONGTEXT N_("Deinterlace module to use.")
393
394
#define VIDEO_STEREO_FORMAT_TEXT N_("Video Stereo 3D mode")
395
#define VIDEO_STEREO_FORMAT_TEXT_LONGTEXT  N_("Set the Video Stereo 3D mode.")
396
397
static const int video_stereo_formats[] = {
398
    VIDEO_STEREO_OUTPUT_AUTO, VIDEO_STEREO_OUTPUT_STEREO,
399
    VIDEO_STEREO_OUTPUT_LEFT_ONLY, VIDEO_STEREO_OUTPUT_RIGHT_ONLY,
400
    VIDEO_STEREO_OUTPUT_SIDE_BY_SIDE,
401
};
402
static const char *const video_stereo_formats_text[] = {
403
    N_("Auto"), N_("Stereo"), N_("Left Only"), N_("Right Only"),
404
    N_("Side-by-Side"),
405
};
406
407
static const int pi_pos_values[] = {
408
    0,
409
    SUBPICTURE_ALIGN_LEFT,
410
    SUBPICTURE_ALIGN_RIGHT,
411
    SUBPICTURE_ALIGN_TOP,
412
    SUBPICTURE_ALIGN_BOTTOM,
413
    SUBPICTURE_ALIGN_TOP | SUBPICTURE_ALIGN_LEFT,
414
    SUBPICTURE_ALIGN_TOP | SUBPICTURE_ALIGN_RIGHT,
415
    SUBPICTURE_ALIGN_BOTTOM | SUBPICTURE_ALIGN_LEFT,
416
    SUBPICTURE_ALIGN_BOTTOM | SUBPICTURE_ALIGN_RIGHT,
417
};
418
static const char *const ppsz_pos_descriptions[] =
419
{ N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
420
  N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
421
422
static const int pi_sub_align_values[] = { -1, 0, 1, 2, 4, 8, 5, 6, 9, 10 };
423
static const char *const ppsz_sub_align_descriptions[] =
424
{ N_("Unset"), N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
425
  N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") };
426
427
#define SS_TEXT N_("Disable screensaver")
428
#define SS_LONGTEXT N_("Disable the screensaver during video playback." )
429
430
static const int screensaver_values[] = { 0, 2, 1, };
431
static const char *const screensaver_texts[] = {
432
    N_("Never"), N_("When fullscreen"), N_("Always"),
433
};
434
435
#define VIDEO_DECO_TEXT N_("Window decorations")
436
#define VIDEO_DECO_LONGTEXT N_( \
437
    "VLC can avoid creating window caption, frames, etc... around the video" \
438
    ", giving a \"minimal\" window.")
439
440
#define VIDEO_FILTER_TEXT N_("Video filter module")
441
#define VIDEO_FILTER_LONGTEXT N_( \
442
    "This adds post-processing filters to enhance the " \
443
    "picture quality, for instance deinterlacing, or distort " \
444
    "the video.")
445
446
#define SNAP_PATH_TEXT N_("Video snapshot directory (or filename)")
447
#define SNAP_PATH_LONGTEXT N_( \
448
    "Directory where the video snapshots will be stored.")
449
450
#define SNAP_PREFIX_TEXT N_("Video snapshot file prefix")
451
452
#define SNAP_FORMAT_TEXT N_("Video snapshot format")
453
#define SNAP_FORMAT_LONGTEXT N_( \
454
    "Image format which will be used to store the video snapshots" )
455
456
#define SNAP_PREVIEW_TEXT N_("Display video snapshot preview")
457
#define SNAP_PREVIEW_LONGTEXT N_( \
458
    "Display the snapshot preview in the screen's top-left corner.")
459
460
#define SNAP_SEQUENTIAL_TEXT N_("Use sequential numbers instead of timestamps")
461
#define SNAP_SEQUENTIAL_LONGTEXT N_( \
462
    "Use sequential numbers instead of timestamps for snapshot numbering")
463
464
#define SNAP_WIDTH_TEXT N_("Video snapshot width")
465
#define SNAP_WIDTH_LONGTEXT N_( \
466
    "You can enforce the width of the video snapshot. By default " \
467
    "it will keep the original width (-1). Using 0 will scale the width " \
468
    "to keep the aspect ratio." )
469
470
#define SNAP_HEIGHT_TEXT N_("Video snapshot height")
471
#define SNAP_HEIGHT_LONGTEXT N_( \
472
    "You can enforce the height of the video snapshot. By default " \
473
    "it will keep the original height (-1). Using 0 will scale the height " \
474
    "to keep the aspect ratio." )
475
476
#define CROP_TEXT N_("Video cropping")
477
#define CROP_LONGTEXT N_( \
478
    "This forces the cropping of the source video. " \
479
    "Accepted formats are x:y (4:3, 16:9, etc.) expressing the global image " \
480
    "aspect.")
481
482
#define ASPECT_RATIO_TEXT N_("Source aspect ratio")
483
#define ASPECT_RATIO_LONGTEXT N_( \
484
    "This forces the source aspect ratio. For instance, some DVDs claim " \
485
    "to be 16:9 while they are actually 4:3. This can also be used as a " \
486
    "hint for VLC when a movie does not have aspect ratio information. " \
487
    "Accepted formats are x:y (4:3, 16:9, etc.) expressing the global image " \
488
    "aspect, or a float value (1.25, 1.3333, etc.) expressing pixel " \
489
    "squareness.")
490
491
#define AUTOSCALE_TEXT N_("Video Auto Scaling")
492
#define AUTOSCALE_LONGTEXT N_( \
493
    "Let the video scale to fit a given window or fullscreen.")
494
495
#define FIT_TEXT N_("Video fitting")
496
#define FIT_LONGTEXT N_( \
497
    "This selects the dimension according to which the video will be scaled.")
498
499
static const int fit_values[] = {
500
    VLC_VIDEO_FIT_SMALLER, VLC_VIDEO_FIT_LARGER,
501
    VLC_VIDEO_FIT_WIDTH, VLC_VIDEO_FIT_HEIGHT,
502
};
503
static const char *const fit_descriptions[] = {
504
    N_("Smaller"), N_("Larger"), N_("Width"), N_("Height"),
505
};
506
507
#define CUSTOM_CROP_RATIOS_TEXT N_("Custom crop ratios list")
508
#define CUSTOM_CROP_RATIOS_LONGTEXT N_( \
509
    "Comma separated list of crop ratios which will be added in the " \
510
    "interface's crop ratios list.")
511
512
#define CUSTOM_ASPECT_RATIOS_TEXT N_("Custom aspect ratios list")
513
#define CUSTOM_ASPECT_RATIOS_LONGTEXT N_( \
514
    "Comma separated list of aspect ratios which will be added in the " \
515
    "interface's aspect ratio list.")
516
517
#define HDTV_FIX_TEXT N_("Fix HDTV height")
518
#define HDTV_FIX_LONGTEXT N_( \
519
    "This allows proper handling of HDTV-1080 video format " \
520
    "even if broken encoder incorrectly sets height to 1088 lines. " \
521
    "You should only disable this option if your video has a " \
522
    "non-standard format requiring all 1088 lines.")
523
524
#define MASPECT_RATIO_TEXT N_("Monitor pixel aspect ratio")
525
#define MASPECT_RATIO_LONGTEXT N_( \
526
    "This forces the monitor aspect ratio. Most monitors have square " \
527
    "pixels (1:1). If you have a 16:9 screen, you might need to change this " \
528
    "to 4:3 in order to keep proportions.")
529
530
#define DROP_LATE_FRAMES_TEXT N_("Drop late frames")
531
#define DROP_LATE_FRAMES_LONGTEXT N_( \
532
    "This drops frames that are late (arrive to the video output after " \
533
    "their intended display date)." )
534
535
#define KEYBOARD_EVENTS_TEXT N_("Key press events")
536
#define KEYBOARD_EVENTS_LONGTEXT N_( \
537
    "This enables VLC hotkeys from the (non-embedded) video window." )
538
539
#define MOUSE_EVENTS_TEXT N_("Mouse events")
540
#define MOUSE_EVENTS_LONGTEXT N_( \
541
    "This enables handling of mouse clicks on the video." )
542
543
/*****************************************************************************
544
 * Input
545
 ****************************************************************************/
546
547
// Deprecated
548
#define INPUT_CAT_LONGTEXT N_( \
549
    "These options allow you to modify the behavior of the input " \
550
    "subsystem, such as the DVD or VCD device, the network interface " \
551
    "settings or the subtitle channel.")
552
553
#define CACHING_TEXT N_("File caching (ms)")
554
#define CACHING_LONGTEXT N_( \
555
    "Caching value for local files, in milliseconds." )
556
557
#define CAPTURE_CACHING_TEXT N_("Live capture caching (ms)")
558
#define CAPTURE_CACHING_LONGTEXT N_( \
559
    "Caching value for cameras and microphones, in milliseconds." )
560
561
#define DISC_CACHING_TEXT N_("Disc caching (ms)")
562
#define DISC_CACHING_LONGTEXT N_( \
563
    "Caching value for optical media, in milliseconds." )
564
565
#define NETWORK_CACHING_TEXT N_("Network caching (ms)")
566
#define NETWORK_CACHING_LONGTEXT N_( \
567
    "Caching value for network resources, in milliseconds." )
568
569
#define CR_AVERAGE_TEXT N_("Clock reference average counter")
570
#define CR_AVERAGE_LONGTEXT N_( \
571
    "When using the PVR input (or a very irregular source), you should " \
572
    "set this to 10000.")
573
574
#define CLOCK_SYNCHRO_TEXT N_("Clock synchronisation")
575
#define CLOCK_SYNCHRO_LONGTEXT N_( \
576
    "It is possible to disable the input clock synchronisation for " \
577
    "real-time sources. Use this if you experience jerky playback of " \
578
    "network streams.")
579
580
#define CLOCK_JITTER_TEXT N_("Clock jitter")
581
#define CLOCK_JITTER_LONGTEXT N_( \
582
    "This defines the maximum input delay jitter that the synchronization " \
583
    "algorithms should try to compensate (in milliseconds)." )
584
585
#define CLOCK_MASTER_TEXT N_("Clock master source")
586
#define CLOCK_MASTER_LONGTEXT N_( "Select the clock master source:\n" \
587
    "auto: best clock source, input if the access can't be paced " \
588
    "(when playing live content), or audio otherwise (most likely).\n" \
589
    "input: all tracks are driven by the input clock, via PCR updates " \
590
    "from the demuxer. This restore the VLC 3.0 clock behavior where both audio " \
591
    "and video tracks can be altered to catch up with the input.\n" \
592
    "audio: if an audio track is playing, the audio output will drive the " \
593
    "clock (Fallback to Monotonic if there is no audio tracks).\n" \
594
    "monotonic: all tracks are driven by the monotonic clock of the system.")
595
596
static const char *const ppsz_clock_master_values[] = {
597
    "auto", "input", "audio", "monotonic",
598
};
599
static const char *const ppsz_clock_master_descriptions[] = {
600
    N_("Auto"),
601
    N_("Input (PCR)"),
602
    N_("Audio"),
603
    N_("Monotonic")
604
};
605
606
static const int pi_clock_values[] = { -1, 0, 1 };
607
static const char *const ppsz_clock_descriptions[] =
608
{ N_("Default"), N_("Disable"), N_("Enable") };
609
610
#define MTU_TEXT N_("MTU of the network interface")
611
#define MTU_LONGTEXT N_( \
612
    "This is the maximum application-layer packet size that can be " \
613
    "transmitted over the network (in bytes).")
614
/* Should be less than 1500 - 8[ppp] - 40[ip6] - 8[udp] in any case. */
615
#define MTU_DEFAULT 1400
616
617
#define TTL_TEXT N_("Hop limit (TTL)")
618
#define TTL_LONGTEXT N_( \
619
    "This is the hop limit (also known as \"Time-To-Live\" or TTL) of " \
620
    "the multicast packets sent by the stream output (-1 = use operating " \
621
    "system built-in default).")
622
623
#define MIFACE_TEXT N_("Multicast output interface")
624
#define MIFACE_LONGTEXT N_( \
625
    "Default multicast interface. This overrides the routing table.")
626
627
#define DSCP_TEXT N_("DiffServ Code Point")
628
#define DSCP_LONGTEXT N_("Differentiated Services Code Point " \
629
    "for outgoing UDP streams (or IPv4 Type Of Service, " \
630
    "or IPv6 Traffic Class). This is used for network Quality of Service.")
631
632
#define INPUT_PROGRAM_TEXT N_("Program")
633
#define INPUT_PROGRAM_LONGTEXT N_( \
634
    "Choose the program to select by giving its Service ID. " \
635
    "Only use this option if you want to read a multi-program stream " \
636
    "(like DVB streams for example)." )
637
638
#define INPUT_PROGRAMS_TEXT N_("Programs")
639
#define INPUT_PROGRAMS_LONGTEXT N_( \
640
    "Choose the programs to select by giving a comma-separated list of " \
641
    "Service IDs (SIDs). " \
642
    "Only use this option if you want to read a multi-program stream " \
643
    "(like DVB streams for example)." )
644
645
/// \todo Document how to find it
646
#define INPUT_VIDEOTRACK_TEXT N_("Video track")
647
#define INPUT_VIDEOTRACK_LONGTEXT N_( \
648
    "Stream number of the video track to use " \
649
    "(from 0 to n).")
650
651
#define INPUT_AUDIOTRACK_TEXT N_("Audio track")
652
#define INPUT_AUDIOTRACK_LONGTEXT N_( \
653
    "Stream number of the audio track to use " \
654
    "(from 0 to n).")
655
656
#define INPUT_SUBTRACK_TEXT N_("Subtitle track")
657
#define INPUT_SUBTRACK_LONGTEXT N_( \
658
    "Stream number of the subtitle track to use " \
659
    "(from 0 to n).")
660
661
#define INPUT_AUDIOTRACK_LANG_TEXT N_("Audio language")
662
#define INPUT_AUDIOTRACK_LANG_LONGTEXT N_( \
663
    "Language of the audio track you want to use " \
664
    "(comma separated, two or three letter ISO-639 country code; you may use 'none' to avoid a fallback to another language).")
665
666
#define INPUT_SUBTRACK_LANG_TEXT N_("Subtitle language")
667
#define INPUT_SUBTRACK_LANG_LONGTEXT N_( \
668
    "Language of the subtitle track you want to use " \
669
    "(comma separated, two or three letter ISO-639 country code; you may use 'any' as a fallback).")
670
671
#define INPUT_MENUTRACK_LANG_TEXT N_("Menu language")
672
#define INPUT_MENUTRACK_LANG_LONGTEXT N_( \
673
    "Language of the menus you want to use with DVD/BluRay " \
674
    "(comma separated, two or three letter ISO-639 country code; you may use 'any' as a fallback).")
675
676
#define INPUT_VIDEOTRACK_ID_TEXT N_("Video track ID")
677
#define INPUT_VIDEOTRACK_ID_LONGTEXT N_( \
678
    "Stream ID of the video track to use.")
679
680
#define INPUT_AUDIOTRACK_ID_TEXT N_("Audio track ID")
681
#define INPUT_AUDIOTRACK_ID_LONGTEXT N_( \
682
    "Stream ID of the audio track to use.")
683
684
#define INPUT_SUBTRACK_ID_TEXT N_("Subtitle track ID")
685
#define INPUT_SUBTRACK_ID_LONGTEXT N_( \
686
    "Stream ID of the subtitle track to use.")
687
688
#define INPUT_CAPTIONS_TEXT N_(N_("Preferred Closed Captions decoder"))
689
static const int pi_captions[] = { 608, 708 };
690
static const char *const ppsz_captions[] = { "EIA/CEA 608", "CEA 708" };
691
692
#define INPUT_PREFERREDRESOLUTION_TEXT N_("Preferred video resolution")
693
#define INPUT_PREFERREDRESOLUTION_LONGTEXT N_( \
694
    "When several video formats are available, select one whose " \
695
    "resolution is closest to (but not higher than) this setting, " \
696
    "in number of lines. Use this option if you don't have enough CPU " \
697
    "power or network bandwidth to play higher resolutions.")
698
static const int pi_prefres[] = { -1, 1080, 720, 576, 360, 240 };
699
static const char *const ppsz_prefres[] = {
700
    N_("Best available"), N_("Full HD (1080p)"), N_("HD (720p)"),
701
    N_("Standard Definition (576 or 480 lines)"),
702
    N_("Low Definition (360 lines)"),
703
    N_("Very Low Definition (240 lines)"),
704
};
705
706
#define INPUT_LOWDELAY_TEXT N_("Low delay mode")
707
#define INPUT_LOWDELAY_LONGTEXT N_(\
708
    "Try to minimize delay along decoding chain. "\
709
    "Might break with non compliant streams.")
710
711
#define INPUT_REPEAT_TEXT N_("Input repetitions")
712
#define INPUT_REPEAT_LONGTEXT N_( \
713
    "Number of time the same input will be repeated")
714
715
#define START_TIME_TEXT N_("Start time")
716
#define START_TIME_LONGTEXT N_( \
717
    "The stream will start at this position (in seconds)." )
718
719
#define STOP_TIME_TEXT N_("Stop time")
720
#define STOP_TIME_LONGTEXT N_( \
721
    "The stream will stop at this position (in seconds)." )
722
723
#define RUN_TIME_TEXT N_("Run time")
724
#define RUN_TIME_LONGTEXT N_( \
725
    "The stream will run this duration (in seconds)." )
726
727
#define INPUT_FAST_SEEK_TEXT N_("Fast seek")
728
#define INPUT_FAST_SEEK_LONGTEXT N_( \
729
    "Favor speed over precision while seeking" )
730
731
#define INPUT_RATE_TEXT N_("Playback speed")
732
#define INPUT_RATE_LONGTEXT N_( \
733
    "This defines the playback speed (nominal speed is 1.0)." )
734
735
#define INPUT_LIST_TEXT N_("Input list")
736
#define INPUT_LIST_LONGTEXT N_( \
737
    "You can give a comma-separated list " \
738
    "of inputs that will be concatenated together after the normal one.")
739
740
#define INPUT_SLAVE_TEXT N_("Input slave (experimental)")
741
#define INPUT_SLAVE_LONGTEXT N_( \
742
    "This allows you to play from several inputs at " \
743
    "the same time. This feature is experimental, not all formats " \
744
    "are supported. Use a '#' separated list of inputs.")
745
746
#define BOOKMARKS_TEXT N_("Bookmarks list for a stream")
747
#define BOOKMARKS_LONGTEXT N_( \
748
    "You can manually give a list of bookmarks for a stream in " \
749
    "the form \"{name=bookmark-name,time=optional-time-offset," \
750
    "bytes=optional-byte-offset},{...}\"")
751
752
#define SAVE_RECENTPLAY N_("Save recently played items")
753
754
#define RESTORE_PLAYBACK_POS_TEXT N_("Continue playback")
755
#define RESTORE_PLAYBACK_POS_LONGTEXT N_("Should the playback resume where " \
756
    "it was left off?")
757
758
static const int pi_restore_playback_values[] = {
759
    VLC_PLAYER_RESTORE_PLAYBACK_POS_NEVER,
760
    VLC_PLAYER_RESTORE_PLAYBACK_POS_ASK,
761
    VLC_PLAYER_RESTORE_PLAYBACK_POS_ALWAYS
762
};
763
static const char* const ppsz_restore_playback_desc[] = {
764
    N_( "Never resume playback where it was left off" ),
765
    N_( "Ask when the playback starts" ),
766
    N_( "Always resume playback where it was left off" ),
767
};
768
769
#define RESTORE_PLAYBACK_STATE_TEXT N_("Resume last playback states")
770
#define RESTORE_PLAYBACK_STATE_LONGTEXT N_("This will resume the last playback " \
771
    "state, such as the selected tracks, rate, aspect-ratio, ..." )
772
773
#define INPUT_RECORD_PATH_TEXT N_("Record directory")
774
#define INPUT_RECORD_PATH_LONGTEXT N_( \
775
    "Directory where the records will be stored" )
776
777
#define INPUT_RECORD_NATIVE_TEXT N_("Prefer native stream recording")
778
#define INPUT_RECORD_NATIVE_LONGTEXT N_( \
779
    "When possible, the input stream will be recorded instead of using " \
780
    "the stream output module" )
781
782
#define INPUT_TIMESHIFT_PATH_TEXT N_("Timeshift directory")
783
#define INPUT_TIMESHIFT_PATH_LONGTEXT N_( \
784
    "Directory used to store the timeshift temporary files." )
785
786
#define INPUT_TIMESHIFT_GRANULARITY_TEXT N_("Timeshift granularity")
787
#define INPUT_TIMESHIFT_GRANULARITY_LONGTEXT N_( \
788
    "This is the maximum size in bytes of the temporary files " \
789
    "that will be used to store the timeshifted streams." )
790
791
#define INPUT_TITLE_FORMAT_TEXT N_( "Change title according to current media" )
792
#define INPUT_TITLE_FORMAT_LONGTEXT N_( "This option allows you to set the title according to what's being played<br>"  \
793
    "$a: Artist<br>$b: Album<br>$c: Copyright<br>$t: Title<br>$g: Genre<br>"  \
794
    "$n: Track num<br>$p: Now playing<br>$A: Date<br>$D: Duration<br>"  \
795
    "$Z: \"Now playing\" (Fall back on Title - Artist)" )
796
797
// DEPRECATED
798
#define SUB_CAT_LONGTEXT N_( \
799
    "These options allow you to modify the behavior of the subpictures " \
800
    "subsystem. You can for example enable subpictures sources (logo, etc.). " \
801
    "Enable these filters here and configure them in the " \
802
    "\"subsources filters\" modules section. You can also set many " \
803
    "miscellaneous subpictures options." )
804
805
#define SUB_MARGIN_TEXT N_("Force subtitle position")
806
#define SUB_MARGIN_LONGTEXT N_( \
807
    "You can use this option to place the subtitles under the movie, " \
808
    "instead of over the movie. Try several positions.")
809
810
#define SUB_TEXT_SCALE_TEXT N_("Subtitles text scaling factor")
811
#define SUB_TEXT_SCALE_LONGTEXT N_("Changes the subtitles size where possible")
812
813
#define SPU_TEXT N_("Enable sub-pictures")
814
#define SPU_LONGTEXT N_( \
815
    "You can completely disable the sub-picture processing.")
816
817
#define SPU_FULL_TEXT N_("Display sub-pictures on full window")
818
#define SPU_FULL_LONGTEXT N_( \
819
    "It allows showing subtitles in black bars.")
820
821
#define SECONDARY_SUB_POSITION_TEXT N_("Position of secondary subtitles")
822
#define SECONDARY_SUB_POSITION_LONGTEXT N_( \
823
    "Place on video where to display secondary subtitles (default bottom center).")
824
825
#define SECONDARY_SUB_MARGIN_TEXT N_("Force secondary subtitle position")
826
#define SECONDARY_SUB_MARGIN_LONGTEXT N_( \
827
    "You can use this option to vertically adjust the position secondary " \
828
    "subtitles are displayed.")
829
830
#define OSD_TEXT N_("On Screen Display")
831
#define OSD_LONGTEXT N_( \
832
    "VLC can display messages on the video. This is called OSD (On Screen " \
833
    "Display).")
834
835
#define TEXTRENDERER_TEXT N_("Text rendering module")
836
#define TEXTRENDERER_LONGTEXT N_( \
837
    "VLC normally uses Freetype for rendering, but this allows you to use svg for instance.")
838
839
#define SUB_SOURCE_TEXT N_("Subpictures source module")
840
#define SUB_SOURCE_LONGTEXT N_( \
841
    "This adds so-called \"subpicture sources\". These filters overlay " \
842
    "some images or text over the video (like a logo, arbitrary text, ...)." )
843
844
#define SUB_FILTER_TEXT N_("Subpictures filter module")
845
#define SUB_FILTER_LONGTEXT N_( \
846
    "This adds so-called \"subpicture filters\". These filter subpictures " \
847
    "created by subtitle decoders or other subpictures sources." )
848
849
#define SUB_AUTO_TEXT N_("Autodetect subtitle files")
850
#define SUB_AUTO_LONGTEXT N_( \
851
    "Automatically detect a subtitle file, if no subtitle filename is " \
852
    "specified (based on the filename of the movie).")
853
854
#define SUB_FUZZY_TEXT N_("Subtitle autodetection fuzziness")
855
#define SUB_FUZZY_LONGTEXT N_( \
856
    "This determines how fuzzy subtitle and movie filename matching " \
857
    "will be. Options are:\n" \
858
    "0 = no subtitles autodetected\n" \
859
    "1 = any subtitle file\n" \
860
    "2 = any subtitle file containing the movie name\n" \
861
    "3 = subtitle file matching the movie name with additional chars\n" \
862
    "4 = subtitle file matching the movie name exactly")
863
864
#define SUB_PATH_TEXT N_("Subtitle autodetection paths")
865
#define SUB_PATH_LONGTEXT N_( \
866
    "Look for a subtitle file in those paths too, if your subtitle " \
867
    "file was not found in the current directory.")
868
869
#define SUB_FPS_TEXT  N_("Subtitle Frames per Second")
870
#define SUB_FPS_LONGTEXT \
871
    N_("Override the normal frames per second settings. ")
872
873
#define SUB_DELAY_TEXT N_("Subtitle delay")
874
#define SUB_DELAY_LONGTEXT \
875
    N_("Apply a delay to all subtitles (in 1/10s, eg 100 means 10s).")
876
877
#define SUB_FILE_TEXT N_("Use subtitle file")
878
#define SUB_FILE_LONGTEXT N_( \
879
    "Load this subtitle file. To be used when autodetect cannot detect " \
880
    "your subtitle file.")
881
882
/* DVD and VCD devices */
883
#define DVD_DEV_TEXT N_("DVD device")
884
#define VCD_DEV_TEXT N_("VCD device")
885
#define CDAUDIO_DEV_TEXT N_("Audio CD device")
886
887
#if defined( _WIN32 ) || defined( __OS2__ )
888
# define DVD_DEV_LONGTEXT N_( \
889
    "This is the default DVD drive (or file) to use. Don't forget the colon " \
890
    "after the drive letter (e.g. D:)")
891
# define VCD_DEV_LONGTEXT N_( \
892
    "This is the default VCD drive (or file) to use. Don't forget the colon " \
893
    "after the drive letter (e.g. D:)")
894
# define DVD_DEVICE     NULL
895
# define VCD_DEVICE     "D:"
896
897
#else
898
# define DVD_DEV_LONGTEXT N_( \
899
    "This is the default DVD device to use.")
900
# define VCD_DEV_LONGTEXT N_( \
901
    "This is the default VCD device to use." )
902
903
# if defined(__OpenBSD__)
904
#  define DVD_DEVICE     "/dev/cd0c"
905
#  define VCD_DEVICE     "/dev/cd0c"
906
# elif defined(__linux__)
907
#  define DVD_DEVICE     "/dev/sr0"
908
#  define VCD_DEVICE     "/dev/sr0"
909
# else
910
#  define DVD_DEVICE     "/dev/dvd"
911
#  define VCD_DEVICE     "/dev/cdrom"
912
# endif
913
#endif
914
915
#define TIMEOUT_TEXT N_("TCP connection timeout")
916
#define TIMEOUT_LONGTEXT N_( \
917
    "Default TCP connection timeout (in milliseconds)." )
918
919
#define HTTP_HOST_TEXT N_( "HTTP server address" )
920
#define HOST_LONGTEXT N_( \
921
    "By default, the server will listen on any local IP address. " \
922
    "Specify an IP address (e.g. ::1 or 127.0.0.1) or a host name " \
923
    "(e.g. localhost) to restrict them to a specific network interface." )
924
925
#define RTSP_HOST_TEXT N_( "RTSP server address" )
926
#define RTSP_HOST_LONGTEXT N_( \
927
    "This defines the address the RTSP server will listen on, along " \
928
    "with the base path of the RTSP VOD media. Syntax is address/path. " \
929
    "By default, the server will listen on any local IP address. " \
930
    "Specify an IP address (e.g. ::1 or 127.0.0.1) or a host name " \
931
    "(e.g. localhost) to restrict them to a specific network interface." )
932
933
#define HTTP_PORT_TEXT N_( "HTTP server port" )
934
#define HTTP_PORT_LONGTEXT N_( \
935
    "The HTTP server will listen on this TCP port. " \
936
    "The standard HTTP port number is 80. " \
937
    "However allocation of port numbers below 1025 is usually restricted " \
938
    "by the operating system." )
939
940
#define HTTPS_PORT_TEXT N_( "HTTPS server port" )
941
#define HTTPS_PORT_LONGTEXT N_( \
942
    "The HTTPS server will listen on this TCP port. " \
943
    "The standard HTTPS port number is 443. " \
944
    "However allocation of port numbers below 1025 is usually restricted " \
945
    "by the operating system." )
946
947
#define RTSP_PORT_TEXT N_( "RTSP server port" )
948
#define RTSP_PORT_LONGTEXT N_( \
949
    "The RTSP server will listen on this TCP port. " \
950
    "The standard RTSP port number is 554. " \
951
    "However allocation of port numbers below 1025 is usually restricted " \
952
    "by the operating system." )
953
954
#define HTTP_CERT_TEXT N_("HTTP/TLS server certificate")
955
#define CERT_LONGTEXT N_( \
956
   "This X.509 certificate file (PEM format) is used for server-side TLS. " \
957
   "On OS X, the string is used as a label to search the certificate in the keychain." )
958
959
#define HTTP_KEY_TEXT N_("HTTP/TLS server private key")
960
#define KEY_LONGTEXT N_( \
961
   "This private key file (PEM format) is used for server-side TLS.")
962
963
#define PROXY_TEXT N_("HTTP proxy")
964
#define PROXY_LONGTEXT N_( \
965
    "HTTP proxy to be used It must be of the form " \
966
    "http://[user@]myproxy.mydomain:myport/ ; " \
967
    "if empty, the http_proxy environment variable will be tried." )
968
969
#define PROXY_PASS_TEXT N_("HTTP proxy password")
970
#define PROXY_PASS_LONGTEXT N_( \
971
    "If your HTTP proxy requires a password, set it here." )
972
973
#define SOCKS_SERVER_TEXT N_("SOCKS server")
974
#define SOCKS_SERVER_LONGTEXT N_( \
975
    "SOCKS proxy server to use. This must be of the form " \
976
    "address:port. It will be used for all TCP connections" )
977
978
#define SOCKS_USER_TEXT N_("SOCKS user name")
979
#define SOCKS_USER_LONGTEXT N_( \
980
    "User name to be used for connection to the SOCKS proxy." )
981
982
#define SOCKS_PASS_TEXT N_("SOCKS password")
983
#define SOCKS_PASS_LONGTEXT N_( \
984
    "Password to be used for connection to the SOCKS proxy." )
985
986
#define META_TITLE_TEXT N_("Title metadata")
987
#define META_TITLE_LONGTEXT N_( \
988
     "Allows you to specify a \"title\" metadata for an input.")
989
990
#define META_AUTHOR_TEXT N_("Author metadata")
991
#define META_AUTHOR_LONGTEXT N_( \
992
     "Allows you to specify an \"author\" metadata for an input.")
993
994
#define META_ARTIST_TEXT N_("Artist metadata")
995
#define META_ARTIST_LONGTEXT N_( \
996
     "Allows you to specify an \"artist\" metadata for an input.")
997
998
#define META_GENRE_TEXT N_("Genre metadata")
999
#define META_GENRE_LONGTEXT N_( \
1000
     "Allows you to specify a \"genre\" metadata for an input.")
1001
1002
#define META_CPYR_TEXT N_("Copyright metadata")
1003
#define META_CPYR_LONGTEXT N_( \
1004
     "Allows you to specify a \"copyright\" metadata for an input.")
1005
1006
#define META_DESCR_TEXT N_("Description metadata")
1007
#define META_DESCR_LONGTEXT N_( \
1008
     "Allows you to specify a \"description\" metadata for an input.")
1009
1010
#define META_DATE_TEXT N_("Date metadata")
1011
#define META_DATE_LONGTEXT N_( \
1012
     "Allows you to specify a \"date\" metadata for an input.")
1013
1014
#define META_URL_TEXT N_("URL metadata")
1015
#define META_URL_LONGTEXT N_( \
1016
     "Allows you to specify a \"url\" metadata for an input.")
1017
1018
// DEPRECATED
1019
#define CODEC_CAT_LONGTEXT N_( \
1020
    "These options allow you to control the preferred modules used for " \
1021
    "accessing, demuxing and decoding (or encoding) inputs." )
1022
1023
#define CODEC_TEXT N_("Preferred decoders list")
1024
#define CODEC_LONGTEXT N_( \
1025
    "List of codecs that VLC will use in " \
1026
    "priority. For instance, 'dummy,a52' will try the dummy and a52 codecs " \
1027
    "before trying the other ones. Only advanced users should " \
1028
    "alter this option as it can break playback of all your streams." )
1029
1030
#define HW_DEC_TEXT N_("Enable hardware decoders")
1031
#define HW_DEC_LONGTEXT N_( \
1032
    "VLC will fallback automatically to software decoders in case of " \
1033
    "hardware decoder failure." )
1034
1035
#define DEC_DEV_TEXT N_("Preferred decoder hardware device")
1036
#define DEC_DEV_LONGTEXT N_("This allows hardware decoding when available.")
1037
1038
/*****************************************************************************
1039
 * Sout
1040
 ****************************************************************************/
1041
1042
// DEPRECATED
1043
#define SOUT_CAT_LONGTEXT N_( \
1044
    "These options allow you to set default global options for the " \
1045
    "stream output subsystem." )
1046
1047
#define SOUT_TEXT N_("Default stream output chain")
1048
#define SOUT_LONGTEXT N_( \
1049
    "You can enter here a default stream output chain. Refer to "\
1050
    "the documentation to learn how to build such chains. " \
1051
    "Warning: this chain will be enabled for all streams." )
1052
1053
#define SOUT_ALL_TEXT N_("Enable streaming of all ES")
1054
#define SOUT_ALL_LONGTEXT N_( \
1055
    "Stream all elementary streams (video, audio and subtitles)")
1056
1057
#define SOUT_DISPLAY_TEXT N_("Display while streaming")
1058
#define SOUT_DISPLAY_LONGTEXT N_( \
1059
    "Play locally the stream while streaming it.")
1060
1061
#define SOUT_VIDEO_TEXT N_("Enable video stream output")
1062
#define SOUT_VIDEO_LONGTEXT N_( \
1063
    "Choose whether the video stream should be redirected to " \
1064
    "the stream output facility when this last one is enabled.")
1065
1066
#define SOUT_AUDIO_TEXT N_("Enable audio stream output")
1067
#define SOUT_AUDIO_LONGTEXT N_( \
1068
    "Choose whether the audio stream should be redirected to " \
1069
    "the stream output facility when this last one is enabled.")
1070
1071
#define SOUT_SPU_TEXT N_("Enable SPU stream output")
1072
#define SOUT_SPU_LONGTEXT N_( \
1073
    "Choose whether the SPU streams should be redirected to " \
1074
    "the stream output facility when this last one is enabled.")
1075
1076
#define SOUT_KEEP_TEXT N_("Keep stream output open" )
1077
#define SOUT_KEEP_LONGTEXT N_( \
1078
    "This allows you to keep an unique stream output instance across " \
1079
    "multiple playlist item." )
1080
1081
#define SOUT_MUX_CACHING_TEXT N_("Stream output muxer caching (ms)")
1082
#define SOUT_MUX_CACHING_LONGTEXT N_( \
1083
    "This allow you to configure the initial caching amount for stream output " \
1084
    "muxer. This value should be set in milliseconds." )
1085
1086
#define PACKETIZER_TEXT N_("Preferred packetizer list")
1087
#define PACKETIZER_LONGTEXT N_( \
1088
    "This allows you to select the order in which VLC will choose its " \
1089
    "packetizers."  )
1090
1091
#define ANN_SAPINTV_TEXT N_("SAP announcement interval")
1092
#define ANN_SAPINTV_LONGTEXT N_( \
1093
    "When the SAP flow control is disabled, " \
1094
    "this lets you set the fixed interval between SAP announcements." )
1095
1096
/*****************************************************************************
1097
 * Advanced
1098
 ****************************************************************************/
1099
1100
#define ACCESS_TEXT N_("Access module")
1101
#define ACCESS_LONGTEXT N_( \
1102
    "This allows you to force an access module. You can use it if " \
1103
    "the correct access is not automatically detected. You should not "\
1104
    "set this as a global option unless you really know what you are doing." )
1105
1106
#define STREAM_FILTER_TEXT N_("Stream filter module")
1107
#define STREAM_FILTER_LONGTEXT N_( \
1108
    "Stream filters are used to modify the stream that is being read." )
1109
1110
#define DEMUX_FILTER_TEXT N_("Demux filter module")
1111
#define DEMUX_FILTER_LONGTEXT N_( \
1112
    "Demux filters are used to modify/control the stream that is being read." )
1113
1114
#define DEMUX_TEXT N_("Demux module")
1115
#define DEMUX_LONGTEXT N_( \
1116
    "Demultiplexers are used to separate the \"elementary\" streams " \
1117
    "(like audio and video streams). You can use it if " \
1118
    "the correct demuxer is not automatically detected. You should not "\
1119
    "set this as a global option unless you really know what you are doing." )
1120
1121
#define TRACER_TEXT N_("Tracer module")
1122
#define TRACER_LONGTEXT N_( \
1123
    "This allow to select which tracer module you want to use." )
1124
1125
#define VLM_CONF_TEXT N_("VLM configuration file")
1126
#define VLM_CONF_LONGTEXT N_( \
1127
    "Read a VLM configuration file as soon as VLM is started." )
1128
1129
#define PLUGINS_CACHE_TEXT N_("Use a plugins cache")
1130
#define PLUGINS_CACHE_LONGTEXT N_( \
1131
    "Use a plugins cache which will greatly improve the startup time of VLC.")
1132
1133
#define PLUGINS_SCAN_TEXT N_("Scan for new plugins")
1134
#define PLUGINS_SCAN_LONGTEXT N_( \
1135
    "Scan plugin directories for new plugins at startup. " \
1136
    "This increases the startup time of VLC.")
1137
1138
#define KEYSTORE_TEXT N_("Preferred keystore list")
1139
#define KEYSTORE_LONGTEXT N_( \
1140
    "List of keystores that VLC will use in priority." )
1141
1142
#define STATS_TEXT N_("Locally collect statistics")
1143
#define STATS_LONGTEXT N_( \
1144
     "Collect miscellaneous local statistics about the playing media.")
1145
1146
#define STATSFREQ_TEXT N_("Statistics collection frequency")
1147
#define STATSFREQ_LONGTEXT N_( \
1148
     "Collection frequency of the statistics in ms.")
1149
1150
#define ONEINSTANCE_TEXT N_("Allow only one running instance")
1151
#define ONEINSTANCE_LONGTEXT N_( \
1152
    "Allowing only one running instance of VLC can sometimes be useful, " \
1153
    "for example if you associated VLC with some media types and you " \
1154
    "don't want a new instance of VLC to be opened each time you " \
1155
    "open a file in your file manager. This option will allow you " \
1156
    "to play the file with the already running instance or enqueue it.")
1157
1158
#define STARTEDFROMFILE_TEXT N_("VLC is started from file association")
1159
#define STARTEDFROMFILE_LONGTEXT N_( \
1160
    "Tell VLC that it is being launched due to a file association in the OS" )
1161
1162
#define ONEINSTANCEWHENSTARTEDFROMFILE_TEXT N_( \
1163
    "Use only one instance when started from file manager")
1164
1165
#define HPRIORITY_TEXT N_("Increase the priority of the process")
1166
#define HPRIORITY_LONGTEXT N_( \
1167
    "Increasing the priority of the process will very likely improve your " \
1168
    "playing experience as it allows VLC not to be disturbed by other " \
1169
    "applications that could otherwise take too much processor time. " \
1170
    "However be advised that in certain circumstances (bugs) VLC could take " \
1171
    "all the processor time and render the whole system unresponsive which " \
1172
    "might require a reboot of your machine.")
1173
1174
#define CLOCK_SOURCE_TEXT N_("Clock source")
1175
#ifdef _WIN32
1176
static const char *const clock_sources[] = {
1177
    "", "perf",
1178
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
1179
    "multimedia",
1180
#endif
1181
};
1182
1183
static const char *const clock_sources_text[] = {
1184
    N_("Auto"), "Performance counters",
1185
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
1186
    "Multimedia timers",
1187
#endif
1188
};
1189
#endif
1190
1191
#define PLAYLISTENQUEUE_TEXT N_( \
1192
    "Enqueue items into playlist in one instance mode")
1193
#define PLAYLISTENQUEUE_LONGTEXT N_( \
1194
    "When using the one instance only option, enqueue items to playlist " \
1195
    "and keep playing current item.")
1196
1197
#define DBUS_TEXT N_("Expose media player via D-Bus")
1198
#define DBUS_LONGTEXT N_("Allow other applications to control VLC " \
1199
    "using the D-Bus MPRIS protocol.")
1200
1201
/*****************************************************************************
1202
 * Playlist
1203
 ****************************************************************************/
1204
1205
// DEPRECATED
1206
#define PLAYLIST_CAT_LONGTEXT N_( \
1207
     "These options define the behavior of the playlist. Some " \
1208
     "of them can be overridden in the playlist dialog box." )
1209
1210
#define PREPARSE_TEXT N_( "Automatically preparse items")
1211
#define PREPARSE_LONGTEXT N_( \
1212
    "Automatically preparse items added to the playlist " \
1213
    "(to retrieve some metadata)." )
1214
1215
#define PREPARSE_TIMEOUT_TEXT N_( "Preparsing timeout" )
1216
#define PREPARSE_TIMEOUT_LONGTEXT N_( \
1217
    "Maximum time allowed to preparse an item, in milliseconds" )
1218
1219
#define PREPARSE_THREADS_TEXT N_( "Preparsing threads" )
1220
#define PREPARSE_THREADS_LONGTEXT N_( \
1221
    "Maximum number of threads used to preparse items" )
1222
1223
#define FETCH_ART_THREADS_TEXT N_( "Fetch-art threads" )
1224
#define FETCH_ART_THREADS_LONGTEXT N_( \
1225
    "Maximum number of threads used to fetch art" )
1226
1227
#define METADATA_NETWORK_TEXT N_( "Allow metadata network access" )
1228
1229
static const char *const psz_recursive_list[] = {
1230
    "none", "collapse", "expand" };
1231
static const char *const psz_recursive_list_text[] = {
1232
    N_("None"), N_("Collapse"), N_("Expand") };
1233
1234
#define RECURSIVE_TEXT N_("Subdirectory behavior")
1235
#define RECURSIVE_LONGTEXT N_( \
1236
        "Select whether subdirectories must be expanded.\n" \
1237
        "none: subdirectories do not appear in the playlist.\n" \
1238
        "collapse: subdirectories appear but are expanded on first play.\n" \
1239
        "expand: all subdirectories are expanded.\n" )
1240
1241
#define IGNORE_TEXT N_("Ignored extensions")
1242
#define IGNORE_LONGTEXT N_( \
1243
        "Files with these extensions will not be added to playlist when " \
1244
        "opening a directory.\n" \
1245
        "This is useful if you add directories that contain playlist files " \
1246
        "for instance. Use a comma-separated list of extensions." )
1247
1248
#define SHOW_HIDDENFILES_TEXT N_("Show hidden files")
1249
#define SHOW_HIDDENFILES_LONGTEXT N_( \
1250
        "Ignore files starting with '.'" )
1251
1252
#define EXTRACTOR_FLATTEN N_("Flatten files listed by extractors (archive)")
1253
1254
#define SD_TEXT N_( "Services discovery modules")
1255
#define SD_LONGTEXT N_( \
1256
     "Specifies the services discovery modules to preload, separated by " \
1257
     "colons. Typical value is \"sap\"." )
1258
1259
#define RANDOM_TEXT N_("Play files randomly forever")
1260
#define RANDOM_LONGTEXT N_( \
1261
    "VLC will randomly play files in the playlist until interrupted.")
1262
1263
#define LOOP_TEXT N_("Repeat all")
1264
#define LOOP_LONGTEXT N_( \
1265
    "VLC will keep playing the playlist indefinitely." )
1266
1267
#define REPEAT_TEXT N_("Repeat current item")
1268
#define REPEAT_LONGTEXT N_( \
1269
    "VLC will keep playing the current playlist item." )
1270
1271
#define PAS_TEXT N_("Play and stop")
1272
#define PAS_LONGTEXT N_( \
1273
    "Stop the playlist after each played playlist item." )
1274
1275
#define PAE_TEXT N_("Play and exit")
1276
#define PAE_LONGTEXT N_( \
1277
    "Exit if there are no more items in the playlist." )
1278
1279
#define PAP_TEXT N_("Play and pause")
1280
#define PAP_LONGTEXT N_( \
1281
    "Pause each item in the playlist on the last frame." )
1282
1283
#define SP_TEXT N_("Start paused")
1284
#define SP_LONGTEXT N_( \
1285
    "Pause each item in the playlist on the first frame." )
1286
1287
#define AUTOSTART_TEXT N_( "Auto start" )
1288
#define AUTOSTART_LONGTEXT N_( "Automatically start playing the playlist " \
1289
                "content once it's loaded." )
1290
1291
#define CORK_TEXT N_("Pause on audio communication")
1292
#define CORK_LONGTEXT N_( \
1293
    "If pending audio communication is detected, playback will be paused " \
1294
    "automatically." )
1295
1296
#define ML_TEXT N_("Use media library")
1297
#define ML_LONGTEXT N_( \
1298
    "The media library is automatically saved and reloaded each time you " \
1299
    "start VLC." )
1300
1301
#define PLTREE_TEXT N_("Display playlist tree")
1302
#define PLTREE_LONGTEXT N_( \
1303
    "The playlist can use a tree to categorize some items, like the " \
1304
    "contents of a directory." )
1305
1306
#define BOOKMARK1_TEXT N_("Playlist bookmark 1")
1307
#define BOOKMARK2_TEXT N_("Playlist bookmark 2")
1308
#define BOOKMARK3_TEXT N_("Playlist bookmark 3")
1309
#define BOOKMARK4_TEXT N_("Playlist bookmark 4")
1310
#define BOOKMARK5_TEXT N_("Playlist bookmark 5")
1311
#define BOOKMARK6_TEXT N_("Playlist bookmark 6")
1312
#define BOOKMARK7_TEXT N_("Playlist bookmark 7")
1313
#define BOOKMARK8_TEXT N_("Playlist bookmark 8")
1314
#define BOOKMARK9_TEXT N_("Playlist bookmark 9")
1315
#define BOOKMARK10_TEXT N_("Playlist bookmark 10")
1316
#define BOOKMARK_LONGTEXT N_("This allows you to define playlist bookmarks.")
1317
1318
/*****************************************************************************
1319
 * Hotkeys
1320
 ****************************************************************************/
1321
1322
// DEPRECATED
1323
#define HOTKEY_CAT_LONGTEXT N_( "These settings are the global VLC key " \
1324
    "bindings, known as \"hotkeys\"." )
1325
1326
static const int mouse_wheel_values[] = { -1, 0, 2, 3, };
1327
static const char *const mouse_wheel_texts[] = {
1328
    N_("Ignore"), N_("Volume control"),
1329
    N_("Position control"), N_("Position control reversed"),
1330
};
1331
1332
#define MOUSE_Y_WHEEL_MODE_TEXT N_("Mouse wheel vertical axis control")
1333
#define MOUSE_Y_WHEEL_MODE_LONGTEXT N_( \
1334
   "The mouse wheel vertical (up/down) axis can control volume, " \
1335
   "position or be ignored.")
1336
#define MOUSE_X_WHEEL_MODE_TEXT N_("Mouse wheel horizontal axis control")
1337
#define MOUSE_X_WHEEL_MODE_LONGTEXT N_( \
1338
   "The mouse wheel horizontal (left/right) axis can control volume, " \
1339
   "position or be ignored.")
1340
#define TOGGLE_FULLSCREEN_KEY_TEXT N_("Fullscreen")
1341
#define TOGGLE_FULLSCREEN_KEY_LONGTEXT N_("Select the hotkey to use to swap fullscreen state.")
1342
#define LEAVE_FULLSCREEN_KEY_TEXT N_("Exit fullscreen")
1343
#define LEAVE_FULLSCREEN_KEY_LONGTEXT N_("Select the hotkey to use to exit fullscreen state.")
1344
#define PLAY_PAUSE_KEY_TEXT N_("Play/Pause")
1345
#define PLAY_PAUSE_KEY_LONGTEXT N_("Select the hotkey to use to swap paused state.")
1346
#define PAUSE_KEY_TEXT N_("Pause only")
1347
#define PAUSE_KEY_LONGTEXT N_("Select the hotkey to use to pause.")
1348
#define PLAY_KEY_TEXT N_("Play only")
1349
#define PLAY_KEY_LONGTEXT N_("Select the hotkey to use to play.")
1350
#define FASTER_KEY_TEXT N_("Faster")
1351
#define FASTER_KEY_LONGTEXT N_("Select the hotkey to use for fast forward playback.")
1352
#define SLOWER_KEY_TEXT N_("Slower")
1353
#define SLOWER_KEY_LONGTEXT N_("Select the hotkey to use for slow motion playback.")
1354
#define RATE_NORMAL_KEY_TEXT N_("Normal rate")
1355
#define RATE_NORMAL_KEY_LONGTEXT N_("Select the hotkey to set the playback rate back to normal.")
1356
#define RATE_FASTER_FINE_KEY_TEXT N_("Faster (fine)")
1357
#define RATE_FASTER_FINE_KEY_LONGTEXT N_("Select the hotkey to use for fast forward playback.")
1358
#define RATE_SLOWER_FINE_KEY_TEXT N_("Slower (fine)")
1359
#define RATE_SLOWER_FINE_KEY_LONGTEXT N_("Select the hotkey to use for slow motion playback.")
1360
#define NEXT_KEY_TEXT N_("Next")
1361
#define NEXT_KEY_LONGTEXT N_("Select the hotkey to use to skip to the next item in the playlist.")
1362
#define PREV_KEY_TEXT N_("Previous")
1363
#define PREV_KEY_LONGTEXT N_("Select the hotkey to use to skip to the previous item in the playlist.")
1364
#define STOP_KEY_TEXT N_("Stop")
1365
#define STOP_KEY_LONGTEXT N_("Select the hotkey to stop playback.")
1366
#define POSITION_KEY_TEXT N_("Position")
1367
#define POSITION_KEY_LONGTEXT N_("Select the hotkey to display the position.")
1368
1369
#define JBEXTRASHORT_KEY_TEXT N_("Very short backwards jump")
1370
#define JBEXTRASHORT_KEY_LONGTEXT \
1371
    N_("Select the hotkey to make a very short backwards jump.")
1372
#define JBSHORT_KEY_TEXT N_("Short backwards jump")
1373
#define JBSHORT_KEY_LONGTEXT \
1374
    N_("Select the hotkey to make a short backwards jump.")
1375
#define JBMEDIUM_KEY_TEXT N_("Medium backwards jump")
1376
#define JBMEDIUM_KEY_LONGTEXT \
1377
    N_("Select the hotkey to make a medium backwards jump.")
1378
#define JBLONG_KEY_TEXT N_("Long backwards jump")
1379
#define JBLONG_KEY_LONGTEXT \
1380
    N_("Select the hotkey to make a long backwards jump.")
1381
1382
#define JFEXTRASHORT_KEY_TEXT N_("Very short forward jump")
1383
#define JFEXTRASHORT_KEY_LONGTEXT \
1384
    N_("Select the hotkey to make a very short forward jump.")
1385
#define JFSHORT_KEY_TEXT N_("Short forward jump")
1386
#define JFSHORT_KEY_LONGTEXT \
1387
    N_("Select the hotkey to make a short forward jump.")
1388
#define JFMEDIUM_KEY_TEXT N_("Medium forward jump")
1389
#define JFMEDIUM_KEY_LONGTEXT \
1390
    N_("Select the hotkey to make a medium forward jump.")
1391
#define JFLONG_KEY_TEXT N_("Long forward jump")
1392
#define JFLONG_KEY_LONGTEXT \
1393
    N_("Select the hotkey to make a long forward jump.")
1394
#define FRAME_NEXT_KEY_TEXT N_("Next frame")
1395
#define FRAME_NEXT_KEY_LONGTEXT \
1396
    N_("Select the hotkey to got to the next video frame.")
1397
1398
#define JIEXTRASHORT_TEXT N_("Very short jump length")
1399
#define JIEXTRASHORT_LONGTEXT N_("Very short jump length, in seconds.")
1400
#define JISHORT_TEXT N_("Short jump length")
1401
#define JISHORT_LONGTEXT N_("Short jump length, in seconds.")
1402
#define JIMEDIUM_TEXT N_("Medium jump length")
1403
#define JIMEDIUM_LONGTEXT N_("Medium jump length, in seconds.")
1404
#define JILONG_TEXT N_("Long jump length")
1405
#define JILONG_LONGTEXT N_("Long jump length, in seconds.")
1406
1407
#define QUIT_KEY_TEXT N_("Quit")
1408
#define QUIT_KEY_LONGTEXT N_("Select the hotkey to quit the application.")
1409
#define NAV_UP_KEY_TEXT N_("Navigate up")
1410
#define NAV_UP_KEY_LONGTEXT N_("Select the key to move the selector up in DVD menus / Move viewpoint to up (pitch).")
1411
#define NAV_DOWN_KEY_TEXT N_("Navigate down")
1412
#define NAV_DOWN_KEY_LONGTEXT N_("Select the key to move the selector down in DVD menus / Move viewpoint to down (pitch).")
1413
#define NAV_LEFT_KEY_TEXT N_("Navigate left")
1414
#define NAV_LEFT_KEY_LONGTEXT N_("Select the key to move the selector left in DVD menus / Move viewpoint to left (yaw).")
1415
#define NAV_RIGHT_KEY_TEXT N_("Navigate right")
1416
#define NAV_RIGHT_KEY_LONGTEXT N_("Select the key to move the selector right in DVD menus / Move viewpoint to right (yaw).")
1417
#define NAV_ACTIVATE_KEY_TEXT N_("Activate")
1418
#define NAV_ACTIVATE_KEY_LONGTEXT N_("Select the key to activate selected item in DVD menus.")
1419
#define DISC_MENU_TEXT N_("Go to the DVD menu")
1420
#define DISC_MENU_LONGTEXT N_("Select the key to take you to the DVD menu")
1421
#define TITLE_PREV_TEXT N_("Select previous DVD title")
1422
#define TITLE_PREV_LONGTEXT N_("Select the key to choose the previous title from the DVD")
1423
#define TITLE_NEXT_TEXT N_("Select next DVD title")
1424
#define TITLE_NEXT_LONGTEXT N_("Select the key to choose the next title from the DVD")
1425
#define CHAPTER_PREV_TEXT N_("Select prev DVD chapter")
1426
#define CHAPTER_PREV_LONGTEXT N_("Select the key to choose the previous chapter from the DVD")
1427
#define CHAPTER_NEXT_TEXT N_("Select next DVD chapter")
1428
#define CHAPTER_NEXT_LONGTEXT N_("Select the key to choose the next chapter from the DVD")
1429
#define VOL_UP_KEY_TEXT N_("Volume up")
1430
#define VOL_UP_KEY_LONGTEXT N_("Select the key to increase audio volume.")
1431
#define VOL_DOWN_KEY_TEXT N_("Volume down")
1432
#define VOL_DOWN_KEY_LONGTEXT N_("Select the key to decrease audio volume.")
1433
#define VOL_MUTE_KEY_TEXT N_("Mute")
1434
#define VOL_MUTE_KEY_LONGTEXT N_("Select the key to mute audio.")
1435
#define SUBDELAY_UP_KEY_TEXT N_("Subtitle delay up")
1436
#define SUBDELAY_UP_KEY_LONGTEXT N_("Select the key to increase the subtitle delay.")
1437
#define SUBDELAY_DOWN_KEY_TEXT N_("Subtitle delay down")
1438
#define SUBDELAY_DOWN_KEY_LONGTEXT N_("Select the key to decrease the subtitle delay.")
1439
#define SUBTEXT_SCALE_KEY_TEXT     N_("Reset subtitles text scale")
1440
#define SUBTEXT_SCALEDOWN_KEY_TEXT N_("Scale up subtitles text")
1441
#define SUBTEXT_SCALEUP_KEY_TEXT   N_("Scale down subtitles text")
1442
#define SUBTEXT_SCALE_KEY_LONGTEXT N_("Select the key to change subtitles text scaling")
1443
#define SUBSYNC_MARKAUDIO_KEY_TEXT N_("Subtitle sync / bookmark audio timestamp")
1444
#define SUBSYNC_MARKAUDIO_KEY_LONGTEXT N_("Select the key to bookmark audio timestamp when syncing subtitles.")
1445
#define SUBSYNC_MARKSUB_KEY_TEXT N_("Subtitle sync / bookmark subtitle timestamp")
1446
#define SUBSYNC_MARKSUB_KEY_LONGTEXT N_("Select the key to bookmark subtitle timestamp when syncing subtitles.")
1447
#define SUBSYNC_APPLY_KEY_TEXT N_("Subtitle sync / synchronize audio & subtitle timestamps")
1448
#define SUBSYNC_APPLY_KEY_LONGTEXT N_("Select the key to synchronize bookmarked audio & subtitle timestamps.")
1449
#define SUBSYNC_RESET_KEY_TEXT N_("Subtitle sync / reset audio & subtitle synchronization")
1450
#define SUBSYNC_RESET_KEY_LONGTEXT N_("Select the key to reset synchronization of audio & subtitle timestamps.")
1451
#define SUBPOS_UP_KEY_TEXT N_("Subtitle position up")
1452
#define SUBPOS_UP_KEY_LONGTEXT N_("Select the key to move subtitles higher.")
1453
#define SUBPOS_DOWN_KEY_TEXT N_("Subtitle position down")
1454
#define SUBPOS_DOWN_KEY_LONGTEXT N_("Select the key to move subtitles lower.")
1455
#define AUDIODELAY_UP_KEY_TEXT N_("Audio delay up")
1456
#define AUDIODELAY_UP_KEY_LONGTEXT N_("Select the key to increase the audio delay.")
1457
#define AUDIODELAY_DOWN_KEY_TEXT N_("Audio delay down")
1458
#define AUDIODELAY_DOWN_KEY_LONGTEXT N_("Select the key to decrease the audio delay.")
1459
1460
#define ZOOM_QUARTER_KEY_TEXT N_("1:4 Quarter")
1461
#define ZOOM_HALF_KEY_TEXT N_("1:2 Half")
1462
#define ZOOM_ORIGINAL_KEY_TEXT N_("1:1 Original")
1463
#define ZOOM_DOUBLE_KEY_TEXT N_("2:1 Double")
1464
#define ZOOM_LEVEL_KEY_LONGTEXT N_("Select the hotkey to use to zoom to the corresponding level.")
1465
1466
#define PLAY_BOOKMARK1_KEY_TEXT N_("Play playlist bookmark 1")
1467
#define PLAY_BOOKMARK2_KEY_TEXT N_("Play playlist bookmark 2")
1468
#define PLAY_BOOKMARK3_KEY_TEXT N_("Play playlist bookmark 3")
1469
#define PLAY_BOOKMARK4_KEY_TEXT N_("Play playlist bookmark 4")
1470
#define PLAY_BOOKMARK5_KEY_TEXT N_("Play playlist bookmark 5")
1471
#define PLAY_BOOKMARK6_KEY_TEXT N_("Play playlist bookmark 6")
1472
#define PLAY_BOOKMARK7_KEY_TEXT N_("Play playlist bookmark 7")
1473
#define PLAY_BOOKMARK8_KEY_TEXT N_("Play playlist bookmark 8")
1474
#define PLAY_BOOKMARK9_KEY_TEXT N_("Play playlist bookmark 9")
1475
#define PLAY_BOOKMARK10_KEY_TEXT N_("Play playlist bookmark 10")
1476
#define PLAY_BOOKMARK_KEY_LONGTEXT N_("Select the key to play this bookmark.")
1477
#define SET_BOOKMARK1_KEY_TEXT N_("Set playlist bookmark 1")
1478
#define SET_BOOKMARK2_KEY_TEXT N_("Set playlist bookmark 2")
1479
#define SET_BOOKMARK3_KEY_TEXT N_("Set playlist bookmark 3")
1480
#define SET_BOOKMARK4_KEY_TEXT N_("Set playlist bookmark 4")
1481
#define SET_BOOKMARK5_KEY_TEXT N_("Set playlist bookmark 5")
1482
#define SET_BOOKMARK6_KEY_TEXT N_("Set playlist bookmark 6")
1483
#define SET_BOOKMARK7_KEY_TEXT N_("Set playlist bookmark 7")
1484
#define SET_BOOKMARK8_KEY_TEXT N_("Set playlist bookmark 8")
1485
#define SET_BOOKMARK9_KEY_TEXT N_("Set playlist bookmark 9")
1486
#define SET_BOOKMARK10_KEY_TEXT N_("Set playlist bookmark 10")
1487
#define SET_BOOKMARK_KEY_LONGTEXT N_("Select the key to set this playlist bookmark.")
1488
#define PLAY_CLEAR_KEY_TEXT N_("Clear the playlist")
1489
#define PLAY_CLEAR_KEY_LONGTEXT N_("Select the key to clear the current playlist.")
1490
1491
#define AUDIO_TRACK_KEY_TEXT N_("Cycle audio track")
1492
#define AUDIO_TRACK_KEY_LONGTEXT N_("Cycle through the available audio tracks(languages).")
1493
#define SUBTITLE_REVERSE_TRACK_KEY_TEXT N_("Cycle subtitle track in reverse order")
1494
#define SUBTITLE_REVERSE_TRACK_KEY_LONGTEXT N_("Cycle through the available subtitle tracks in reverse order.")
1495
#define SUBTITLE_TRACK_KEY_TEXT N_("Cycle subtitle track")
1496
#define SUBTITLE_TRACK_KEY_LONGTEXT N_("Cycle through the available subtitle tracks.")
1497
#define SUBTITLE_TOGGLE_KEY_TEXT N_("Toggle subtitles")
1498
#define SUBTITLE_TOGGLE_KEY_LONGTEXT N_("Toggle subtitle track visibility.")
1499
#define SUBTITLE_CONTROL_SECONDARY_KEY_TEXT N_("Toggle secondary subtitle control")
1500
#define SUBTITLE_CONTROL_SECONDARY_KEY_LONGTEXT N_("Use original subtitle controls to manage secondary subtitles.")
1501
#define PROGRAM_SID_NEXT_KEY_TEXT N_("Cycle next program Service ID")
1502
#define PROGRAM_SID_NEXT_KEY_LONGTEXT N_("Cycle through the available next program Service IDs (SIDs).")
1503
#define PROGRAM_SID_PREV_KEY_TEXT N_("Cycle previous program Service ID")
1504
#define PROGRAM_SID_PREV_KEY_LONGTEXT N_("Cycle through the available previous program Service IDs (SIDs).")
1505
#define ASPECT_RATIO_KEY_TEXT N_("Cycle source aspect ratio")
1506
#define ASPECT_RATIO_KEY_LONGTEXT N_("Cycle through a predefined list of source aspect ratios.")
1507
#define CROP_KEY_TEXT N_("Cycle video crop")
1508
#define CROP_KEY_LONGTEXT N_("Cycle through a predefined list of crop formats.")
1509
#define TOGGLE_AUTOSCALE_KEY_TEXT N_("Toggle autoscaling")
1510
#define TOGGLE_AUTOSCALE_KEY_LONGTEXT N_("Activate or deactivate autoscaling.")
1511
#define SCALE_UP_KEY_TEXT N_("Increase scale factor")
1512
#define SCALE_UP_KEY_LONGTEXT SCALE_UP_KEY_TEXT
1513
#define SCALE_DOWN_KEY_TEXT N_("Decrease scale factor")
1514
#define SCALE_DOWN_KEY_LONGTEXT SCALE_DOWN_KEY_TEXT
1515
#define DEINTERLACE_KEY_TEXT N_("Toggle deinterlacing")
1516
#define DEINTERLACE_KEY_LONGTEXT N_("Activate or deactivate deinterlacing.")
1517
#define DEINTERLACE_MODE_KEY_TEXT N_("Cycle deinterlace modes")
1518
#define DEINTERLACE_MODE_KEY_LONGTEXT N_("Cycle through available deinterlace modes.")
1519
#define INTF_TOGGLE_FSC_KEY_TEXT N_("Show controller in fullscreen")
1520
#define INTF_TOGGLE_FSC_KEY_LONGTEXT N_("Select the hotkey to use to toggle visibility of controls in fullscreen mode.")
1521
#define INTF_BOSS_KEY_TEXT N_("Boss key")
1522
#define INTF_BOSS_KEY_LONGTEXT N_("Hide the interface and pause playback.")
1523
#define INTF_POPUP_MENU_KEY_TEXT N_("Context menu")
1524
#define INTF_POPUP_MENU_KEY_LONGTEXT N_("Show the contextual popup menu.")
1525
#define SNAP_KEY_TEXT N_("Take video snapshot")
1526
#define SNAP_KEY_LONGTEXT N_("Takes a video snapshot and writes it to disk.")
1527
1528
#define RECORD_KEY_TEXT N_("Record")
1529
#define RECORD_KEY_LONGTEXT N_("Record access filter start/stop.")
1530
1531
#define LOOP_KEY_TEXT N_("Normal/Loop/Repeat")
1532
#define LOOP_KEY_LONGTEXT N_("Toggle Normal/Loop/Repeat playlist modes")
1533
1534
#define RANDOM_KEY_TEXT N_("Random")
1535
#define RANDOM_KEY_LONGTEXT N_("Toggle random playlist playback")
1536
1537
#define ZOOM_KEY_TEXT N_("Zoom")
1538
#define ZOOM_KEY_LONGTEXT N_("Zoom")
1539
1540
#define UNZOOM_KEY_TEXT N_("Un-Zoom")
1541
#define UNZOOM_KEY_LONGTEXT N_("Un-Zoom")
1542
1543
#define CROP_TOP_KEY_TEXT N_("Crop one pixel from the top of the video")
1544
#define CROP_TOP_KEY_LONGTEXT N_("Crop one pixel from the top of the video")
1545
#define UNCROP_TOP_KEY_TEXT N_("Uncrop one pixel from the top of the video")
1546
#define UNCROP_TOP_KEY_LONGTEXT N_("Uncrop one pixel from the top of the video")
1547
1548
#define CROP_LEFT_KEY_TEXT N_("Crop one pixel from the left of the video")
1549
#define CROP_LEFT_KEY_LONGTEXT N_("Crop one pixel from the left of the video")
1550
#define UNCROP_LEFT_KEY_TEXT N_("Uncrop one pixel from the left of the video")
1551
#define UNCROP_LEFT_KEY_LONGTEXT N_("Uncrop one pixel from the left of the video")
1552
1553
#define CROP_BOTTOM_KEY_TEXT N_("Crop one pixel from the bottom of the video")
1554
#define CROP_BOTTOM_KEY_LONGTEXT N_("Crop one pixel from the bottom of the video")
1555
#define UNCROP_BOTTOM_KEY_TEXT N_("Uncrop one pixel from the bottom of the video")
1556
#define UNCROP_BOTTOM_KEY_LONGTEXT N_("Uncrop one pixel from the bottom of the video")
1557
1558
#define CROP_RIGHT_KEY_TEXT N_("Crop one pixel from the right of the video")
1559
#define CROP_RIGHT_KEY_LONGTEXT N_("Crop one pixel from the right of the video")
1560
#define UNCROP_RIGHT_KEY_TEXT N_("Uncrop one pixel from the right of the video")
1561
#define UNCROP_RIGHT_KEY_LONGTEXT N_("Uncrop one pixel from the right of the video")
1562
1563
/* 360° Viewpoint */
1564
#define VIEWPOINT_FOV_IN_KEY_TEXT N_("Shrink the viewpoint field of view (360°)")
1565
#define VIEWPOINT_FOV_IN_KEY_LONGTEXT N_("Select the hotkey to use to shrink the viewpoint (360°) field of view.")
1566
#define VIEWPOINT_FOV_OUT_KEY_TEXT N_("Expand the viewpoint field of view (360°)")
1567
#define VIEWPOINT_FOV_OUT_KEY_LONGTEXT N_("Select the hotkey to use to expand the viewpoint (360°) field of view.")
1568
#define VIEWPOINT_ROLL_CLOCK_KEY_TEXT N_("Roll the viewpoint clockwise (360°)")
1569
#define VIEWPOINT_ROLL_CLOCK_KEY_LONGTEXT N_("Select the hotkey to use for viewpoint (360°) clockwise roll.")
1570
#define VIEWPOINT_ROLL_ANTICLOCK_KEY_TEXT N_("Roll the viewpoint anti-clockwise (360°)")
1571
#define VIEWPOINT_ROLL_ANTICLOCK_KEY_LONGTEXT N_("Select the hotkey to use for viewpoint (360°) anti-clockwise roll.")
1572
1573
#define WALLPAPER_KEY_TEXT N_("Toggle wallpaper mode in video output")
1574
#define WALLPAPER_KEY_LONGTEXT N_( \
1575
    "Toggle wallpaper mode in video output." )
1576
1577
#define AUDIO_DEVICE_CYCLE_KEY_TEXT N_("Cycle through audio devices")
1578
#define AUDIO_DEVICE_CYCLE_KEY_LONGTEXT N_("Cycle through available audio devices")
1579
1580
/*
1581
 * Quick usage guide for the configuration options:
1582
 *
1583
 * add_category_hint(N_(text), N_(longtext))
1584
 * add_string( option_name, value, N_(text), N_(longtext) )
1585
 * add_loadfile( option_name, psz_value, N_(text), N_(longtext) )
1586
 * add_savefile( option_name, psz_value, N_(text), N_(longtext) )
1587
 * add_module( option_name, psz_value, i_capability,
1588
 *             N_(text), N_(longtext) )
1589
 * add_integer( option_name, i_value, N_(text), N_(longtext) )
1590
 * add_bool( option_name, b_value, N_(text), N_(longtext) )
1591
 */
1592
1593
#define add_category_hint(text, longtext) \
1594
22
    add_typedesc_inner( CONFIG_HINT_CATEGORY, text, longtext )
1595
1596
#define add_module_cat(name, subcategory, value, text, longtext) \
1597
2
    add_string_inner(CONFIG_ITEM_MODULE_CAT, name, text, longtext, value) \
1598
2
    change_integer_range (subcategory /* gruik */, 0)
1599
1600
#define add_module_list_cat(name, subcategory, value, text, longtext) \
1601
4
    add_string_inner(CONFIG_ITEM_MODULE_LIST_CAT, name, text, longtext, \
1602
4
                     value) \
1603
4
    change_integer_range (subcategory /* gruik */, 0)
1604
1605
4
vlc_module_begin ()
1606
2
    set_description( N_("core program") )
1607
1608
/* Audio options */
1609
2
    set_subcategory( SUBCAT_AUDIO_GENERAL )
1610
2
    add_category_hint(N_("Audio"), AOUT_CAT_LONGTEXT)
1611
1612
2
    add_bool( "audio", true, AUDIO_TEXT, AUDIO_LONGTEXT )
1613
2
        change_safe ()
1614
2
    add_float( "gain", 1., GAIN_TEXT, GAIN_LONGTEXT )
1615
2
        change_float_range( 0., 8. )
1616
2
    add_float( "volume-step", AOUT_VOLUME_STEP, VOLUME_STEP_TEXT,
1617
2
                 VOLUME_STEP_LONGTEXT )
1618
2
        change_float_range( 1., AOUT_VOLUME_DEFAULT )
1619
2
    add_bool( "volume-save", true, VOLUME_SAVE_TEXT, NULL )
1620
2
    add_bool( "audio-time-stretch", true, AUDIO_TIME_STRETCH_TEXT,
1621
2
                AUDIO_TIME_STRETCH_LONGTEXT )
1622
#if defined(__ANDROID__) || defined(__APPLE__) || defined(_WIN32)
1623
    add_bool( "spdif", false, SPDIF_TEXT, SPDIF_LONGTEXT )
1624
#else
1625
2
    add_obsolete_bool("spdif") /* since 4.0.0 */
1626
2
#endif
1627
2
    add_integer( "force-dolby-surround", 0, FORCE_DOLBY_TEXT,
1628
2
                 FORCE_DOLBY_LONGTEXT )
1629
2
        change_integer_list( pi_force_dolby_values, ppsz_force_dolby_descriptions )
1630
2
    add_integer( "stereo-mode", 0, STEREO_MODE_TEXT, NULL )
1631
2
        change_integer_list( pi_stereo_mode_values, ppsz_stereo_mode_texts )
1632
2
    add_integer( "mix-mode", AOUT_MIX_MODE_UNSET, MIX_MODE_TEXT, NULL )
1633
2
        change_integer_list( pi_mix_mode_values, ppsz_mix_mode_texts )
1634
2
    add_integer( "audio-desync", 0, DESYNC_TEXT,
1635
2
                 DESYNC_LONGTEXT )
1636
2
        change_safe ()
1637
1638
2
    set_section( N_("Replay gain") , NULL )
1639
2
    add_string( "audio-replay-gain-mode", ppsz_replay_gain_mode[0], AUDIO_REPLAY_GAIN_MODE_TEXT,
1640
2
                AUDIO_REPLAY_GAIN_MODE_LONGTEXT )
1641
2
        change_string_list( ppsz_replay_gain_mode, ppsz_replay_gain_mode_text )
1642
2
    add_float( "audio-replay-gain-preamp", 0.0,
1643
2
               AUDIO_REPLAY_GAIN_PREAMP_TEXT, AUDIO_REPLAY_GAIN_PREAMP_LONGTEXT )
1644
2
    add_float( "audio-replay-gain-default", -7.0,
1645
2
               AUDIO_REPLAY_GAIN_DEFAULT_TEXT, AUDIO_REPLAY_GAIN_DEFAULT_LONGTEXT )
1646
2
    add_bool( "audio-replay-gain-peak-protection", true,
1647
2
              AUDIO_REPLAY_GAIN_PEAK_PROTECTION_TEXT, AUDIO_REPLAY_GAIN_PEAK_PROTECTION_LONGTEXT )
1648
1649
2
    set_subcategory( SUBCAT_AUDIO_AOUT )
1650
2
    add_module("aout", "audio output", "any", AOUT_TEXT, AOUT_LONGTEXT)
1651
2
        change_short('A')
1652
2
    add_string( "role", "video", ROLE_TEXT, ROLE_LONGTEXT )
1653
2
        change_string_list( ppsz_roles, ppsz_roles_text )
1654
1655
2
    set_subcategory( SUBCAT_AUDIO_AFILTER )
1656
2
        add_bool( "audio-bitexact", false, AUDIO_BITEXACT_TEXT,
1657
2
                   AUDIO_BITEXACT_LONGTEXT )
1658
2
    add_module_list("audio-filter", "audio filter", NULL,
1659
2
                    AUDIO_FILTER_TEXT, AUDIO_FILTER_LONGTEXT)
1660
2
    set_subcategory( SUBCAT_AUDIO_VISUAL )
1661
2
    add_module("audio-visual", "visualization", "none",
1662
2
               AUDIO_VISUAL_TEXT, AUDIO_VISUAL_LONGTEXT)
1663
1664
2
    set_subcategory( SUBCAT_AUDIO_RESAMPLER )
1665
2
    add_module("audio-resampler", "audio resampler", "any",
1666
2
               AUDIO_RESAMPLER_TEXT, AUDIO_RESAMPLER_LONGTEXT)
1667
1668
/* Video options */
1669
2
    set_subcategory( SUBCAT_VIDEO_GENERAL )
1670
2
    add_category_hint(N_("Video"), VOUT_CAT_LONGTEXT)
1671
1672
2
    add_bool( "video", true, VIDEO_TEXT, VIDEO_LONGTEXT )
1673
2
        change_safe ()
1674
2
    add_bool( "grayscale", false, GRAYSCALE_TEXT,
1675
2
              GRAYSCALE_LONGTEXT )
1676
2
    add_bool( "fullscreen", false, FULLSCREEN_TEXT, FULLSCREEN_LONGTEXT )
1677
2
        change_short('f')
1678
2
        change_safe ()
1679
2
    add_integer("projection-mode", -1, PROJECTION_MODE_TEXT, PROJECTION_MODE_LONGTEXT)
1680
2
        change_volatile ()
1681
2
        change_safe ()
1682
2
    add_bool( "embedded-video", true, EMBEDDED_TEXT, EMBEDDED_LONGTEXT )
1683
2
    add_bool( "xlib", true, "", "" )
1684
2
        change_private ()
1685
2
    add_bool( "drop-late-frames", true, DROP_LATE_FRAMES_TEXT,
1686
2
              DROP_LATE_FRAMES_LONGTEXT )
1687
    /* Used in vout_synchro */
1688
2
    add_obsolete_bool( "skip-frames" ) /* since 4.0.0 */
1689
2
    add_obsolete_bool( "quiet-synchro" ) /* since 4.0.0 */
1690
2
    add_bool( "keyboard-events", true, KEYBOARD_EVENTS_TEXT,
1691
2
              KEYBOARD_EVENTS_LONGTEXT )
1692
2
    add_bool( "mouse-events", true, MOUSE_EVENTS_TEXT,
1693
2
              MOUSE_EVENTS_LONGTEXT )
1694
2
    add_bool( "video-on-top", false, VIDEO_ON_TOP_TEXT,
1695
2
              VIDEO_ON_TOP_LONGTEXT )
1696
2
    add_bool( "video-wallpaper", false, WALLPAPER_TEXT,
1697
2
              WALLPAPER_LONGTEXT )
1698
2
    add_integer("disable-screensaver", 1, SS_TEXT, SS_LONGTEXT)
1699
2
        change_integer_list(screensaver_values, screensaver_texts)
1700
1701
2
    add_bool( "video-title-show", true, VIDEO_TITLE_SHOW_TEXT,
1702
2
              VIDEO_TITLE_SHOW_LONGTEXT )
1703
2
        change_safe()
1704
2
    add_integer ("video-stereo-mode", VIDEO_STEREO_OUTPUT_AUTO, VIDEO_STEREO_FORMAT_TEXT,
1705
2
                 VIDEO_STEREO_FORMAT_TEXT_LONGTEXT)
1706
2
        change_safe()
1707
2
        change_integer_list (video_stereo_formats, video_stereo_formats_text)
1708
2
    add_integer( "video-title-timeout", 5000, VIDEO_TITLE_TIMEOUT_TEXT,
1709
2
                 VIDEO_TITLE_TIMEOUT_LONGTEXT )
1710
2
        change_safe()
1711
2
    add_integer( "video-title-position", SUBPICTURE_ALIGN_BOTTOM, VIDEO_TITLE_POSITION_TEXT,
1712
2
                 VIDEO_TITLE_POSITION_LONGTEXT )
1713
2
        change_safe()
1714
2
        change_integer_list( pi_pos_values, ppsz_pos_descriptions )
1715
    // autohide after 1 second
1716
2
    add_integer( "mouse-hide-timeout", 1000, MOUSE_HIDE_TIMEOUT_TEXT,
1717
2
                 MOUSE_HIDE_TIMEOUT_LONGTEXT )
1718
2
    set_section( N_("Snapshot") , NULL )
1719
2
    add_directory("snapshot-path", NULL, SNAP_PATH_TEXT, SNAP_PATH_LONGTEXT)
1720
2
    add_string( "snapshot-prefix", "vlcsnap-", SNAP_PREFIX_TEXT,
1721
2
                   NULL )
1722
2
    add_string( "snapshot-format", "png", SNAP_FORMAT_TEXT,
1723
2
                   SNAP_FORMAT_LONGTEXT )
1724
2
        change_string_list( ppsz_snap_formats, ppsz_snap_formats )
1725
2
    add_bool( "snapshot-preview", true, SNAP_PREVIEW_TEXT,
1726
2
              SNAP_PREVIEW_LONGTEXT )
1727
2
    add_bool( "snapshot-sequential", false, SNAP_SEQUENTIAL_TEXT,
1728
2
              SNAP_SEQUENTIAL_LONGTEXT )
1729
2
    add_integer( "snapshot-width", -1, SNAP_WIDTH_TEXT,
1730
2
                 SNAP_WIDTH_LONGTEXT )
1731
2
    add_integer( "snapshot-height", -1, SNAP_HEIGHT_TEXT,
1732
2
                 SNAP_HEIGHT_LONGTEXT )
1733
1734
2
    set_section( N_("Window properties" ), NULL )
1735
2
    add_integer( "width", -1, WIDTH_TEXT, WIDTH_LONGTEXT )
1736
2
        change_safe ()
1737
2
    add_integer( "height", -1, HEIGHT_TEXT, HEIGHT_LONGTEXT )
1738
2
        change_safe ()
1739
#if defined(__APPLE__) || defined(_WIN32)
1740
    add_integer( "video-x", 0, VIDEOX_TEXT, VIDEOX_LONGTEXT )
1741
        change_safe ()
1742
    add_integer( "video-y", 0, VIDEOY_TEXT, VIDEOY_LONGTEXT )
1743
        change_safe ()
1744
#endif
1745
2
    add_string( "crop", NULL, CROP_TEXT, CROP_LONGTEXT )
1746
2
        change_safe ()
1747
2
    add_string( "custom-crop-ratios", NULL, CUSTOM_CROP_RATIOS_TEXT,
1748
2
                CUSTOM_CROP_RATIOS_LONGTEXT )
1749
2
    add_string( "aspect-ratio", NULL,
1750
2
                ASPECT_RATIO_TEXT, ASPECT_RATIO_LONGTEXT )
1751
2
        change_safe ()
1752
2
    add_bool( "autoscale", true, AUTOSCALE_TEXT, AUTOSCALE_LONGTEXT )
1753
2
        change_safe ()
1754
2
    add_obsolete_float( "scale" ) /* since 3.0.0 */
1755
2
    add_integer("fit", VLC_VIDEO_FIT_SMALLER, FIT_TEXT, FIT_LONGTEXT)
1756
2
        change_integer_list(fit_values, fit_descriptions)
1757
2
        change_safe()
1758
2
    add_string( "monitor-par", NULL,
1759
2
                MASPECT_RATIO_TEXT, MASPECT_RATIO_LONGTEXT )
1760
2
    add_string( "custom-aspect-ratios", NULL, CUSTOM_ASPECT_RATIOS_TEXT,
1761
2
                CUSTOM_ASPECT_RATIOS_LONGTEXT )
1762
2
    add_bool( "hdtv-fix", true, HDTV_FIX_TEXT, HDTV_FIX_LONGTEXT )
1763
2
    add_bool( "video-deco", true, VIDEO_DECO_TEXT,
1764
2
              VIDEO_DECO_LONGTEXT )
1765
2
    add_string( "video-title", NULL, VIDEO_TITLE_TEXT,
1766
2
                 VIDEO_TITLE_LONGTEXT )
1767
2
    add_integer( "align", 0, ALIGN_TEXT, ALIGN_LONGTEXT )
1768
2
        change_integer_list( pi_align_values, ppsz_align_descriptions )
1769
2
    add_float( "zoom", 1., ZOOM_TEXT, ZOOM_LONGTEXT )
1770
2
        change_safe()
1771
2
    add_integer( "deinterlace", -1,
1772
2
                 DEINTERLACE_TEXT, NULL )
1773
2
        change_integer_list( pi_deinterlace, ppsz_deinterlace_text )
1774
2
        change_safe()
1775
2
    add_string( "deinterlace-mode", "auto",
1776
2
                DEINTERLACE_MODE_TEXT, DEINTERLACE_MODE_LONGTEXT )
1777
2
        change_string_list( ppsz_deinterlace_mode, ppsz_deinterlace_mode_text )
1778
2
        change_safe()
1779
2
    add_string( "deinterlace-filter", "deinterlace",
1780
2
                DEINTERLACE_FILTER_TEXT, DEINTERLACE_FILTER_LONGTEXT )
1781
2
        change_safe()
1782
1783
2
    set_subcategory( SUBCAT_VIDEO_VOUT )
1784
2
    add_module("vout", "vout display", "any", VOUT_TEXT, VOUT_LONGTEXT)
1785
2
        change_short('V')
1786
1787
2
    set_subcategory( SUBCAT_VIDEO_VFILTER )
1788
2
    add_module_list("video-filter", "video filter", NULL,
1789
2
                    VIDEO_FILTER_TEXT, VIDEO_FILTER_LONGTEXT)
1790
1791
#if 0
1792
    add_string( "pixel-ratio", "1", PIXEL_RATIO_TEXT, PIXEL_RATIO_TEXT )
1793
#endif
1794
1795
/* Subpictures options */
1796
2
    set_subcategory( SUBCAT_VIDEO_SUBPIC )
1797
2
    set_section( N_("On Screen Display") , NULL )
1798
2
    add_category_hint(N_("Subpictures"), SUB_CAT_LONGTEXT)
1799
1800
2
    add_bool( "spu", true, SPU_TEXT, SPU_LONGTEXT )
1801
2
        change_safe ()
1802
2
    add_bool( "spu-fill", true, SPU_FULL_TEXT, SPU_FULL_LONGTEXT )
1803
2
        change_safe ()
1804
2
    add_bool( "osd", true, OSD_TEXT, OSD_LONGTEXT )
1805
2
    add_module("text-renderer", "text renderer", "any",
1806
2
               TEXTRENDERER_TEXT, TEXTRENDERER_LONGTEXT)
1807
1808
2
    set_section( N_("Subtitles") , NULL )
1809
2
    add_float( "sub-fps", 0.0, SUB_FPS_TEXT, SUB_FPS_LONGTEXT )
1810
2
    add_integer( "sub-delay", 0, SUB_DELAY_TEXT, SUB_DELAY_LONGTEXT )
1811
2
    add_loadfile("sub-file", NULL, SUB_FILE_TEXT, SUB_FILE_LONGTEXT)
1812
2
        change_safe()
1813
2
    add_bool( "sub-autodetect-file", true,
1814
2
                 SUB_AUTO_TEXT, SUB_AUTO_LONGTEXT )
1815
2
    add_integer( "sub-autodetect-fuzzy", 3,
1816
2
                 SUB_FUZZY_TEXT, SUB_FUZZY_LONGTEXT )
1817
#if defined( _WIN32 ) || defined( __OS2__ )
1818
#   define SUB_PATH ".\\subtitles, .\\subs"
1819
#else
1820
2
#   define SUB_PATH "./Subtitles, ./subtitles, ./Subs, ./subs"
1821
2
#endif
1822
2
    add_string( "sub-autodetect-path", SUB_PATH,
1823
2
                 SUB_PATH_TEXT, SUB_PATH_LONGTEXT )
1824
2
    add_integer( "sub-margin", 0, SUB_MARGIN_TEXT,
1825
2
                 SUB_MARGIN_LONGTEXT )
1826
2
    add_integer_with_range( "sub-text-scale", 100, 10, 500,
1827
2
               SUB_TEXT_SCALE_TEXT, SUB_TEXT_SCALE_LONGTEXT )
1828
2
    set_section( N_( "Overlays" ) , NULL )
1829
2
    add_module_list("sub-source", "sub source", NULL,
1830
2
                    SUB_SOURCE_TEXT, SUB_SOURCE_LONGTEXT)
1831
2
    add_module_list("sub-filter", "sub filter", NULL,
1832
2
                    SUB_FILTER_TEXT, SUB_FILTER_LONGTEXT)
1833
1834
2
    set_section( N_( "Multiple Subtitles" ) , NULL )
1835
2
    add_integer( "secondary-sub-alignment", -1, SECONDARY_SUB_POSITION_TEXT,
1836
2
                 SECONDARY_SUB_POSITION_LONGTEXT )
1837
2
        change_integer_list( pi_sub_align_values, ppsz_sub_align_descriptions )
1838
    /* Push the secondary subtitles up a bit so they won't overlap with
1839
       the primary subtitles using the default settings.*/
1840
2
    add_integer( "secondary-sub-margin", 100, SECONDARY_SUB_MARGIN_TEXT,
1841
2
                 SECONDARY_SUB_MARGIN_LONGTEXT )
1842
1843
/* Input options */
1844
2
    set_subcategory( SUBCAT_INPUT_GENERAL )
1845
2
    add_category_hint( N_("Input"), INPUT_CAT_LONGTEXT )
1846
1847
2
    set_section( N_( "Track settings" ), NULL )
1848
2
    add_integer( "program", 0,
1849
2
                 INPUT_PROGRAM_TEXT, INPUT_PROGRAM_LONGTEXT )
1850
2
        change_safe ()
1851
2
    add_string( "programs", "",
1852
2
                INPUT_PROGRAMS_TEXT, INPUT_PROGRAMS_LONGTEXT )
1853
2
        change_safe ()
1854
2
    add_integer( "video-track", -1,
1855
2
                 INPUT_VIDEOTRACK_TEXT, INPUT_VIDEOTRACK_LONGTEXT )
1856
2
        change_safe ()
1857
2
    add_integer( "audio-track", -1,
1858
2
                 INPUT_AUDIOTRACK_TEXT, INPUT_AUDIOTRACK_LONGTEXT )
1859
2
        change_safe ()
1860
2
    add_integer( "sub-track", -1,
1861
2
                 INPUT_SUBTRACK_TEXT, INPUT_SUBTRACK_LONGTEXT )
1862
2
        change_safe ()
1863
2
    add_string( "audio-language", "",
1864
2
                 INPUT_AUDIOTRACK_LANG_TEXT, INPUT_AUDIOTRACK_LANG_LONGTEXT )
1865
2
        change_safe ()
1866
2
    add_string( "sub-language", "",
1867
2
                 INPUT_SUBTRACK_LANG_TEXT, INPUT_SUBTRACK_LANG_LONGTEXT )
1868
2
        change_safe ()
1869
2
    add_string( "menu-language", "",
1870
2
                 INPUT_MENUTRACK_LANG_TEXT, INPUT_MENUTRACK_LANG_LONGTEXT )
1871
2
        change_safe ()
1872
2
    add_string( "video-track-id", NULL, INPUT_VIDEOTRACK_ID_TEXT,
1873
2
                 INPUT_VIDEOTRACK_ID_LONGTEXT )
1874
2
        change_safe ()
1875
2
    add_string( "audio-track-id", NULL, INPUT_AUDIOTRACK_ID_TEXT,
1876
2
                 INPUT_AUDIOTRACK_ID_LONGTEXT )
1877
2
        change_safe ()
1878
2
    add_string( "sub-track-id", NULL,
1879
2
                 INPUT_SUBTRACK_ID_TEXT, INPUT_SUBTRACK_ID_LONGTEXT )
1880
2
        change_safe ()
1881
2
    add_integer( "captions", 608,
1882
2
                 INPUT_CAPTIONS_TEXT, NULL )
1883
2
        change_integer_list( pi_captions, ppsz_captions )
1884
2
        change_safe ()
1885
2
    add_integer( "preferred-resolution", -1, INPUT_PREFERREDRESOLUTION_TEXT,
1886
2
                 INPUT_PREFERREDRESOLUTION_LONGTEXT )
1887
2
        change_safe ()
1888
2
        change_integer_list( pi_prefres, ppsz_prefres )
1889
2
    add_bool( "low-delay", false, INPUT_LOWDELAY_TEXT,
1890
2
              INPUT_LOWDELAY_LONGTEXT )
1891
2
        change_safe ()
1892
1893
2
    set_section( N_( "Playback control" ) , NULL)
1894
2
    add_integer( "input-repeat", 0,
1895
2
                 INPUT_REPEAT_TEXT, INPUT_REPEAT_LONGTEXT )
1896
2
        change_integer_range( 0, 65535 )
1897
2
        change_safe ()
1898
2
    add_float( "start-time", 0,
1899
2
               START_TIME_TEXT, START_TIME_LONGTEXT )
1900
2
        change_safe ()
1901
2
    add_float( "stop-time", 0,
1902
2
               STOP_TIME_TEXT, STOP_TIME_LONGTEXT )
1903
2
        change_safe ()
1904
2
    add_float( "run-time", 0,
1905
2
               RUN_TIME_TEXT, RUN_TIME_LONGTEXT )
1906
2
        change_safe ()
1907
2
    add_bool( "input-fast-seek", false,
1908
2
              INPUT_FAST_SEEK_TEXT, INPUT_FAST_SEEK_LONGTEXT )
1909
2
        change_safe ()
1910
2
    add_float( "rate", 1.,
1911
2
               INPUT_RATE_TEXT, INPUT_RATE_LONGTEXT )
1912
1913
2
    add_string( "input-list", NULL,
1914
2
                 INPUT_LIST_TEXT, INPUT_LIST_LONGTEXT )
1915
2
    add_string( "input-slave", NULL,
1916
2
                 INPUT_SLAVE_TEXT, INPUT_SLAVE_LONGTEXT )
1917
1918
2
    add_string( "bookmarks", NULL,
1919
2
                 BOOKMARKS_TEXT, BOOKMARKS_LONGTEXT )
1920
2
        change_safe ()
1921
1922
2
    add_bool( "save-recentplay", true, SAVE_RECENTPLAY, NULL )
1923
1924
2
    add_integer( "restore-playback-pos", VLC_PLAYER_RESTORE_PLAYBACK_POS_ASK,
1925
2
                 RESTORE_PLAYBACK_POS_TEXT, RESTORE_PLAYBACK_POS_LONGTEXT )
1926
2
        change_integer_list( pi_restore_playback_values, ppsz_restore_playback_desc )
1927
1928
2
    add_bool( "restore-playback-states", false,
1929
2
                 RESTORE_PLAYBACK_STATE_TEXT, RESTORE_PLAYBACK_STATE_LONGTEXT )
1930
1931
2
    set_section( N_( "Default devices") , NULL )
1932
1933
2
    add_loadfile("dvd", DVD_DEVICE, DVD_DEV_TEXT, DVD_DEV_LONGTEXT)
1934
2
    add_loadfile("vcd", VCD_DEVICE, VCD_DEV_TEXT, VCD_DEV_LONGTEXT)
1935
1936
2
    set_section( N_( "Network settings" ), NULL )
1937
1938
2
    add_integer( "mtu", MTU_DEFAULT, MTU_TEXT, MTU_LONGTEXT )
1939
2
    add_integer( "ipv4-timeout", 5 * 1000, TIMEOUT_TEXT,
1940
2
                 TIMEOUT_LONGTEXT )
1941
2
        change_integer_range( 0, INT_MAX )
1942
1943
2
    add_string( "http-host", NULL, HTTP_HOST_TEXT, HOST_LONGTEXT )
1944
2
    add_integer( "http-port", 8080, HTTP_PORT_TEXT, HTTP_PORT_LONGTEXT )
1945
2
        change_integer_range( 1, 65535 )
1946
2
    add_integer( "https-port", 8443, HTTPS_PORT_TEXT, HTTPS_PORT_LONGTEXT )
1947
2
        change_integer_range( 1, 65535 )
1948
2
    add_string( "rtsp-host", NULL, RTSP_HOST_TEXT, RTSP_HOST_LONGTEXT )
1949
2
    add_integer( "rtsp-port", 554, RTSP_PORT_TEXT, RTSP_PORT_LONGTEXT )
1950
2
        change_integer_range( 1, 65535 )
1951
2
    add_loadfile("http-cert", NULL, HTTP_CERT_TEXT, CERT_LONGTEXT)
1952
2
    add_loadfile("http-key", NULL, HTTP_KEY_TEXT, KEY_LONGTEXT)
1953
2
    add_obsolete_string( "http-ca" ) /* since 3.0.0 */
1954
2
    add_obsolete_string( "http-crl" ) /* since 3.0.0 */
1955
1956
#ifdef _WIN32
1957
    add_string( "http-proxy", NULL, PROXY_TEXT, PROXY_LONGTEXT )
1958
    add_password("http-proxy-pwd", NULL, PROXY_PASS_TEXT, PROXY_PASS_LONGTEXT)
1959
#else
1960
2
    add_obsolete_string( "http-proxy" ) /* since 4.0.0 */
1961
2
    add_obsolete_string( "http-proxy-pwd" ) /* since 4.0.0 */
1962
1963
2
#endif
1964
2
    add_obsolete_bool( "http-use-IE-proxy" ) /* since 4.0.0 */
1965
1966
2
    set_section( N_( "Socks proxy") , NULL )
1967
2
    add_string( "socks", NULL,
1968
2
                 SOCKS_SERVER_TEXT, SOCKS_SERVER_LONGTEXT )
1969
2
    add_string( "socks-user", NULL,
1970
2
                 SOCKS_USER_TEXT, SOCKS_USER_LONGTEXT )
1971
2
    add_password( "socks-pwd", NULL,
1972
2
                 SOCKS_PASS_TEXT, SOCKS_PASS_LONGTEXT )
1973
1974
1975
2
    set_section( N_("Metadata" ) , NULL )
1976
2
    add_string( "meta-title", NULL, META_TITLE_TEXT,
1977
2
                META_TITLE_LONGTEXT )
1978
2
        change_safe()
1979
2
    add_string( "meta-author", NULL, META_AUTHOR_TEXT,
1980
2
                META_AUTHOR_LONGTEXT )
1981
2
        change_safe()
1982
2
    add_string( "meta-artist", NULL, META_ARTIST_TEXT,
1983
2
                META_ARTIST_LONGTEXT )
1984
2
        change_safe()
1985
2
    add_string( "meta-genre", NULL, META_GENRE_TEXT,
1986
2
                META_GENRE_LONGTEXT )
1987
2
        change_safe()
1988
2
    add_string( "meta-copyright", NULL, META_CPYR_TEXT,
1989
2
                META_CPYR_LONGTEXT )
1990
2
        change_safe()
1991
2
    add_string( "meta-description", NULL, META_DESCR_TEXT,
1992
2
                META_DESCR_LONGTEXT )
1993
2
        change_safe()
1994
2
    add_string( "meta-date", NULL, META_DATE_TEXT,
1995
2
                META_DATE_LONGTEXT )
1996
2
        change_safe()
1997
2
    add_string( "meta-url", NULL, META_URL_TEXT,
1998
2
                META_URL_LONGTEXT )
1999
2
        change_safe()
2000
2001
2
    set_section( N_( "Advanced" ), NULL )
2002
2003
2
    add_integer( "file-caching", 1000,
2004
2
                 CACHING_TEXT, CACHING_LONGTEXT )
2005
2
        change_integer_range( 0, 60000 )
2006
2
        change_safe()
2007
2
    add_integer( "live-caching", MS_FROM_VLC_TICK(DEFAULT_PTS_DELAY),
2008
2
                 CAPTURE_CACHING_TEXT, CAPTURE_CACHING_LONGTEXT )
2009
2
        change_integer_range( 0, 60000 )
2010
2
        change_safe()
2011
2
    add_integer( "disc-caching", MS_FROM_VLC_TICK(DEFAULT_PTS_DELAY),
2012
2
                 DISC_CACHING_TEXT, DISC_CACHING_LONGTEXT )
2013
2
        change_integer_range( 0, 60000 )
2014
2
        change_safe()
2015
2
    add_integer( "network-caching", 1000,
2016
2
                 NETWORK_CACHING_TEXT, NETWORK_CACHING_LONGTEXT )
2017
2
        change_integer_range( 0, 60000 )
2018
2
        change_safe()
2019
2020
2
    add_integer( "cr-average", 40, CR_AVERAGE_TEXT,
2021
2
                 CR_AVERAGE_LONGTEXT )
2022
2
    add_integer( "clock-synchro", -1, CLOCK_SYNCHRO_TEXT,
2023
2
                 CLOCK_SYNCHRO_LONGTEXT )
2024
2
        change_integer_list( pi_clock_values, ppsz_clock_descriptions )
2025
2
    add_integer( "clock-jitter", 5000, CLOCK_JITTER_TEXT,
2026
2
              CLOCK_JITTER_LONGTEXT )
2027
2
        change_safe()
2028
2
    add_string( "clock-master", "auto",
2029
2
                 CLOCK_MASTER_TEXT, CLOCK_MASTER_LONGTEXT )
2030
2
        change_string_list( ppsz_clock_master_values, ppsz_clock_master_descriptions )
2031
2032
2
    add_directory("input-record-path", NULL,
2033
2
                  INPUT_RECORD_PATH_TEXT, INPUT_RECORD_PATH_LONGTEXT)
2034
2
    add_bool( "input-record-native", true, INPUT_RECORD_NATIVE_TEXT,
2035
2
              INPUT_RECORD_NATIVE_LONGTEXT )
2036
2037
2
    add_directory("input-timeshift-path", NULL,
2038
2
                  INPUT_TIMESHIFT_PATH_TEXT, INPUT_TIMESHIFT_PATH_LONGTEXT)
2039
2
    add_integer( "input-timeshift-granularity", -1, INPUT_TIMESHIFT_GRANULARITY_TEXT,
2040
2
                 INPUT_TIMESHIFT_GRANULARITY_LONGTEXT )
2041
2042
2
    add_string( "input-title-format", "$Z", INPUT_TITLE_FORMAT_TEXT, INPUT_TITLE_FORMAT_LONGTEXT )
2043
2044
/* Decoder options */
2045
2
    add_category_hint(N_("Input access and codecs"), CODEC_CAT_LONGTEXT)
2046
2047
    //set_subcategory( SUBCAT_INPUT_ACCESS )
2048
2
    add_obsolete_string("access") /* since 4.0.0 */
2049
2050
2
    set_subcategory( SUBCAT_INPUT_DEMUX )
2051
2052
2
    add_module("demux", "demux", "any", DEMUX_TEXT, DEMUX_LONGTEXT)
2053
2
    add_string( "demux-filter", NULL, DEMUX_FILTER_TEXT, DEMUX_FILTER_LONGTEXT )
2054
2055
    //set_subcategory( SUBCAT_INPUT_ACODEC )
2056
2
    set_subcategory( SUBCAT_INPUT_VCODEC )
2057
2058
2
    add_string( "codec", "any", CODEC_TEXT, CODEC_LONGTEXT )
2059
2
    add_bool( "hw-dec", true, HW_DEC_TEXT, HW_DEC_LONGTEXT )
2060
2
    add_obsolete_string( "encoder" ) /* since 4.0.0 */
2061
2
    add_module("dec-dev", "decoder device", "any", DEC_DEV_TEXT, DEC_DEV_LONGTEXT)
2062
2063
    //set_subcategory( SUBCAT_INPUT_SCODEC )
2064
2
    set_subcategory( SUBCAT_INPUT_STREAM_FILTER )
2065
2066
2
    add_module_list("stream-filter", "stream_filter", NULL,
2067
2
                    STREAM_FILTER_TEXT, STREAM_FILTER_LONGTEXT)
2068
2069
/* Stream output options */
2070
2
    set_subcategory( SUBCAT_SOUT_GENERAL )
2071
2
    add_category_hint(N_("Stream output"), SOUT_CAT_LONGTEXT)
2072
2073
2
    add_string( "sout", NULL, SOUT_TEXT, SOUT_LONGTEXT )
2074
2
    add_bool( "sout-display", false, SOUT_DISPLAY_TEXT,
2075
2
                                SOUT_DISPLAY_LONGTEXT )
2076
2
    add_bool( "sout-keep", false, SOUT_KEEP_TEXT,
2077
2
                                SOUT_KEEP_LONGTEXT )
2078
2
    add_bool( "sout-all", true, SOUT_ALL_TEXT,
2079
2
                                SOUT_ALL_LONGTEXT )
2080
2
    add_bool( "sout-audio", true, SOUT_AUDIO_TEXT,
2081
2
                                SOUT_AUDIO_LONGTEXT )
2082
2
    add_bool( "sout-video", true, SOUT_VIDEO_TEXT,
2083
2
                                SOUT_VIDEO_LONGTEXT )
2084
2
    add_bool( "sout-spu", true, SOUT_SPU_TEXT,
2085
2
                                SOUT_SPU_LONGTEXT )
2086
2
    add_integer( "sout-mux-caching", 1500, SOUT_MUX_CACHING_TEXT,
2087
2
                                SOUT_MUX_CACHING_LONGTEXT )
2088
2089
2
    set_section( N_("VLM"), NULL )
2090
2
    add_loadfile("vlm-conf", NULL, VLM_CONF_TEXT, VLM_CONF_LONGTEXT)
2091
2092
2093
2
    set_subcategory( SUBCAT_SOUT_STREAM )
2094
2
    add_integer( "sap-interval", 5, ANN_SAPINTV_TEXT,
2095
2
                               ANN_SAPINTV_LONGTEXT )
2096
2097
2
    add_obsolete_string("mux") /* since 0.5.0 (warning since 4.0) */
2098
2
    set_subcategory( SUBCAT_SOUT_ACO )
2099
2
    add_obsolete_string("access_output") /* since 0.5.0 (warning since 4.0) */
2100
2
    add_integer( "ttl", -1, TTL_TEXT, TTL_LONGTEXT )
2101
2
    add_string( "miface", NULL, MIFACE_TEXT, MIFACE_LONGTEXT )
2102
2
    add_integer( "dscp", 0, DSCP_TEXT, DSCP_LONGTEXT )
2103
2104
2
    set_subcategory( SUBCAT_SOUT_PACKETIZER )
2105
2
    add_module("packetizer", "packetizer", "any",
2106
2
               PACKETIZER_TEXT, PACKETIZER_LONGTEXT)
2107
2108
/* Advanced options */
2109
2
    set_subcategory( SUBCAT_ADVANCED_MISC )
2110
2
    add_category_hint(N_("Advanced"), NULL)
2111
2
    set_section( N_("Special modules"), NULL )
2112
2
    add_obsolete_string("vod-server") /* since 4.0.0 */
2113
2
    add_module("tracer", "tracer", "none",
2114
2
               TRACER_TEXT, TRACER_LONGTEXT)
2115
2116
2
    set_section( N_("Plugins" ), NULL )
2117
#ifdef HAVE_DYNAMIC_PLUGINS
2118
    add_bool( "plugins-cache", true, PLUGINS_CACHE_TEXT,
2119
              PLUGINS_CACHE_LONGTEXT )
2120
        change_volatile ()
2121
    add_bool( "plugins-scan", true, PLUGINS_SCAN_TEXT,
2122
              PLUGINS_SCAN_LONGTEXT )
2123
        change_volatile ()
2124
#endif
2125
2
    add_string( "keystore", NULL, KEYSTORE_TEXT,
2126
2
                KEYSTORE_LONGTEXT )
2127
2128
2
    set_section( N_("Performance options"), NULL )
2129
2130
2
#if defined (LIBVLC_USE_PTHREAD)
2131
2
    add_obsolete_bool( "rt-priority" ) /* since 4.0.0 */
2132
2
    add_obsolete_integer( "rt-offset" ) /* since 4.0.0 */
2133
2
#endif
2134
2135
#if defined(HAVE_DBUS)
2136
    add_obsolete_bool( "inhibit" ) /* since 3.0.0 */
2137
#endif
2138
2139
#if defined(_WIN32) || defined(__OS2__)
2140
    add_bool( "high-priority", false, HPRIORITY_TEXT,
2141
              HPRIORITY_LONGTEXT )
2142
#endif
2143
2144
#ifdef _WIN32
2145
    add_string( "clock-source", "perf", CLOCK_SOURCE_TEXT, NULL )
2146
        change_string_list( clock_sources, clock_sources_text )
2147
#endif
2148
2149
/* Playlist options */
2150
2
    set_subcategory( SUBCAT_PLAYLIST_GENERAL )
2151
2
    add_category_hint(N_("Playlist"), PLAYLIST_CAT_LONGTEXT)
2152
2
    add_bool( "random", false, RANDOM_TEXT, RANDOM_LONGTEXT )
2153
2
        change_short('Z')
2154
2
        change_safe()
2155
2
    add_bool( "loop", false, LOOP_TEXT, LOOP_LONGTEXT )
2156
2
        change_short('L')
2157
2
        change_safe()
2158
2
    add_bool( "repeat", false, REPEAT_TEXT, REPEAT_LONGTEXT )
2159
2
        change_short('R')
2160
2
        change_safe()
2161
2
    add_bool( "play-and-exit", false, PAE_TEXT, PAE_LONGTEXT )
2162
2
    add_bool( "play-and-stop", false, PAS_TEXT, PAS_LONGTEXT )
2163
2
        change_safe()
2164
2
    add_bool( "play-and-pause", false, PAP_TEXT, PAP_LONGTEXT )
2165
2
        change_safe()
2166
2
    add_bool( "start-paused", false, SP_TEXT, SP_LONGTEXT )
2167
2
    add_bool( "playlist-autostart", true,
2168
2
              AUTOSTART_TEXT, AUTOSTART_LONGTEXT )
2169
2
    add_bool( "playlist-cork", true, CORK_TEXT, CORK_LONGTEXT )
2170
#if defined(_WIN32) || defined(HAVE_DBUS) || defined(__OS2__)
2171
    add_bool( "one-instance", false, ONEINSTANCE_TEXT,
2172
              ONEINSTANCE_LONGTEXT )
2173
    add_bool( "started-from-file", false, STARTEDFROMFILE_TEXT,
2174
              STARTEDFROMFILE_LONGTEXT )
2175
        change_volatile ()
2176
    add_bool( "one-instance-when-started-from-file", true,
2177
              ONEINSTANCEWHENSTARTEDFROMFILE_TEXT, NULL )
2178
    add_bool( "playlist-enqueue", false, PLAYLISTENQUEUE_TEXT,
2179
              PLAYLISTENQUEUE_LONGTEXT )
2180
#endif
2181
#ifdef HAVE_DBUS
2182
    add_bool( "dbus", false, DBUS_TEXT, DBUS_LONGTEXT )
2183
#endif
2184
2
    add_bool( "media-library", false, ML_TEXT, ML_LONGTEXT )
2185
2
    add_bool( "playlist-tree", false, PLTREE_TEXT, PLTREE_LONGTEXT )
2186
2187
2
    add_string( "open", "", OPEN_TEXT, OPEN_LONGTEXT )
2188
2189
2
    add_bool( "auto-preparse", true, PREPARSE_TEXT,
2190
2
              PREPARSE_LONGTEXT )
2191
2192
2
    add_integer( "preparse-timeout", 5000, PREPARSE_TIMEOUT_TEXT,
2193
2
                 PREPARSE_TIMEOUT_LONGTEXT )
2194
2195
2
    add_integer( "preparse-threads", 1, PREPARSE_THREADS_TEXT,
2196
2
                 PREPARSE_THREADS_LONGTEXT )
2197
2198
2
    add_integer( "fetch-art-threads", 1, FETCH_ART_THREADS_TEXT,
2199
2
                 FETCH_ART_THREADS_LONGTEXT )
2200
2201
2
    add_bool( "metadata-network-access", false, METADATA_NETWORK_TEXT, NULL )
2202
2203
2
    add_string( "recursive", "collapse" , RECURSIVE_TEXT,
2204
2
                RECURSIVE_LONGTEXT )
2205
2
        change_string_list( psz_recursive_list, psz_recursive_list_text )
2206
2
    add_string( "ignore-filetypes", "m3u,db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,"
2207
2
                "pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv,txt,"
2208
2
                "sub,idx,srt,cue,ssa",
2209
2
                IGNORE_TEXT, IGNORE_LONGTEXT )
2210
2
    add_bool( "show-hiddenfiles", false,
2211
2
              SHOW_HIDDENFILES_TEXT, SHOW_HIDDENFILES_LONGTEXT )
2212
2
    add_bool( "extractor-flatten", false, EXTRACTOR_FLATTEN, NULL )
2213
2
        change_volatile()
2214
2215
2
    set_subcategory( SUBCAT_PLAYLIST_SD )
2216
2
    add_string( "services-discovery", "", SD_TEXT, SD_LONGTEXT )
2217
2
        change_short('S')
2218
2219
    /* Not displayed in GUI, listed in help output though */
2220
2
    set_subcategory( SUBCAT_HIDDEN )
2221
2
    set_section(N_("Bookmarks"), NULL)
2222
2
    add_string( "bookmark1", NULL,
2223
2
             BOOKMARK1_TEXT, BOOKMARK_LONGTEXT )
2224
2
    add_string( "bookmark2", NULL,
2225
2
             BOOKMARK2_TEXT, BOOKMARK_LONGTEXT )
2226
2
    add_string( "bookmark3", NULL,
2227
2
             BOOKMARK3_TEXT, BOOKMARK_LONGTEXT )
2228
2
    add_string( "bookmark4", NULL,
2229
2
             BOOKMARK4_TEXT, BOOKMARK_LONGTEXT )
2230
2
    add_string( "bookmark5", NULL,
2231
2
             BOOKMARK5_TEXT, BOOKMARK_LONGTEXT )
2232
2
    add_string( "bookmark6", NULL,
2233
2
             BOOKMARK6_TEXT, BOOKMARK_LONGTEXT )
2234
2
    add_string( "bookmark7", NULL,
2235
2
             BOOKMARK7_TEXT, BOOKMARK_LONGTEXT )
2236
2
    add_string( "bookmark8", NULL,
2237
2
             BOOKMARK8_TEXT, BOOKMARK_LONGTEXT )
2238
2
    add_string( "bookmark9", NULL,
2239
2
             BOOKMARK9_TEXT, BOOKMARK_LONGTEXT )
2240
2
    add_string( "bookmark10", NULL,
2241
2
              BOOKMARK10_TEXT, BOOKMARK_LONGTEXT )
2242
2243
/* Interface options */
2244
2
    set_subcategory( SUBCAT_INTERFACE_GENERAL )
2245
2
    add_category_hint( N_("Interface"), INTF_CAT_LONGTEXT )
2246
2
    add_integer( "verbose", 0, VERBOSE_TEXT, VERBOSE_LONGTEXT )
2247
2
        change_short('v')
2248
2
        change_volatile ()
2249
2
#if !defined(_WIN32) && !defined(__OS2__)
2250
2
    add_obsolete_bool( "daemon" ) /* since 4.0.0 */
2251
2
        change_short('d')
2252
2
    add_obsolete_string( "pidfile" ) /* since 4.0.0 */
2253
2
#endif
2254
2255
2
    add_bool( "color", true, COLOR_TEXT, COLOR_LONGTEXT )
2256
2
    add_obsolete_bool( "advanced" ) /* since 4.0.0 */
2257
2
    add_bool( "interact", true, INTERACTION_TEXT,
2258
2
              INTERACTION_LONGTEXT )
2259
2260
2
    add_bool ( "stats", true, STATS_TEXT, STATS_LONGTEXT )
2261
2
    add_integer( "stats-min-report-interval", 250,
2262
2
                        STATSFREQ_TEXT, STATSFREQ_LONGTEXT );
2263
2
        change_integer_range( 0, INT32_MAX )
2264
2265
2
    set_subcategory( SUBCAT_INTERFACE_MAIN )
2266
2
    add_module_cat("intf", SUBCAT_INTERFACE_MAIN, NULL,
2267
2
                   INTF_TEXT, INTF_LONGTEXT)
2268
2
        change_short('I')
2269
2
    add_module_list_cat("extraintf", SUBCAT_INTERFACE_MAIN, NULL,
2270
2
                        EXTRAINTF_TEXT, EXTRAINTF_LONGTEXT)
2271
2272
2273
2
    set_subcategory( SUBCAT_INTERFACE_CONTROL )
2274
2
    add_module_list_cat("control", SUBCAT_INTERFACE_CONTROL, NULL,
2275
2
                        CONTROL_TEXT, CONTROL_LONGTEXT)
2276
2277
/* Hotkey options*/
2278
2
    set_subcategory( SUBCAT_INTERFACE_HOTKEYS )
2279
2
    add_category_hint(N_("Hot keys"), HOTKEY_CAT_LONGTEXT)
2280
2281
2
    add_integer( "hotkeys-y-wheel-mode", 0, MOUSE_Y_WHEEL_MODE_TEXT,
2282
2
                 MOUSE_Y_WHEEL_MODE_LONGTEXT )
2283
2
        change_integer_list( mouse_wheel_values, mouse_wheel_texts )
2284
2
    add_integer( "hotkeys-x-wheel-mode", 2, MOUSE_X_WHEEL_MODE_TEXT,
2285
2
                 MOUSE_X_WHEEL_MODE_LONGTEXT )
2286
2
        change_integer_list( mouse_wheel_values, mouse_wheel_texts )
2287
2
    add_obsolete_integer( "hotkeys-mousewheel-mode" ) /* since 3.0.0 */
2288
2289
#if defined(__APPLE__)
2290
/* Don't use the following combo's */
2291
2292
/*  copy                          "Command+c"
2293
 *  cut                           "Command+x"
2294
 *  paste                         "Command+v"
2295
 *  select all                    "Command+a"
2296
 *  preferences                   "Command+,"
2297
 *  hide vlc                      "Command+h"
2298
 *  hide other                    "Command+Alt+h"
2299
 *  open file                     "Command+Shift+o"
2300
 *  open                          "Command+o"
2301
 *  open disk                     "Command+d"
2302
 *  open network                  "Command+n"
2303
 *  open capture                  "Command+r"
2304
 *  save playlist                 "Command+s"
2305
 *  playlist repeat all           "Command+l"
2306
 *  playlist repeat               "Command+r"
2307
 *  video fit to screen           "Command+3"
2308
 *  minimize window               "Command+m"
2309
 *  close window                  "Command+w"
2310
 *  streaming wizard              "Command+Shift+w"
2311
 *  show controller               "Command+Shift+c"
2312
 *  show playlist                 "Command+Shift+p"
2313
 *  show info                     "Command+i"
2314
 *  show extended controls        "Command+e"
2315
 *  show equaliser                "Command+Shift+e"
2316
 *  show bookmarks                "Command+b"
2317
 *  show messages                 "Command+Shift+m"
2318
 *  show errors and warnings      "Command+Ctrl+m"
2319
 *  help                          "Command+?"
2320
 *  readme / FAQ                  "Command+Alt+?"
2321
 */
2322
#   define KEY_TOGGLE_FULLSCREEN  "Command+f"
2323
#   define KEY_LEAVE_FULLSCREEN   "Esc"
2324
#   define KEY_PLAY_PAUSE         "Space"
2325
#   define KEY_SIMPLE_PAUSE       NULL
2326
#   define KEY_PLAY               NULL
2327
#   define KEY_FASTER             "Command+="
2328
#   define KEY_SLOWER             "Command+-"
2329
#   define KEY_RATE_NORMAL        NULL
2330
#   define KEY_RATE_FASTER_FINE   NULL
2331
#   define KEY_RATE_SLOWER_FINE   NULL
2332
#   define KEY_NEXT               "Command+Right"
2333
#   define KEY_PREV               "Command+Left"
2334
#   define KEY_PROJECTION_TOGGLE  NULL
2335
#   define KEY_STOP               "Command+."
2336
#   define KEY_POSITION           "t"
2337
#   define KEY_JUMP_MEXTRASHORT   "Command+Ctrl+Left"
2338
#   define KEY_JUMP_PEXTRASHORT   "Command+Ctrl+Right"
2339
#   define KEY_JUMP_MSHORT        "Command+Alt+Left"
2340
#   define KEY_JUMP_PSHORT        "Command+Alt+Right"
2341
#   define KEY_JUMP_MMEDIUM       "Command+Shift+Left"
2342
#   define KEY_JUMP_PMEDIUM       "Command+Shift+Right"
2343
#   define KEY_JUMP_MLONG         "Command+Shift+Alt+Left"
2344
#   define KEY_JUMP_PLONG         "Command+Shift+Alt+Right"
2345
#   define KEY_FRAME_NEXT         "e"
2346
#   define KEY_NAV_ACTIVATE       "Enter"
2347
#   define KEY_NAV_UP             "Up"
2348
#   define KEY_NAV_DOWN           "Down"
2349
#   define KEY_NAV_LEFT           "Left"
2350
#   define KEY_NAV_RIGHT          "Right"
2351
#   define KEY_QUIT               "Command+q"
2352
#   define KEY_VOL_UP             "Command+Up"
2353
#   define KEY_VOL_DOWN           "Command+Down"
2354
#   define KEY_VOL_MUTE           "Command+Alt+Down"
2355
#   define KEY_SUBDELAY_UP        "j"
2356
#   define KEY_SUBDELAY_DOWN      "h"
2357
#   define KEY_SUBPOS_DOWN        NULL
2358
#   define KEY_SUBPOS_UP          NULL
2359
#   define KEY_SUBTEXT_SCALEUP    "Command+Mouse Wheel Up"
2360
#   define KEY_SUBTEXT_SCALEDOWN  "Command+Mouse Wheel Down"
2361
#   define KEY_SUBTEXT_SCALE      "Command+0"
2362
#   define KEY_SUBSYNC_MARKAUDIO  "Shift+h"
2363
#   define KEY_SUBSYNC_MARKSUB    "Shift+j"
2364
#   define KEY_SUBSYNC_APPLY      "Shift+k"
2365
#   define KEY_SUBSYNC_RESET      "Command+Shift+k"
2366
#   define KEY_AUDIODELAY_UP      "g"
2367
#   define KEY_AUDIODELAY_DOWN    "f"
2368
#   define KEY_AUDIO_TRACK        "l"
2369
#   define KEY_SUBTITLE_TRACK     "s"
2370
#   define KEY_SUBTITLE_TOGGLE    "Shift+s"
2371
#   define KEY_SUBTITLE_CONTROL_S "Command+Shift+v"
2372
#   define KEY_SUBTITLE_REVTRACK  "Alt+s"
2373
#   define KEY_PROGRAM_SID_NEXT   "x"
2374
#   define KEY_PROGRAM_SID_PREV   "Shift+x"
2375
#   define KEY_ASPECT_RATIO       "a"
2376
#   define KEY_CROP               "c"
2377
#   define KEY_TOGGLE_AUTOSCALE   "o"
2378
#   define KEY_SCALE_UP           "Alt+o"
2379
#   define KEY_SCALE_DOWN         "Shift+Alt+o"
2380
#   define KEY_DEINTERLACE        "d"
2381
#   define KEY_DEINTERLACE_MODE   "Shift+d"
2382
#   define KEY_INTF_TOGGLE_FSC    "i"
2383
#   define KEY_INTF_BOSS          NULL
2384
#   define KEY_INTF_POPUP_MENU    "Menu"
2385
#   define KEY_DISC_MENU          "Ctrl+m"
2386
#   define KEY_TITLE_PREV         "Ctrl+p"
2387
#   define KEY_TITLE_NEXT         "Ctrl+n"
2388
#   define KEY_CHAPTER_PREV       "Ctrl+u"
2389
#   define KEY_CHAPTER_NEXT       "Ctrl+d"
2390
#   define KEY_SNAPSHOT           "Command+Alt+s"
2391
#   define KEY_ZOOM               "z"
2392
#   define KEY_UNZOOM             "Shift+z"
2393
#   define KEY_RANDOM             "Command+z"
2394
#   define KEY_LOOP               "Shift+l"
2395
2396
#   define KEY_CROP_TOP           "Alt+i"
2397
#   define KEY_UNCROP_TOP         "Alt+Shift+i"
2398
#   define KEY_CROP_LEFT          "Alt+j"
2399
#   define KEY_UNCROP_LEFT        "Alt+Shift+j"
2400
#   define KEY_CROP_BOTTOM        "Alt+k"
2401
#   define KEY_UNCROP_BOTTOM      "Alt+Shift+k"
2402
#   define KEY_CROP_RIGHT         "Alt+l"
2403
#   define KEY_UNCROP_RIGHT       "Alt+Shift+l"
2404
2405
/* 360° Viewpoint */
2406
#   define KEY_VIEWPOINT_FOV_IN   "Page Up"
2407
#   define KEY_VIEWPOINT_FOV_OUT  "Page Down"
2408
2409
/* the macosx-interface already has bindings */
2410
#   define KEY_ZOOM_QUARTER       NULL
2411
#   define KEY_ZOOM_HALF          "Command+0"
2412
#   define KEY_ZOOM_ORIGINAL      "Command+1"
2413
#   define KEY_ZOOM_DOUBLE        "Command+2"
2414
2415
#   define KEY_SET_BOOKMARK1      "Command+F1"
2416
#   define KEY_SET_BOOKMARK2      "Command+F2"
2417
#   define KEY_SET_BOOKMARK3      "Command+F3"
2418
#   define KEY_SET_BOOKMARK4      "Command+F4"
2419
#   define KEY_SET_BOOKMARK5      "Command+F5"
2420
#   define KEY_SET_BOOKMARK6      "Command+F6"
2421
#   define KEY_SET_BOOKMARK7      "Command+F7"
2422
#   define KEY_SET_BOOKMARK8      "Command+F8"
2423
#   define KEY_SET_BOOKMARK9      NULL
2424
#   define KEY_SET_BOOKMARK10     NULL
2425
#   define KEY_PLAY_BOOKMARK1     "F1"
2426
#   define KEY_PLAY_BOOKMARK2     "F2"
2427
#   define KEY_PLAY_BOOKMARK3     "F3"
2428
#   define KEY_PLAY_BOOKMARK4     "F4"
2429
#   define KEY_PLAY_BOOKMARK5     "F5"
2430
#   define KEY_PLAY_BOOKMARK6     "F6"
2431
#   define KEY_PLAY_BOOKMARK7     "F7"
2432
#   define KEY_PLAY_BOOKMARK8     "F8"
2433
#   define KEY_PLAY_BOOKMARK9     NULL
2434
#   define KEY_PLAY_BOOKMARK10    NULL
2435
#   define KEY_RECORD             "Command+Shift+r"
2436
#   define KEY_WALLPAPER          NULL
2437
#   define KEY_AUDIODEVICE_CYCLE  "Shift+a"
2438
#   define KEY_PLAY_CLEAR         NULL
2439
2440
#else /* Non Mac OS X */
2441
    /*
2442
       You should try to avoid Ctrl + letter key, because they are usually for
2443
       dialogs showing and interface related stuffs.
2444
       It would be nice (less important than previous rule) to try to avoid
2445
       alt + letter key, because they are usually for menu accelerators and you
2446
       don't know how the translator is going to do it.
2447
     */
2448
2
#   define KEY_TOGGLE_FULLSCREEN  "f"
2449
2
#   define KEY_LEAVE_FULLSCREEN   "Esc"
2450
2
#   define KEY_SIMPLE_PAUSE       "Browser Stop"
2451
2
#   define KEY_PLAY               "Browser Refresh"
2452
2
#   define KEY_FASTER             "+"
2453
2
#   define KEY_SLOWER             "-"
2454
2
#   define KEY_RATE_NORMAL        "="
2455
2
#   define KEY_RATE_FASTER_FINE   "]"
2456
2
#   define KEY_RATE_SLOWER_FINE   "["
2457
#ifdef _WIN32
2458
#   define KEY_PLAY_PAUSE         "Space"
2459
#   define KEY_NEXT               "n"
2460
#   define KEY_PREV               "p"
2461
#   define KEY_STOP               "s"
2462
#else
2463
2
#   define KEY_PLAY_PAUSE         "Space\tMedia Play Pause"
2464
2
#   define KEY_NEXT               "n\tMedia Next Track"
2465
2
#   define KEY_PREV               "p\tMedia Prev Track"
2466
2
#   define KEY_STOP               "s\tMedia Stop"
2467
2
#endif
2468
2
#   define KEY_PROJECTION_TOGGLE  NULL
2469
2
#   define KEY_POSITION           "t"
2470
2
#   define KEY_JUMP_MEXTRASHORT   "Shift+Left"
2471
2
#   define KEY_JUMP_PEXTRASHORT   "Shift+Right"
2472
2
#   define KEY_JUMP_MSHORT        "Alt+Left"
2473
2
#   define KEY_JUMP_PSHORT        "Alt+Right"
2474
2
#   define KEY_JUMP_MMEDIUM       "Ctrl+Left"
2475
2
#   define KEY_JUMP_PMEDIUM       "Ctrl+Right"
2476
2
#   define KEY_JUMP_MLONG         "Ctrl+Alt+Left"
2477
2
#   define KEY_JUMP_PLONG         "Ctrl+Alt+Right"
2478
2
#   define KEY_NAV_ACTIVATE       "Enter"
2479
2
#   define KEY_NAV_UP             "Up"
2480
2
#   define KEY_NAV_DOWN           "Down"
2481
2
#   define KEY_NAV_LEFT           "Left"
2482
2
#   define KEY_NAV_RIGHT          "Right"
2483
2
#   define KEY_QUIT               "Ctrl+q"
2484
2485
#ifdef _WIN32 /* On Windows, people expect volume keys to control the master */
2486
#   define KEY_VOL_UP             "Ctrl+Up"
2487
#   define KEY_VOL_DOWN           "Ctrl+Down"
2488
#   define KEY_VOL_MUTE           "m"
2489
#   define KEY_FRAME_NEXT         "e"
2490
#else
2491
2
#   define KEY_VOL_UP             "Ctrl+Up\tVolume Up"
2492
2
#   define KEY_VOL_DOWN           "Ctrl+Down\tVolume Down"
2493
2
#   define KEY_VOL_MUTE           "m\tVolume Mute"
2494
2
#   define KEY_FRAME_NEXT         "e\tBrowser Next"
2495
2
#endif
2496
2497
2
#   define KEY_SUBDELAY_UP        "h"
2498
2
#   define KEY_SUBDELAY_DOWN      "g"
2499
2
#   define KEY_SUBPOS_DOWN        NULL
2500
2
#   define KEY_SUBPOS_UP          NULL
2501
2
#   define KEY_SUBTEXT_SCALEUP    "Ctrl+Mouse Wheel Up"
2502
2
#   define KEY_SUBTEXT_SCALEDOWN  "Ctrl+Mouse Wheel Down"
2503
2
#   define KEY_SUBTEXT_SCALE      "Ctrl+0"
2504
2
#   define KEY_SUBSYNC_MARKAUDIO  "Shift+h"
2505
2
#   define KEY_SUBSYNC_MARKSUB    "Shift+j"
2506
2
#   define KEY_SUBSYNC_APPLY      "Shift+k"
2507
2
#   define KEY_SUBSYNC_RESET      "Ctrl+Shift+k"
2508
2
#   define KEY_AUDIODELAY_UP      "k"
2509
2
#   define KEY_AUDIODELAY_DOWN    "j"
2510
2
#   define KEY_RANDOM             "r"
2511
2
#   define KEY_LOOP               "l"
2512
2513
2
#   define KEY_AUDIO_TRACK        "b"
2514
2
#   define KEY_SUBTITLE_TRACK     "v"
2515
2
#   define KEY_SUBTITLE_TOGGLE    "Shift+v"
2516
2
#   define KEY_SUBTITLE_CONTROL_S "Ctrl+Shift+v"
2517
2
#   define KEY_SUBTITLE_REVTRACK  "Alt+v"
2518
2
#   define KEY_PROGRAM_SID_NEXT   "x"
2519
2
#   define KEY_PROGRAM_SID_PREV   "Shift+x"
2520
2
#   define KEY_ASPECT_RATIO       "a"
2521
2
#   define KEY_CROP               "c"
2522
2
#   define KEY_TOGGLE_AUTOSCALE   "o"
2523
2
#   define KEY_SCALE_UP           "Alt+o"
2524
2
#   define KEY_SCALE_DOWN         "Alt+Shift+o"
2525
2
#   define KEY_DEINTERLACE        "d"
2526
2
#   define KEY_DEINTERLACE_MODE   "Shift+d"
2527
2
#   define KEY_INTF_TOGGLE_FSC    "i"
2528
2
#   define KEY_INTF_BOSS          NULL
2529
2
#   define KEY_INTF_POPUP_MENU    "Menu"
2530
2
#   define KEY_DISC_MENU          "Shift+m"
2531
2
#   define KEY_TITLE_PREV         "Shift+o"
2532
2
#   define KEY_TITLE_NEXT         "Shift+b"
2533
2
#   define KEY_CHAPTER_PREV       "Shift+p"
2534
2
#   define KEY_CHAPTER_NEXT       "Shift+n"
2535
2
#   define KEY_SNAPSHOT           "Shift+s"
2536
2537
2
#   define KEY_ZOOM               "z"
2538
2
#   define KEY_UNZOOM             "Shift+z"
2539
2540
2
#   define KEY_AUDIODEVICE_CYCLE  "Shift+a"
2541
2542
2
#   define KEY_RECORD             "Shift+r"
2543
2
#   define KEY_WALLPAPER          "w"
2544
2545
/* Cropping */
2546
2
#   define KEY_CROP_TOP           "Alt+r"
2547
2
#   define KEY_UNCROP_TOP         "Alt+Shift+r"
2548
2
#   define KEY_CROP_LEFT          "Alt+d"
2549
2
#   define KEY_UNCROP_LEFT        "Alt+Shift+d"
2550
2
#   define KEY_CROP_BOTTOM        "Alt+c"
2551
2
#   define KEY_UNCROP_BOTTOM      "Alt+Shift+c"
2552
2
#   define KEY_CROP_RIGHT         "Alt+f"
2553
2
#   define KEY_UNCROP_RIGHT       "Alt+Shift+f"
2554
2555
/* 360° Viewpoint */
2556
2
#   define KEY_VIEWPOINT_FOV_IN   "Page Up"
2557
2
#   define KEY_VIEWPOINT_FOV_OUT  "Page Down"
2558
2559
/* Zooming */
2560
2
#   define KEY_ZOOM_QUARTER       "Alt+1"
2561
2
#   define KEY_ZOOM_HALF          "Alt+2"
2562
2
#   define KEY_ZOOM_ORIGINAL      "Alt+3"
2563
2
#   define KEY_ZOOM_DOUBLE        "Alt+4"
2564
2565
/* Bookmarks */
2566
2
#   define KEY_SET_BOOKMARK1      "Ctrl+F1"
2567
2
#   define KEY_SET_BOOKMARK2      "Ctrl+F2"
2568
2
#   define KEY_SET_BOOKMARK3      "Ctrl+F3"
2569
2
#   define KEY_SET_BOOKMARK4      "Ctrl+F4"
2570
2
#   define KEY_SET_BOOKMARK5      "Ctrl+F5"
2571
2
#   define KEY_SET_BOOKMARK6      "Ctrl+F6"
2572
2
#   define KEY_SET_BOOKMARK7      "Ctrl+F7"
2573
2
#   define KEY_SET_BOOKMARK8      "Ctrl+F8"
2574
2
#   define KEY_SET_BOOKMARK9      "Ctrl+F9"
2575
2
#   define KEY_SET_BOOKMARK10     "Ctrl+F10"
2576
2
#   define KEY_PLAY_BOOKMARK1     "F1"
2577
2
#   define KEY_PLAY_BOOKMARK2     "F2"
2578
2
#   define KEY_PLAY_BOOKMARK3     "F3"
2579
2
#   define KEY_PLAY_BOOKMARK4     "F4"
2580
2
#   define KEY_PLAY_BOOKMARK5     "F5"
2581
2
#   define KEY_PLAY_BOOKMARK6     "F6"
2582
2
#   define KEY_PLAY_BOOKMARK7     "F7"
2583
2
#   define KEY_PLAY_BOOKMARK8     "F8"
2584
2
#   define KEY_PLAY_BOOKMARK9     "F9"
2585
2
#   define KEY_PLAY_BOOKMARK10    "F10"
2586
2587
/* Playlist clear */
2588
2
#   define KEY_PLAY_CLEAR         "Ctrl+w"
2589
2
#endif
2590
2591
2
    add_key("key-toggle-fullscreen", KEY_TOGGLE_FULLSCREEN,
2592
2
            TOGGLE_FULLSCREEN_KEY_TEXT, TOGGLE_FULLSCREEN_KEY_LONGTEXT)
2593
2
    add_key("key-leave-fullscreen", KEY_LEAVE_FULLSCREEN,
2594
2
            LEAVE_FULLSCREEN_KEY_TEXT, LEAVE_FULLSCREEN_KEY_LONGTEXT)
2595
2
    add_key("key-play-pause", KEY_PLAY_PAUSE,
2596
2
            PLAY_PAUSE_KEY_TEXT, PLAY_PAUSE_KEY_LONGTEXT)
2597
2
    add_key("key-pause", KEY_SIMPLE_PAUSE, PAUSE_KEY_TEXT, PAUSE_KEY_LONGTEXT)
2598
2
    add_key("key-play", KEY_PLAY, PLAY_KEY_TEXT, PLAY_KEY_LONGTEXT)
2599
2
    add_key("key-faster", KEY_FASTER, FASTER_KEY_TEXT, FASTER_KEY_LONGTEXT)
2600
2
    add_key("key-slower", KEY_SLOWER, SLOWER_KEY_TEXT, SLOWER_KEY_LONGTEXT)
2601
2
    add_key("key-rate-normal", KEY_RATE_NORMAL,
2602
2
            RATE_NORMAL_KEY_TEXT, RATE_NORMAL_KEY_LONGTEXT)
2603
2
    add_key("key-rate-faster-fine", KEY_RATE_FASTER_FINE,
2604
2
            RATE_FASTER_FINE_KEY_TEXT, RATE_FASTER_FINE_KEY_LONGTEXT)
2605
2
    add_key("key-rate-slower-fine", KEY_RATE_SLOWER_FINE,
2606
2
            RATE_SLOWER_FINE_KEY_TEXT, RATE_SLOWER_FINE_KEY_LONGTEXT)
2607
2
    add_key("key-next", KEY_NEXT, NEXT_KEY_TEXT, NEXT_KEY_LONGTEXT)
2608
2
    add_key("key-prev", KEY_PREV, PREV_KEY_TEXT, PREV_KEY_LONGTEXT)
2609
2
    add_key("key-projection-toggle", KEY_PROJECTION_TOGGLE, "", "")
2610
2
    add_key("key-stop", KEY_STOP, STOP_KEY_TEXT, STOP_KEY_LONGTEXT)
2611
2
    add_key("key-position", KEY_POSITION, POSITION_KEY_TEXT,
2612
2
             POSITION_KEY_LONGTEXT)
2613
2
    add_key("key-jump-extrashort", KEY_JUMP_MEXTRASHORT,
2614
2
             JBEXTRASHORT_KEY_TEXT, JBEXTRASHORT_KEY_LONGTEXT)
2615
2
    add_key("key-jump+extrashort", KEY_JUMP_PEXTRASHORT,
2616
2
             JFEXTRASHORT_KEY_TEXT, JFEXTRASHORT_KEY_LONGTEXT)
2617
2
    add_key("key-jump-short", KEY_JUMP_MSHORT,
2618
2
            JBSHORT_KEY_TEXT, JBSHORT_KEY_LONGTEXT)
2619
2
    add_key("key-jump+short", KEY_JUMP_PSHORT,
2620
2
            JFSHORT_KEY_TEXT, JFSHORT_KEY_LONGTEXT)
2621
2
    add_key("key-jump-medium", KEY_JUMP_MMEDIUM,
2622
2
            JBMEDIUM_KEY_TEXT, JBMEDIUM_KEY_LONGTEXT)
2623
2
    add_key("key-jump+medium", KEY_JUMP_PMEDIUM,
2624
2
            JFMEDIUM_KEY_TEXT, JFMEDIUM_KEY_LONGTEXT)
2625
2
    add_key("key-jump-long", KEY_JUMP_MLONG,
2626
2
            JBLONG_KEY_TEXT, JBLONG_KEY_LONGTEXT)
2627
2
    add_key("key-jump+long", KEY_JUMP_PLONG,
2628
2
            JFLONG_KEY_TEXT, JFLONG_KEY_LONGTEXT)
2629
2
    add_key("key-frame-next", KEY_FRAME_NEXT,
2630
2
            FRAME_NEXT_KEY_TEXT, FRAME_NEXT_KEY_LONGTEXT)
2631
2
    add_key("key-nav-activate", KEY_NAV_ACTIVATE,
2632
2
            NAV_ACTIVATE_KEY_TEXT, NAV_ACTIVATE_KEY_LONGTEXT)
2633
2
    add_key("key-nav-up", KEY_NAV_UP, NAV_UP_KEY_TEXT, NAV_UP_KEY_LONGTEXT)
2634
2
    add_key("key-nav-down", KEY_NAV_DOWN,
2635
2
            NAV_DOWN_KEY_TEXT, NAV_DOWN_KEY_LONGTEXT)
2636
2
    add_key("key-nav-left", KEY_NAV_LEFT,
2637
2
            NAV_LEFT_KEY_TEXT, NAV_LEFT_KEY_LONGTEXT)
2638
2
    add_key("key-nav-right", KEY_NAV_RIGHT,
2639
2
            NAV_RIGHT_KEY_TEXT, NAV_RIGHT_KEY_LONGTEXT)
2640
2641
2
    add_key("key-disc-menu", KEY_DISC_MENU, DISC_MENU_TEXT, DISC_MENU_LONGTEXT)
2642
2
    add_key("key-title-prev", KEY_TITLE_PREV,
2643
2
            TITLE_PREV_TEXT, TITLE_PREV_LONGTEXT)
2644
2
    add_key("key-title-next", KEY_TITLE_NEXT,
2645
2
            TITLE_NEXT_TEXT, TITLE_NEXT_LONGTEXT)
2646
2
    add_key("key-chapter-prev", KEY_CHAPTER_PREV,
2647
2
            CHAPTER_PREV_TEXT, CHAPTER_PREV_LONGTEXT)
2648
2
    add_key("key-chapter-next", KEY_CHAPTER_NEXT,
2649
2
            CHAPTER_NEXT_TEXT, CHAPTER_NEXT_LONGTEXT)
2650
2
    add_key("key-quit", KEY_QUIT, QUIT_KEY_TEXT, QUIT_KEY_LONGTEXT)
2651
2
    add_key("key-vol-up", KEY_VOL_UP, VOL_UP_KEY_TEXT, VOL_UP_KEY_LONGTEXT)
2652
2
    add_key("key-vol-down", KEY_VOL_DOWN,
2653
2
            VOL_DOWN_KEY_TEXT, VOL_DOWN_KEY_LONGTEXT)
2654
2
    add_key("key-vol-mute", KEY_VOL_MUTE,
2655
2
            VOL_MUTE_KEY_TEXT, VOL_MUTE_KEY_LONGTEXT)
2656
2
    add_key("key-subdelay-up", KEY_SUBDELAY_UP,
2657
2
            SUBDELAY_UP_KEY_TEXT, SUBDELAY_UP_KEY_LONGTEXT)
2658
2
    add_key("key-subdelay-down", KEY_SUBDELAY_DOWN,
2659
2
             SUBDELAY_DOWN_KEY_TEXT, SUBDELAY_DOWN_KEY_LONGTEXT)
2660
2
    add_key("key-subsync-markaudio", KEY_SUBSYNC_MARKAUDIO,
2661
2
            SUBSYNC_MARKAUDIO_KEY_TEXT, SUBSYNC_MARKAUDIO_KEY_LONGTEXT)
2662
2
    add_key("key-subsync-marksub", KEY_SUBSYNC_MARKSUB,
2663
2
            SUBSYNC_MARKSUB_KEY_TEXT, SUBSYNC_MARKSUB_KEY_LONGTEXT)
2664
2
    add_key("key-subsync-apply", KEY_SUBSYNC_APPLY,
2665
2
            SUBSYNC_APPLY_KEY_TEXT, SUBSYNC_APPLY_KEY_LONGTEXT)
2666
2
    add_key("key-subsync-reset", KEY_SUBSYNC_RESET,
2667
2
            SUBSYNC_RESET_KEY_TEXT, SUBSYNC_RESET_KEY_LONGTEXT)
2668
2
    add_key("key-subpos-up", KEY_SUBPOS_UP,
2669
2
            SUBPOS_UP_KEY_TEXT, SUBPOS_UP_KEY_LONGTEXT)
2670
2
    add_key("key-subpos-down", KEY_SUBPOS_DOWN,
2671
2
            SUBPOS_DOWN_KEY_TEXT, SUBPOS_DOWN_KEY_LONGTEXT)
2672
2
    add_key("key-audiodelay-up", KEY_AUDIODELAY_UP,
2673
2
            AUDIODELAY_UP_KEY_TEXT, AUDIODELAY_UP_KEY_LONGTEXT)
2674
2
    add_key("key-audiodelay-down", KEY_AUDIODELAY_DOWN,
2675
2
            AUDIODELAY_DOWN_KEY_TEXT, AUDIODELAY_DOWN_KEY_LONGTEXT)
2676
2
    add_key("key-audio-track", KEY_AUDIO_TRACK, AUDIO_TRACK_KEY_TEXT,
2677
2
            AUDIO_TRACK_KEY_LONGTEXT)
2678
2
    add_key("key-audiodevice-cycle", KEY_AUDIODEVICE_CYCLE,
2679
2
            AUDIO_DEVICE_CYCLE_KEY_TEXT,
2680
2
            AUDIO_DEVICE_CYCLE_KEY_LONGTEXT)
2681
2
    add_key("key-subtitle-revtrack", KEY_SUBTITLE_REVTRACK,
2682
2
            SUBTITLE_REVERSE_TRACK_KEY_TEXT, SUBTITLE_REVERSE_TRACK_KEY_LONGTEXT)
2683
2
    add_key("key-subtitle-track", KEY_SUBTITLE_TRACK,
2684
2
            SUBTITLE_TRACK_KEY_TEXT, SUBTITLE_TRACK_KEY_LONGTEXT)
2685
2
    add_key("key-subtitle-toggle", KEY_SUBTITLE_TOGGLE,
2686
2
            SUBTITLE_TOGGLE_KEY_TEXT, SUBTITLE_TOGGLE_KEY_LONGTEXT)
2687
2
    add_key("key-subtitle-control-secondary", KEY_SUBTITLE_CONTROL_S,
2688
2
            SUBTITLE_CONTROL_SECONDARY_KEY_TEXT, SUBTITLE_CONTROL_SECONDARY_KEY_LONGTEXT)
2689
2
    add_key("key-program-sid-next", KEY_PROGRAM_SID_NEXT,
2690
2
            PROGRAM_SID_NEXT_KEY_TEXT, PROGRAM_SID_NEXT_KEY_LONGTEXT)
2691
2
    add_key("key-program-sid-prev", KEY_PROGRAM_SID_PREV,
2692
2
            PROGRAM_SID_PREV_KEY_TEXT, PROGRAM_SID_PREV_KEY_LONGTEXT)
2693
2
    add_key("key-aspect-ratio", KEY_ASPECT_RATIO,
2694
2
            ASPECT_RATIO_KEY_TEXT, ASPECT_RATIO_KEY_LONGTEXT)
2695
2
    add_key("key-crop", KEY_CROP,
2696
2
            CROP_KEY_TEXT, CROP_KEY_LONGTEXT)
2697
2
    add_key("key-toggle-autoscale", KEY_TOGGLE_AUTOSCALE,
2698
2
            TOGGLE_AUTOSCALE_KEY_TEXT, TOGGLE_AUTOSCALE_KEY_LONGTEXT)
2699
2
    add_key("key-incr-scalefactor", KEY_SCALE_UP,
2700
2
            SCALE_UP_KEY_TEXT, SCALE_UP_KEY_LONGTEXT)
2701
2
    add_key("key-decr-scalefactor", KEY_SCALE_DOWN,
2702
2
            SCALE_DOWN_KEY_TEXT, SCALE_DOWN_KEY_LONGTEXT)
2703
2
    add_key("key-deinterlace", KEY_DEINTERLACE,
2704
2
            DEINTERLACE_KEY_TEXT, DEINTERLACE_KEY_LONGTEXT)
2705
2
    add_key("key-deinterlace-mode", KEY_DEINTERLACE_MODE,
2706
2
            DEINTERLACE_MODE_KEY_TEXT, DEINTERLACE_MODE_KEY_LONGTEXT)
2707
2
    add_key("key-intf-show", KEY_INTF_TOGGLE_FSC,
2708
2
            INTF_TOGGLE_FSC_KEY_TEXT, INTF_TOGGLE_FSC_KEY_LONGTEXT)
2709
2710
2
    add_key("key-intf-boss", KEY_INTF_BOSS,
2711
2
            INTF_BOSS_KEY_TEXT, INTF_BOSS_KEY_LONGTEXT)
2712
2
    add_key("key-intf-popup-menu", KEY_INTF_POPUP_MENU,
2713
2
            INTF_POPUP_MENU_KEY_TEXT, INTF_POPUP_MENU_KEY_LONGTEXT)
2714
2
    add_key("key-snapshot", KEY_SNAPSHOT, SNAP_KEY_TEXT, SNAP_KEY_LONGTEXT)
2715
2
    add_key("key-record", KEY_RECORD, RECORD_KEY_TEXT, RECORD_KEY_LONGTEXT)
2716
2
    add_key("key-zoom", KEY_ZOOM, ZOOM_KEY_TEXT, ZOOM_KEY_LONGTEXT)
2717
2
    add_key("key-unzoom", KEY_UNZOOM, UNZOOM_KEY_TEXT, UNZOOM_KEY_LONGTEXT)
2718
2
    add_key("key-wallpaper", KEY_WALLPAPER,
2719
2
            WALLPAPER_KEY_TEXT, WALLPAPER_KEY_LONGTEXT)
2720
2721
2
    add_key("key-crop-top", KEY_CROP_TOP,
2722
2
             CROP_TOP_KEY_TEXT, CROP_TOP_KEY_LONGTEXT)
2723
2
    add_key("key-uncrop-top", KEY_UNCROP_TOP,
2724
2
            UNCROP_TOP_KEY_TEXT, UNCROP_TOP_KEY_LONGTEXT)
2725
2
    add_key("key-crop-left", KEY_CROP_LEFT,
2726
2
            CROP_LEFT_KEY_TEXT, CROP_LEFT_KEY_LONGTEXT)
2727
2
    add_key("key-uncrop-left", KEY_UNCROP_LEFT,
2728
2
            UNCROP_LEFT_KEY_TEXT, UNCROP_LEFT_KEY_LONGTEXT)
2729
2
    add_key("key-crop-bottom", KEY_CROP_BOTTOM,
2730
2
            CROP_BOTTOM_KEY_TEXT, CROP_BOTTOM_KEY_LONGTEXT)
2731
2
    add_key("key-uncrop-bottom", KEY_UNCROP_BOTTOM,
2732
2
             UNCROP_BOTTOM_KEY_TEXT, UNCROP_BOTTOM_KEY_LONGTEXT)
2733
2
    add_key("key-crop-right", KEY_CROP_RIGHT,
2734
2
            CROP_RIGHT_KEY_TEXT, CROP_RIGHT_KEY_LONGTEXT)
2735
2
    add_key("key-uncrop-right", KEY_UNCROP_RIGHT,
2736
2
            UNCROP_RIGHT_KEY_TEXT, UNCROP_RIGHT_KEY_LONGTEXT)
2737
2
    add_key("key-random", KEY_RANDOM, RANDOM_KEY_TEXT, RANDOM_KEY_LONGTEXT)
2738
2
    add_key("key-loop", KEY_LOOP, LOOP_KEY_TEXT, LOOP_KEY_LONGTEXT)
2739
2740
2
    add_key("key-viewpoint-fov-in", KEY_VIEWPOINT_FOV_IN,
2741
2
            VIEWPOINT_FOV_IN_KEY_TEXT, VIEWPOINT_FOV_IN_KEY_LONGTEXT)
2742
2
    add_key("key-viewpoint-fov-out", KEY_VIEWPOINT_FOV_OUT,
2743
2
            VIEWPOINT_FOV_OUT_KEY_TEXT, VIEWPOINT_FOV_OUT_KEY_LONGTEXT)
2744
2
    add_key("key-viewpoint-roll-clock", NULL,
2745
2
            VIEWPOINT_ROLL_CLOCK_KEY_TEXT, VIEWPOINT_ROLL_CLOCK_KEY_LONGTEXT)
2746
2
    add_key("key-viewpoint-roll-anticlock", NULL,
2747
2
            VIEWPOINT_ROLL_ANTICLOCK_KEY_TEXT,
2748
2
            VIEWPOINT_ROLL_ANTICLOCK_KEY_LONGTEXT)
2749
2750
2
    add_key("key-zoom-quarter", KEY_ZOOM_QUARTER, ZOOM_QUARTER_KEY_TEXT, ZOOM_LEVEL_KEY_LONGTEXT)
2751
2
    add_key("key-zoom-half", KEY_ZOOM_HALF, ZOOM_HALF_KEY_TEXT, ZOOM_LEVEL_KEY_LONGTEXT)
2752
2
    add_key("key-zoom-original", KEY_ZOOM_ORIGINAL, ZOOM_ORIGINAL_KEY_TEXT, ZOOM_LEVEL_KEY_LONGTEXT)
2753
2
    add_key("key-zoom-double", KEY_ZOOM_DOUBLE, ZOOM_DOUBLE_KEY_TEXT, ZOOM_LEVEL_KEY_LONGTEXT)
2754
2755
2
    add_key("key-clear-playlist", KEY_PLAY_CLEAR,
2756
2
            PLAY_CLEAR_KEY_TEXT, PLAY_CLEAR_KEY_LONGTEXT)
2757
2758
2
    add_key("key-subtitle-text-scale-normal", KEY_SUBTEXT_SCALE,
2759
2
            SUBTEXT_SCALE_KEY_TEXT, SUBTEXT_SCALE_KEY_LONGTEXT)
2760
2
    add_key("key-subtitle-text-scale-up", KEY_SUBTEXT_SCALEUP,
2761
2
            SUBTEXT_SCALEUP_KEY_TEXT, SUBTEXT_SCALE_KEY_LONGTEXT)
2762
2
    add_key("key-subtitle-text-scale-down", KEY_SUBTEXT_SCALEDOWN,
2763
2
            SUBTEXT_SCALEDOWN_KEY_TEXT, SUBTEXT_SCALE_KEY_LONGTEXT)
2764
2765
2
    set_section ( N_("Jump sizes" ), NULL )
2766
2
    add_integer( "extrashort-jump-size", 3, JIEXTRASHORT_TEXT,
2767
2
                                    JIEXTRASHORT_LONGTEXT )
2768
2
    add_integer( "short-jump-size", 10, JISHORT_TEXT,
2769
2
                                    JISHORT_LONGTEXT )
2770
2
    add_integer( "medium-jump-size", 60, JIMEDIUM_TEXT,
2771
2
                                    JIMEDIUM_LONGTEXT )
2772
2
    add_integer( "long-jump-size", 300, JILONG_TEXT,
2773
2
                                    JILONG_LONGTEXT )
2774
2775
2
    set_section ( N_("Bookmarks"), NULL )
2776
2
    add_key("key-set-bookmark1", KEY_SET_BOOKMARK1,
2777
2
            SET_BOOKMARK1_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2778
2
    add_key("key-set-bookmark2", KEY_SET_BOOKMARK2,
2779
2
            SET_BOOKMARK2_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2780
2
    add_key("key-set-bookmark3", KEY_SET_BOOKMARK3,
2781
2
            SET_BOOKMARK3_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2782
2
    add_key("key-set-bookmark4", KEY_SET_BOOKMARK4,
2783
2
            SET_BOOKMARK4_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2784
2
    add_key("key-set-bookmark5", KEY_SET_BOOKMARK5,
2785
2
            SET_BOOKMARK5_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2786
2
    add_key("key-set-bookmark6", KEY_SET_BOOKMARK6,
2787
2
            SET_BOOKMARK6_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2788
2
    add_key("key-set-bookmark7", KEY_SET_BOOKMARK7,
2789
2
            SET_BOOKMARK7_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2790
2
    add_key("key-set-bookmark8", KEY_SET_BOOKMARK8,
2791
2
            SET_BOOKMARK8_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2792
2
    add_key("key-set-bookmark9", KEY_SET_BOOKMARK9,
2793
2
            SET_BOOKMARK9_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2794
2
    add_key("key-set-bookmark10", KEY_SET_BOOKMARK10,
2795
2
            SET_BOOKMARK10_KEY_TEXT, SET_BOOKMARK_KEY_LONGTEXT)
2796
2
    add_key("key-play-bookmark1", KEY_PLAY_BOOKMARK1,
2797
2
            PLAY_BOOKMARK1_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2798
2
    add_key("key-play-bookmark2", KEY_PLAY_BOOKMARK2,
2799
2
            PLAY_BOOKMARK2_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2800
2
    add_key("key-play-bookmark3", KEY_PLAY_BOOKMARK3,
2801
2
            PLAY_BOOKMARK3_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2802
2
    add_key("key-play-bookmark4", KEY_PLAY_BOOKMARK4,
2803
2
            PLAY_BOOKMARK4_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2804
2
    add_key("key-play-bookmark5", KEY_PLAY_BOOKMARK5,
2805
2
            PLAY_BOOKMARK5_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2806
2
    add_key("key-play-bookmark6", KEY_PLAY_BOOKMARK6,
2807
2
            PLAY_BOOKMARK6_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2808
2
    add_key("key-play-bookmark7", KEY_PLAY_BOOKMARK7,
2809
2
            PLAY_BOOKMARK7_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2810
2
    add_key("key-play-bookmark8", KEY_PLAY_BOOKMARK8,
2811
2
            PLAY_BOOKMARK8_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2812
2
    add_key("key-play-bookmark9", KEY_PLAY_BOOKMARK9,
2813
2
            PLAY_BOOKMARK9_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2814
2
    add_key("key-play-bookmark10", KEY_PLAY_BOOKMARK10,
2815
2
            PLAY_BOOKMARK10_KEY_TEXT, PLAY_BOOKMARK_KEY_LONGTEXT)
2816
2817
/* Miscellaneous */
2818
    /* Not displayed in GUI, listed in help output though */
2819
2
    set_subcategory( SUBCAT_HIDDEN )
2820
2
    add_category_hint(N_("Miscellaneous"), NULL)
2821
2822
2
#define HELP_TEXT \
2823
2
    N_("print help for VLC (can be combined with --help-verbose)")
2824
2
#define LONGHELP_TEXT \
2825
2
    N_("print help for VLC and all its modules (can be combined with " \
2826
2
       "--help-verbose)")
2827
2
#define FULL_HELP_TEXT \
2828
2
    N_("print complete help (same as --longhelp --help-verbose)")
2829
2
#define HELP_VERBOSE_TEXT \
2830
2
    N_("ask for extra verbosity when displaying help")
2831
2
#define LIST_TEXT \
2832
2
    N_("print a list of available modules")
2833
2
#define LIST_VERBOSE_TEXT \
2834
2
    N_("print a list of available modules with extra detail")
2835
2
#define MODULE_TEXT \
2836
2
    N_("print help on a specific module (can be combined with " \
2837
2
       "--help-verbose). Prefix the module name with = for strict " \
2838
2
       "matches.")
2839
2
#define IGNORE_CONFIG_TEXT \
2840
2
    N_("no configuration option will be loaded nor saved to config file")
2841
2
#define RESET_CONFIG_TEXT \
2842
2
    N_("reset the current config to the default values")
2843
2
#define CONFIG_TEXT \
2844
2
    N_("use alternate config file")
2845
2
#define RESET_PLUGINS_CACHE_TEXT \
2846
2
    N_("resets the current plugins cache")
2847
2
#define VERSION_TEXT \
2848
2
    N_("print version information")
2849
2850
2
    add_bool( "help", false, HELP_TEXT, "" )
2851
2
        change_short( 'h' )
2852
2
        change_volatile ()
2853
2
    add_bool( "longhelp", false, LONGHELP_TEXT, "" )
2854
2
        change_volatile ()
2855
2
    add_bool( "full-help", false, FULL_HELP_TEXT, "" )
2856
2
        change_short( 'H' )
2857
2
        change_volatile ()
2858
2
    add_bool( "help-verbose", false, HELP_VERBOSE_TEXT, "" )
2859
2
        change_volatile ()
2860
2
    add_bool( "list", false, LIST_TEXT, "" )
2861
2
        change_short( 'l' )
2862
2
        change_volatile ()
2863
2
    add_bool( "list-verbose", false, LIST_VERBOSE_TEXT, "" )
2864
2
        change_volatile ()
2865
2
    add_string( "module", NULL, MODULE_TEXT, "" )
2866
2
        change_short( 'p' )
2867
2
        change_volatile ()
2868
2
    add_bool( "ignore-config", true, IGNORE_CONFIG_TEXT, "" )
2869
2
        change_volatile ()
2870
2
    add_bool( "reset-config", false, RESET_CONFIG_TEXT, "" )
2871
2
        change_volatile ()
2872
#ifdef HAVE_DYNAMIC_PLUGINS
2873
    add_bool( "reset-plugins-cache", false,
2874
              RESET_PLUGINS_CACHE_TEXT, "" )
2875
        change_volatile ()
2876
#endif
2877
2
    add_bool( "version", false, VERSION_TEXT, "" )
2878
2
        change_volatile ()
2879
2
    add_string( "config", NULL, CONFIG_TEXT, "" )
2880
2
        change_volatile ()
2881
2882
2
vlc_module_end ()
2883
2884
/*****************************************************************************
2885
 * End configuration.
2886
 *****************************************************************************/
2887
2888
#ifdef HAVE_DYNAMIC_PLUGINS
2889
const char vlc_module_name[] = "main";
2890
#endif