#!/bin/bash if [[ "$1" = "-h" ]]; then echo "View multiple videos together. Maximum three files." exit fi . qolop &> /dev/null _qCol export &> /dev/null echo -e "${_cW}${_cU}# MPV shortcuts ${_cZ}${_cG} Modifiers: c = CTRL | Key | Playback | | Key | Audio | |:-------|:---------------------------| |:-------|:----------------------| | p | Pause | | m | Mute | | s | Screenshot | | 9/0 | Modify volume | | S | Screenshot without subs | | c-+/- | Change audio delay | | Q | Quit saving position | | # | Change audio track | | ,/. | Seek frame | | <-/-> | Seek 5 seconds | | Key | Subtitles | | up/dn | Seek 60 seconds | |:-------|:----------------------| | < / > | Prev/Next file | | v | Subtitle toggle | | [/] | Change speed | | j/J | Change subtitle | | o | Show progress | | z/x | Change subtitle delay | | O | Progress toggle | | r/t | Subtitles up / down | | Key | Video | |:-------|:---------------------------| | f | Fullscreen | | T | Toggle video on top | | A | Cycle aspect ratio | | 1/2 | Modify contrast | | 3/4 | Modify brightness | | 5/6 | Modify gamma | | 7/8 | Modify saturation | | w/e | Zoom in / out (fullscreen) | ${_cZ}" if [[ -z "$3" ]]; then mpv \ --lavfi-complex="[vid1][vid2]hstack[vo]" \ "$1" --external-file="$2" else mpv \ --lavfi-complex="[vid1][vid2][vid3]hstack=inputs=3[vo]" \ "$1" --external-files="$2:$3" fi