From 525df6522fb89b89940e37f67d9846a59c79d536 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Fri, 6 Sep 2024 14:44:17 -0500 Subject: fix(mpv): add profile for mjpeg --- mpv/.config/mpv/mpv.conf | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'mpv') 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 -- cgit v1.2.3-70-g09d2