aboutsummaryrefslogtreecommitdiff
path: root/web-player
blob: dcbbb5cb81b4576a76e624e05cf8f819c6c4673e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#
# Web media player from the command line
# https://unix.stackexchange.com/questions/160212/watch-youtube-videos-in-terminal
#

# Parameters
BASENAME="`basename $0`"
URL="$1"

# Check
if [ -z "$1" ]; then
  echo "usage: $BASENAME <url>"
  exit 1
fi

# Run
yt-dlp $URL -o - | mpv -vo aa -monitorpixelaspect 0.5 -