From c3a1bf60e9694b6ac725016a15f19f49905e541f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 20 Aug 2024 21:01:32 -0300 Subject: Initial import --- web-player | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 web-player (limited to 'web-player') diff --git a/web-player b/web-player new file mode 100755 index 0000000..dcbbb5c --- /dev/null +++ b/web-player @@ -0,0 +1,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 " + exit 1 +fi + +# Run +yt-dlp $URL -o - | mpv -vo aa -monitorpixelaspect 0.5 - -- cgit v1.2.3