summaryrefslogtreecommitdiffstats
path: root/DOCS/man/vo.rst
blob: 3e5840acfa257a0bce384255946458f1ea8b1b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
VIDEO OUTPUT DRIVERS
====================

Video output drivers are interfaces to different video output facilities. The
syntax is:

``--vo=<driver1[:suboption1[=value]:...],driver2,...[,]>``
    Specify a priority list of video output drivers to be used.

If the list has a trailing ',', mpv will fall back on drivers not contained
in the list. Suboptions are optional and can mostly be omitted.

You can also set defaults for each driver. The defaults are applied before the
normal driver parameters.

``--vo-defaults=<driver1[:parameter1:parameter2:...],driver2,...>``
    Set defaults for each driver.

.. note::

    See ``--vo=help`` for a list of compiled-in video output drivers.

    The recommended output drivers are ``--vo=vdpau`` and ``--vo=opengl-hq``.
    All other drivers are just for compatibility or special purposes.

.. admonition:: Example

    ``--vo=opengl,xv,``
        Try the ``opengl`` driver, then the ``xv`` driver, then others.

Available video output drivers are:

``xv`` (X11 only)
    Uses the XVideo extension to enable hardware-accelerated display. This is
    the most compatible VO on X, but may be low-quality, and has issues with
    OSD and subtitle display.

    .. note:: This driver is for compatibility with old systems.

    ``adaptor=<number>``
        Select a specific XVideo adapter (check xvinfo results).
    ``port=<number>``
        Select a specific XVideo port.
    ``ck=<cur|use|set>``
        Select the source from which the color key is taken (default: cur).

        cur
          The default takes the color key currently set in Xv.
        use
          Use but do not set the color key from mpv (use the ``--colorkey``
          option to change it).
        set
          Same as use but also sets the supplied color key.

    ``ck-method=<man|bg|auto>``
        Sets the color key drawing method (default: man).

        man
          Draw the color key manually (reduces flicker in some cases).
        bg
          Set the color key as window background.
        auto
          Let Xv draw the color key.

    ``colorkey=<number>``
        Changes the color key to an RGB value of your choice. ``0x000000`` is
        black and ``0xffffff`` is white.

    ``no-colorkey``
        Disables color-keying.

``x11`` (X11 only)
    Shared memory video output driver without hardware acceleration that works
    whenever X11 is present.

    .. note:: This is a fallback only, and should not be normally used.

``vdpau`` (X11 only)
    Uses the VDPAU interface to display and optionally also decode video.
    Hardware decoding is used with ``--hwdec=vdpau``.

    .. note::

        Earlier versions of mpv (and MPlayer, mplayer2) provided sub-options
        to tune vdpau post-processing, like ``deint``, ``sharpen``, ``denoise``,
        ``chroma-deint``, ``pullup``, ``hqscaling``. These sub-options are
        deprecated, and you should use the ``vdpaupp`` video filter instead.

    ``sharpen=<-1-1>``
        (Deprecated. See note about ``vdpaupp``.)

        For positive values, apply a sharpening algorithm to the video, for
        negative values a blurring algorithm (default: 0).
    ``denoise=<0-1>``
        (Deprecated. See note about ``vdpaupp``.)

        Apply a noise reduction algorithm to the video (default: 0; no noise
        reduction).
    ``deint=<-4-4>``
        (Deprecated. See note about ``vdpaupp``.)

        Select deinterlacing mode (default: 0). In older versions (as well as
        MPlayer/mplayer2) you could use this option to enable deinterlacing.
        This doesn't work anymore, and deinterlacing is enabled with either
        the ``D`` key (by default mapped to the command ``cycle deinterlace``),
        or the ``--deinterlace`` option. Also, to select the default deint mode,
        you should use something like ``--vf-defaults=vdpaupp:deint-mode=temporal``
        instead of this sub-option.

        0
            Pick the ``vdpaupp`` video filter default, which corresponds to 3.
        1
            Show only first field.
        2
            Bob deinterlacing.
        3
            Motion-adaptive temporal deinterlacing. May lead to A/V desync
            with slow video hardware and/or high resolution.
        4
            Motion-adaptive temporal deinterlacing with edge-guided spatial
            interpolation. Needs fast video hardware.
    ``chroma-deint``
        (Deprecated. See note about ``vdpaupp``.)

        Makes temporal deinterlacers operate both on luma and chroma (default).
        Use no-chroma-deint to solely use luma and speed up advanced
        deinterlacing. Useful with slow video memory.
    ``pullup``
        (Deprecated. See note about ``vdpaupp``.)

        Try to apply inverse telecine, needs motion adaptive temporal
        deinterlacing.
    ``hqscaling=<0-9>``
        (Deprecated. See note about ``vdpaupp``.)

        0
            Use default VDPAU scaling (default).
        1-9
            Apply high quality VDPAU scaling (needs capable hardware).
    ``fps=<number>``
        Override autodetected display refresh rate value (the value is needed
        for framedrop to allow video playback rates higher than display
        refresh rate, and for vsync-aware frame timing adjustments). Default 0
        means use autodetected value. A positive value is interpreted as a
        refresh rate in Hz and overrides the autodetected value. A negative
        value disables all timing adjustment and framedrop logic.
    ``composite-detect``
        NVIDIA's current VDPAU implementation behaves somewhat differently
        under a compositing window manager and does not give accurate frame
        timing information. With this option enabled, the player tries to
        detect whether a compositing window manager is active. If one is
        detected, the player disables timing adjustments as if the user had
        specified ``fps=-1`` (as they would be based on incorrect input). This
        means timing is somewhat less accurate than without compositing, but
        with the composited mode behavior of the NVIDIA driver, there is no
        hard playback speed limit even without the disabled logic. Enabled by
        default, use ``no-composite-detect`` to disable.
    ``queuetime_windowed=<number>`` and ``queuetime_fs=<number>``
        Use VDPAU's presentation queue functionality to queue future video
        frame changes at most this many milliseconds in advance (default: 50).
        See below for additional information.
    ``output_surfaces=<2-15>``
        Allocate this many output surfaces to display video frames (default:
        3). See below for additional information.
    ``colorkey=<#RRGGBB|#AARRGGBB>``
        Set the VDPAU presentation queue background color, which in practice
        is the colorkey used if VDPAU operates in overlay mode (default:
        ``#020507``, some shade of black). If the alpha component of this value
        is 0, the default VDPAU colorkey will be used instead (which is usually
        green).
    ``force-yuv``
        Never accept RGBA input. This means mpv will insert a filter to convert
        to a YUV format before the VO. Sometimes useful to force availability
        of certain YUV-only features, like video equalizer or deinterlacing.

    Using the VDPAU frame queuing functionality controlled by the queuetime
    options makes mpv's frame flip timing less sensitive to system CPU load and
    allows mpv to start decoding the next frame(s) slightly earlier, which can
    reduce jitter caused by individual slow-to-decode frames. However, the
    NVIDIA graphics drivers can make other window behavior such as window moves
    choppy if VDPAU is using the blit queue (mainly happens if you have the
    composite extension enabled) and this feature is active. If this happens on
    your system and it bothers you then you can set the queuetime value to 0 to
    disable this feature. The settings to use in windowed and fullscreen mode
    are separate because there should be no reason to disable this for
    fullscreen mode (as the driver issue should not affect the video itself).

    You can queue more frames ahead by increasing the queuetime values and the
    ``output_surfaces`` count (to ensure enough surfaces to buffer video for a
    certain time ahead you need at least as many surfaces as the video has
    frames during that time, plus two). This could help make video smoother in
    some cases. The main downsides are increased video RAM requirements for
    the surfaces and laggier display response to user commands (display
    changes only become visible some time after they're queued). The graphics
    driver implementation may also have limits on the length of maximum
    queuing time or number of queued surfaces that work well or at all.

``direct3d_shaders`` (Windows only)
    Video output driver that uses the Direct3D interface.

    .. note:: This driver is for compatibility with systems that don't provide
              proper OpenGL drivers.

    ``prefer-stretchrect``
        Use ``IDirect3DDevice9::StretchRect`` over other methods if possible.

    ``disable-stretchrect``
        Never render the video using ``IDirect3DDevice9::StretchRect``.

    ``disable-textures``
        Never render the video using D3D texture rendering. Rendering with
        textures + shader will still be allowed. Add ``disable-shaders`` to
        completely disable video rendering with textures.

    ``disable-shaders``
        Never use shaders when rendering video.

    ``only-8bit``
        Never render YUV video with more than 8 bits per component.
        Using this flag will force software conversion to 8-bit.

    ``disable-texture-align``
        Normally texture sizes are always aligned to 16. With this option
        enabled, the video texture will always have exactly the same size as
        the video itself.


    Debug options. These might be incorrect, might be removed in the future,
    might crash, might cause slow downs, etc. Contact the developers if you
    actually need any of these for performance or proper operation.

    ``force-power-of-2``
        Always force textures to power of 2, even if the device reports
        non-power-of-2 texture sizes as supported.

    ``texture-memory=<mode>``
        Only affects operation with shaders/texturing enabled, and (E)OSD.
        Possible values:

        ``default`` (default)
            Use ``D3DPOOL_DEFAULT``, with a ``D3DPOOL_SYSTEMMEM`` texture for
            locking. If the driver supports ``D3DDEVCAPS_TEXTURESYSTEMMEMORY``,
            ``D3DPOOL_SYSTEMMEM`` is used directly.

        ``default-pool``
            Use ``D3DPOOL_DEFAULT``. (Like ``default``, but never use a
            shadow-texture.)

        ``default-pool-shadow``
            Use ``D3DPOOL_DEFAULT``, with a ``D3DPOOL_SYSTEMMEM`` texture for
            locking. (Like ``default``, but always force the shadow-texture.)

        ``managed``
            Use ``D3DPOOL_MANAGED``.

        ``scratch``
            Use ``D3DPOOL_SCRATCH``, with a ``D3DPOOL_SYSTEMMEM`` texture for
            locking.

    ``swap-discard``
        Use ``D3DSWAPEFFECT_DISCARD``, which might be faster.
        Might be slower too, as it must(?) clear every frame.

    ``exact-backbuffer``
        Always resize the backbuffer to window size.

``direct3d`` (Windows only)
    Same as ``direct3d_shaders``, but with the options ``disable-textures``
    and ``disable-shaders`` forced.

    .. note:: This driver is for compatibility with old systems.

``opengl``
    OpenGL video output driver. It supports extended scaling methods, dithering
    and color management.

    By default, it tries to use fast and fail-safe settings. Use the alias
    ``opengl-hq`` to use this driver with defaults set to high quality
    rendering.

    Requires at least OpenGL 2.1.

    Some features are available with OpenGL 3 capable graphics drivers only
    (or if the necessary extensions are available).

    OpenGL ES 2.0 and 3.0 are supported as well.

    Hardware decoding over OpenGL-interop is supported to some degree. Note
    that in this mode, some corner case might not be gracefully handled, and
    color space conversion and chroma upsampling is generally in the hand of
    the hardware decoder APIs.

    ``scale=<filter>``

        ``bilinear``
            Bilinear hardware texture filtering (fastest, very low quality).
            This is the default for compatibility reasons.

        ``spline36``
            Mid quality and speed. This is the default when using ``opengl-hq``.

        ``lanczos``
            Lanczos scaling. Provides mid quality and speed. Generally worse
            than ``spline36``, but it results in a slightly sharper image
            which is good for some content types. The number of taps can be
            controlled with ``scale-radius``, but is best left unchanged.

            This filter corresponds to the old ``lanczos3`` alias if the default
            radius is used, while ``lanczos2`` corresponds to a radius of 2.

            (This filter is an alias for ``sinc``-windowed ``sinc``)

        ``ewa_lanczos``
            Elliptic weighted average Lanczos scaling. Also known as Jinc.
            Relatively slow, but very good quality. The radius can be
            controlled with ``scale-radius``. Increasing the radius makes the
            filter sharper but adds more ringing.

            (This filter is an alias for ``jinc``-windowed ``jinc``)

        ``ewa_lanczossharp``
            A slightly sharpened version of ewa_lanczos, preconfigured to use
            an ideal radius and parameter. If your hardware can run it, this is
            probably what you should use by default.

        ``mitchell``
            Mitchell-Netravali. The ``B`` and ``C`` parameters can be set with
            ``scale-param1`` and ``scale-param2``. This filter is very good at
            downscaling (see ``dscale``).

        ``oversample``
            A version of nearest neighbour that (naively) oversamples pixels,
            so that pixels overlapping edges get linearly interpolated instead
            of rounded. This essentially removes the small imperfections and
            judder artifacts caused by nearest-neighbour interpolation, in
            exchange for adding some blur. This filter is good at temporal
            interpolation, and also known as "smoothmotion" (see ``tscale``).

        There are some more filters, but most are not as useful. For a complete
        list, pass ``help`` as value, e.g.::

            mpv --vo=opengl:scale=help

    ``scale-param1=<value>``, ``scale-param2=<value>``
        Set filter parameters. Ignored if the filter is not tunable.
        Currently, this affects the following filter parameters:

        bcspline
            Spline parameters (``B`` and ``C``). Defaults to 0.5 for both.

        gaussian
            Scale parameter (``t``). Increasing this makes the result blurrier.
            Defaults to 1.

        sharpen3, sharpen5
            Sharpening strength. Increasing this makes the image sharper but
            adds more ringing and aliasing. Defaults to 0.5.

        oversample
            Minimum distance to an edge before interpolation is used. Setting
            this to 0 will always interpolate edges, whereas setting it to 0.5
            will never interpolate, thus behaving as if the regular nearest
            neighbour algorithm was used. Defaults to 0.0.

    ``scale-blur=<value>``
        Kernel scaling factor (also known as a blur factor). Decreasing this
        makes the result sharper, increasing it makes it blurrier (default 0).
        If set to 0, the kernel's preferred blur factor is used. Note that
        setting this too low (eg. 0.5) leads to bad results. It's generally
        recommended to stick to values between 0.8 and 1.2.

    ``scale-radius=<value>``
        Set radius for filters listed below, must be a float number between 0.5
        and 16.0. Defaults to the filter's preferred radius if not specified.

            ``sinc`` and derivatives, ``jinc`` and derivatives, ``gaussian``, ``box`` and ``triangle``

        Note that depending on filter implementation details and video scaling
        ratio, the radius that actually being used might be different
        (most likely being increased a bit).

    ``scale-antiring=<value>``
        Set the antiringing strength. This tries to eliminate ringing, but can
        introduce other artifacts in the process. Must be a float number
        between 0.0 and 1.0. The default value of 0.0 disables antiringing
        entirely.

        Note that this doesn't affect the special filters ``bilinear``,
        ``bicubic_fast`` or ``sharpen``.

    ``scale-window=<window>``
        (Advanced users only) Choose a custom windowing function for the kernel.
        Defaults to the filter's preferred window if unset. Use
        ``scale-window=help`` to get a list of supported windowing functions.

    ``scale-wparam=<window>``
        (Advanced users only) Configure the parameter for the window function
        given by ``scale-window``. Ignored if the window is not tunable.
        Currently, this affects the following window parameters:

        kaiser
            Window parameter (alpha). Defaults to 6.33.
        blackman
            Window parameter (alpha). Defaults to 0.16.
        gaussian
            Scale parameter (t). Increasing this makes the window wider.
            Defaults to 1.

    ``scaler-resizes-only``
        Disable the scaler if the video image is not resized. In that case,
        ``bilinear`` is used instead whatever is set with ``scale``. Bilinear
        will reproduce the source image perfectly if no scaling is performed.
        Note that this option never affects ``cscale``.

    ``pbo``
        Enable use of PBOs. This is slightly faster, but can sometimes lead to
        sporadic and temporary image corruption (in theory, because reupload
        is not retried when it fails), and perhaps actually triggers slower
        paths with drivers that don't support PBOs properly.

    ``dither-depth=<N|no|auto>``
        Set dither target depth to N. Default: no.

        no
            Disable any dithering done by mpv.
        auto
            Automatic selection. If output bit depth cannot be detected,
            8 bits per component are assumed.
        8
            Dither to 8 bit output.

        Note that the depth of the connected video display device can not be
        detected. Often, LCD panels will do dithering on their own, which
        conflicts with ``opengl``'s dithering and leads to ugly output.

    ``dither-size-fruit=<2-8>``
        Set the size of the dither matrix (default: 6). The actual size of
        the matrix is ``(2^N) x (2^N)`` for an option value of ``N``, so a
        value of 6 gives a size of 64x64. The matrix is generated at startup
        time, and a large matrix can take rather long to compute (seconds).

        Used in ``dither=fruit`` mode only.

    ``dither=<fruit|ordered|no>``
        Select dithering algorithm (default: fruit). (Normally, the
        ``dither-depth`` option controls whether dithering is enabled.)

    ``temporal-dither``
        Enable temporal dithering. (Only active if dithering is enabled in
        general.) This changes between 8 different dithering pattern on each
        frame by changing the orientation of the tiled dithering matrix.
        Unfortunately, this can lead to flicker on LCD displays, since these
        have a high reaction time.

    ``debug``
        Check for OpenGL errors, i.e. call ``glGetError()``. Also request a
        debug OpenGL context (which does nothing with current graphics drivers
        as of this writing).

    ``interpolation``
        Reduce stuttering caused by mismatches in the video fps and display
        refresh rate (also known as judder).

        This essentially attempts to interpolate the missing frames by
        convoluting the video along the temporal axis. The filter used can be
        controlled using the ``tscale`` setting.

        Note that this relies on vsync to work, see ``swapinterval`` for more
        information.

    ``swapinterval=<n>``
        Interval in displayed frames between two buffer swaps.
        1 is equivalent to enable VSYNC, 0 to disable VSYNC. Defaults to 1 if
        not specified.

        Note that this depends on proper OpenGL vsync support. On some platforms
        and drivers, this only works reliably when in fullscreen mode. It may
        also require driver-specific hacks if using multiple monitors, to
        ensure mpv syncs to the right one. Compositing window managers can
        also lead to bad results, as can missing or incorrect display FPS
        information (see ``--display-fps``).

    ``dscale=<filter>``
        Like ``scale``, but apply these filters on downscaling instead. If this
        option is unset, the filter implied by ``scale`` will be applied.

    ``cscale=<filter>``
        As ``scale``, but for interpolating chroma information. If the image
        is not subsampled, this option is ignored entirely.

    ``tscale=<filter>``
        The filter used for interpolating the temporal axis (frames). This is
        only used if ``interpolation`` is enabled. The only valid choices
        for ``tscale`` are separable convolution filters (use ``tscale=help``
        to get a list). The default is ``oversample``.

        Note that the maximum supported filter radius is currently 3, and that
        using filters with larger radius may introduce issues when pausing or
        framestepping, proportional to the radius used. It is recommended to
        stick to a radius of 1 or 2.

    ``dscale-radius``, ``cscale-radius``, ``tscale-radius``, etc.
        Set filter parameters for ``dscale``, ``cscale`` and ``tscale``,
        respectively.

        See the corresponding options for ``scale``.

    ``linear-scaling``
        Scale in linear light. This is automatically enabled if
        ``target-prim``, ``target-trc``, ``icc-profile`` or
        ``sigmoid-upscaling`` is set. It should only be used with a
        ``fbo-format`` that has at least 16 bit precision.

    ``fancy-downscaling``
        When using convolution based filters, extend the filter size
        when downscaling. Trades quality for reduced downscaling performance.

        This is automatically disabled for anamorphic video, because this
        feature doesn't work correctly with different scale factors in
        different directions.

    ``sigmoid-upscaling``
        When upscaling, use a sigmoidal color transform to avoid emphasizing
        ringing artifacts. This also enables ``linear-scaling``.

    ``sigmoid-center``
        The center of the sigmoid curve used for ``sigmoid-upscaling``, must
        be a float between 0.0 and 1.0. Defaults to 0.75 if not specified.

    ``sigmoid-slope``
        The slope of the sigmoid curve used for ``sigmoid-upscaling``, must
        be a float between 1.0 and 20.0. Defaults to 6.5 if not specified.

    ``no-npot``
        Force use of power-of-2 texture sizes. For debugging only.
        Borders will be distorted due to filtering.

    ``glfinish``
        Call ``glFinish()`` before and after swapping buffers (default: disabled).
        Slower, but might help getting better results when doing framedropping.
        Can completely ruin performance. The details depend entirely on the
        OpenGL driver.

    ``waitvsync``
        Call ``glXWaitVideoSyncSGI`` after each buffer swap (default: disabled).
        This may or may not help with video timing accuracy and frame drop. It's
        possible that this makes video output slower, or has no effect at all.

        X11/GLX only.

    ``dwmflush``
        Calls ``DwmFlush`` after swapping buffers on Windows (default: 0).
        It also sets ``SwapInterval(0)`` to ignore the OpenGL timing. Values
        are: 0 (disabled), 1 (only in windowed mode), 2 (also in  full screen).
        This may help getting more consistent frame intervals, especially with
        high-fps clips - which might also reduce dropped frames. Typically a
        value of 1 should be enough since full screen may bypass the DWM.

        Windows only.

    ``sw``
        Continue even if a software renderer is detected.

    ``backend=<sys>``
        The value ``auto`` (the default) selects the windowing backend. You
        can also pass ``help`` to get a complete list of compiled in backends
        (sorted by autoprobe order).

        auto
            auto-select (default)
        cocoa
            Cocoa/OS X
        win
            Win32/WGL
        x11, x11es
            X11/GLX (the ``es`` variant forces GLES)
        wayland
            Wayland/EGL
        x11egl, x11egles
            X11/EGL (the ``es`` variant forces GLES)

    ``fbo-format=<fmt>``
        Selects the internal format of textures used for FBOs. The format can
        influence performance and quality of the video output. (FBOs are not
        always used, and typically only when using extended scalers.)
        ``fmt`` can be one of: rgb, rgba, rgb8, rgb10, rgb10_a2, rgb16, rgb16f,
        rgb32f, rgba12, rgba16, rgba16f, rgba32f.
        Default: rgba.

    ``gamma=<0.1..2.0>``
        Set a gamma value (default: 1.0). If gamma is adjusted in other ways
        (like with the ``--gamma`` option or key bindings and the ``gamma``
        property), the value is multiplied with the other gamma value.

        Recommended values based on the environmental brightness:

        1.0
            Brightly illuminated (default)
        0.9
            Slightly dim
        0.8
            Pitch black room

    ``gamma-auto``
        Automatically corrects the gamma value depending on ambient lighting
        conditions (adding a gamma boost for dark rooms).

        With ambient illuminance of 64lux, mpv will pick the 1.0 gamma value
        (no boost), and slightly increase the boost up until 0.8 for 16lux.

        NOTE: Only implemented on OS X.

    ``target-prim=<value>``
        Specifies the primaries of the display. Video colors will be adapted
        to this colorspace if necessary. Valid values are:

        auto
            Disable any adaptation (default)
        bt.470m
            ITU-R BT.470 M
        bt.601-525
            ITU-R BT.601 (525-line SD systems, eg. NTSC), SMPTE 170M/240M
        bt.601-625
            ITU-R BT.601 (625-line SD systems, eg. PAL/SECAM), ITU-R BT.470 B/G
        bt.709
            ITU-R BT.709 (HD), IEC 61966-2-4 (sRGB), SMPTE RP177 Annex B
        bt.2020
            ITU-R BT.2020 (UHD)
        apple
            Apple RGB
        adobe
            Adobe RGB (1998)
        prophoto
            ProPhoto RGB (ROMM)
        cie1931
            CIE 1931 RGB (not to be confused with CIE XYZ)

    ``target-trc=<value>``
        Specifies the transfer characteristics (gamma) of the display. Video
        colors will be adjusted to this curve. Valid values are:

        auto
            Disable any adaptation (default)
        bt.1886
            ITU-R BT.1886 curve, without the brightness drop (approx. 1.961)
        srgb
            IEC 61966-2-4 (sRGB)
        linear
            Linear light output
        gamma1.8
            Pure power curve (gamma 1.8), also used for Apple RGB
        gamma2.2
            Pure power curve (gamma 2.2)
        gamma2.8
            Pure power curve (gamma 2.8), also used for BT.470-BG
        prophoto
            ProPhoto RGB (ROMM)

    ``icc-profile=<file>``
        Load an ICC profile and use it to transform linear RGB to screen output.
        Needs LittleCMS 2 support compiled in. This option overrides the
        ``target-prim`` and ``target-trc`` options. It also enables
        ``linear-scaling``.

    ``icc-profile-auto``
        Automatically select the ICC display profile currently specified by
        the display settings of the operating system.

        NOTE: Only implemented on OS X and X11

    ``icc-cache=<file>``
        Store and load the 3D LUT created from the ICC profile in this file.
        This can be used to speed up loading, since LittleCMS 2 can take a while
        to create the 3D LUT. Note that this file contains an uncompressed LUT.
        Its size depends on the ``3dlut-size``, and can be very big.

    ``icc-intent=<value>``
        Specifies the ICC intent used for the color transformation (when using
        ``icc-profile``).

        0
            perceptual
        1
            relative colorimetric (default)
        2
            saturation
        3
            absolute