#!/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 " exit 1 fi # Run yt-dlp $URL -o - | mpv -vo aa -monitorpixelaspect 0.5 -