Skip to content

Commit

Permalink
Update htpc.md
Browse files Browse the repository at this point in the history
  • Loading branch information
guyman624 authored Apr 2, 2024
1 parent 0a7edf1 commit 77e70ae
Showing 1 changed file with 33 additions and 25 deletions.
58 changes: 33 additions & 25 deletions docs/guides/htpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,30 @@ Depending on your hardware, the [example mpv configs](/tutorials/mpv/#basic-conf
==- :icon-file-code: HTPC `mpv.conf` config

```properties
# General
ontop=yes
### General
# Video
profile=high-quality
blend-subtitles=video
vo=gpu-next
target-colorspace-hint
hwdec=auto-safe
gpu-api=vulkan
target-colorspace-hint=yes

# Deband
# Misc
deband=no
deband-iterations=2
deband-threshold=64
deband-range=20
deband-grain=64
ontop=yes

### User Specific
gpu-api=vulkan # Only use Vulkan for NVIDIA GPUs. D3D11 is a better choice on AMD/Intel due to a few issues including HDR and general performance.

## Audio
# Read the Audio section for more information. Most do not need this.
# audio-spdif=ac3,eac3,dts,dts-hd,truehd
# audio-channels=stereo,5.1,7.1

## HDR # Comment these out on SDR Displays
target-contrast=inf ##inf is for OLED, for LCD get the contrast value from rtings or similar
target-trc=pq
target-prim=dci-p3
target-peak=700 ## If you have an HDR display, adjust this to the 10% peak

## Language Priority

Expand All @@ -169,21 +179,6 @@ alang=jpn,ja
#slang=zxx,eng,en
#alang=eng,en
#subs-with-matching-audio=no

[SDR]
profile-cond=p["video-params/primaries"] and p["video-params/primaries"] ~= "bt.2020"
vo=gpu

[HDR]
profile-cond=p["video-params/primaries"] == "bt.2020"
vo=gpu-next
target-contrast=inf ##inf is for OLED, for LCD get the contrast value from rtings or similar
target-trc=pq
target-prim=dci-p3
target-peak=700 ## If you have an HDR display, adjust this to the 10% peak

## Above makes use of vo=gpu-next for HDR Content, and vo=gpu for SDR. This is a requirement for blend-subtitles=video
## blend-subtitles=video is used to avoid performance issues with rendering 1080p subtitles at 2160p.
```

!!!
Expand All @@ -192,6 +187,19 @@ target-peak=700 ## If you have an HDR display, adjust this to the 10% peak

==-

#### Audio

==- :icon-unmute: Audio Passthrough Configuration
You can have MPV passthrough proprietary codecs, however this requires you to have a supported sound system. If you have a soundbar/reciever with Dolby or DTS support, read on.
If you have a system that supports both, and is connected via HDMI, you should be able to uncomment the two lines and make no other changes.
!!!warning
When using eARC, both the sound system and TV need to support the codec you are trying to pass through. If one of them is lacking a codec, you will not be able to pass that codec through. If your system has HDMI ports, you can directly connect your computer to it instead of using eARC, otherwise the codec will be converted to PCM.
!!!
If your sound system uses SPDIF/Toslink/Optical, remove the `,dts-hd,truehd` from the first line, and the `,7.1` from the second line. This is because these formats are not supported via an Optical cable.
!!!
Note that removing dts-hd and truehd from the config will not prevent them from being picked. DTS-HD should automatically play the compatibility track, however TrueHD will be transcoded to PCM. The trackselect.lua script can be used to exclude TrueHD, which should automatically pick the compatibility track instead.
!!!
==-
#### Scripts

Most modern TVs are capable of changing refresh rate to match the frame rate of the content, which removes [judder](/guides/playback#explaining-judder).
Expand Down

0 comments on commit 77e70ae

Please sign in to comment.