aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mpv
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-09-06 14:44:17 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-09-06 14:44:47 -0500
commit525df6522fb89b89940e37f67d9846a59c79d536 (patch)
tree82c4eb561195a26888879a1f0c4050a65368fb0d /mpv
parent6e02f366c9c852401d51fe1b6458e7418073c180 (diff)
fix(mpv): add profile for mjpeg
Diffstat (limited to 'mpv')
-rwxr-xr-xmpv/.config/mpv/mpv.conf27
1 files changed, 23 insertions, 4 deletions
diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf
index ceff2a1..3dee90c 100755
--- a/mpv/.config/mpv/mpv.conf
+++ b/mpv/.config/mpv/mpv.conf
@@ -30,11 +30,30 @@ cache=yes
demuxer-max-bytes=20M
demuxer-max-back-bytes=1200M
-[stream]
-profile-desc=Enable better performance for streaming live video
-profile-cond=p.path:match("twitch.tv/") ~= nil or get("media-title", ""):match("twitch.tv/") ~= nil or filename:match("[.]m3u8$") ~= nil
-demuxer-max-bytes=8192k
+[stdin]
+profile-desc=reading from stdin
+profile-cond=filename=="-"
+save-position-on-quit=no
+resume-playback=no
+write-filename-in-watch-later-config=no
+
+[twitch]
+profile-desc=streaming live video
+profile-cond=path:find("twitch%.tv/") or get("media-title", ""):find("twitch%.tv/") or filename:find("%.m3u8$")
save-position-on-quit=no
+resume-playback=no
write-filename-in-watch-later-config=no
+taskbar-progress=no
+demuxer-max-bytes=8192k
+
+[mjpeg]
+profile-desc=streaming mjpeg video
+profile-cond=video_format=='mjpeg'
+profile=low-latency
+cache=no
+untimed=yes
+correct-pts=no
+container-fps-override=30
+save-position-on-quit=no
resume-playback=no
taskbar-progress=no