List and play videos over ssh using mpv.
Dependencies needed for the script to work properly.
- vipe: pipe stdin to vim to stdout (from moreutils)
- mpv: mplayer fork with enhancements
- SSH: Secure Shell to get access on your remote video files
Install it on linux:
sudo apt update
sudo apt install openssh mpv moreutils
Edit the following variables in the script before use.
- user: ssh server user
- server: ssh server name
- port : port to use for ssh (22 by default)
- dir: directory to search on the ssh server
- edit: editor to use for vipe
And you have the option to use a Jump Host to access the server indirectly if he is e.g. behind a NAT/Firewall)
ssh-mpv [opt] <search...>
- l: list remote videos to stdout
- v: view remote listing in $edit
- p: play listing from stdin