Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Tips and Tricks

Jakob edited this page Jul 18, 2020 · 1 revision

Custom commands

Changing resolution / bitrate in MPV

You can specify a maximum bitrate like this ["mpv", "--hls-bitrate=3000", "$url"]. In this case MPV will select a video track with a bitrate of 3000 kbps or lower.

To select a specific video track look at the output of MPV when you start a stream, it will list video tracks like this

Video --vid=1 (h264 1920x1080 25.000fps) (7015 kbps)
Video --vid=2 (h264 1280x720 25.000fps) (5190 kbps)
Video --vid=3 (h264 1024x576 25.000fps) (2963 kbps)
Video --vid=4 (h264 768x432 25.000fps) (1953 kbps)
Video --vid=5 (h264 640x360 25.000fps) (1310 kbps)
Video --vid=6 (h264 512x288 25.000fps) (918 kbps)
Video --vid=7 (h264 384x216 25.000fps) (519 kbps)
Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
Audio --aid=2 (aac 2ch 44100Hz)
Audio --aid=3 (aac 2ch 44100Hz) (192 kbps)

Pick one of the listed options and add it to you command like this["mpv", "--vid=2", "$url"]. Some VODs only have on video track and this command will not work for them!

You can also cycle through the available video tracks with the hotkey _.

MPV hotkey reference
MPV command line reference

Clone this wiki locally