Skip to content

Commit

Permalink
feat: Add mpv option for blend-subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
Vodes committed Mar 29, 2024
1 parent f22bbf8 commit b00e1c6
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,15 @@ object MpvDesc {
Leave on if at all possible and not causing issues.
""".trimIndent()

val deband = """
val deband = if (Platform.current == Platform.JVM) """
Removes colorbanding from the video.
Keep this on if you don't have any performance issues.
Can also be toggled with h in the player.
""".trimIndent()
else """
Removes colorbanding from the video.
This might be quite heavy for mobile devices but worth it for WEB releases if your device is strong enough.
""".trimIndent()

val oversample = """
Interpolates by showing every frame 2.5 times (on 60hz).
Expand Down Expand Up @@ -68,6 +72,12 @@ object MpvDesc {
Forces dithering to 10bit because MPV's auto detection is broken.
Only use if you know that your display is 10bit.
""".trimIndent()

val blendSubs = """
Render subtitles in the same colorspace as your video.
This makes the colored stuff in subtitles more accurate but may be a little taxing on the performance.
Keep this on if you don't have any performance issues.
""".trimIndent()
}

@Serializable
Expand All @@ -82,6 +92,7 @@ data class MpvPreferences(
val oversampleInterpol: Boolean = false,
val dither10bit: Boolean = false,
val customDownmix: Boolean = false,
val blendSubs: Boolean = true,
val preferGerman: Boolean = false,
val preferEnDub: Boolean = false,
val preferDeDub: Boolean = false,
Expand Down

0 comments on commit b00e1c6

Please sign in to comment.