beatysh+omxplayer-vga666-script-addon

This commit is contained in:
simono41 2018-11-11 04:24:37 +01:00
parent d3b5c71503
commit fd3171ae6d
46 changed files with 349 additions and 342 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash
# 
#
read -p "SSH remote host (hostname or ip address): " host;
#
read -p "If a puplic_key authentification?: N or y: " puplic;

View file

@ -5,8 +5,9 @@ set -ex
if [ "$1" == "--help" ] || [[ -z "$1" ]]
then
echo "bitte alles kleinschreiben"
echo "bash ./youtube-dl.sh SUCHE/NOSUCHE URL/SUCHE FORMAT OUTPUT"
echo "bash ./youtube-dl.sh SUCHE/NOSUCHE URL/SUCHE FORMAT OUTPUT DISPLAY"
echo "Formate: [VERYLOW/LOW/MEDIUM/HIGH]"
echo "Displays: [VGA=4;HDMI=0,1,2,3,5]"
exit 0
fi
@ -15,10 +16,12 @@ if [ "$1" == "suche" ] || [ "$1" == "nosuche" ]; then
url="$2"
format="$3"
output="$4"
display="$5"
else
url="$1"
format="$2"
output="$3"
display="$4"
fi
if [ -z ${output} ]; then
@ -40,6 +43,10 @@ else
format="-f 22"
fi
if [ -n "${display}" ]; then
display="device=${display}"
fi
#read -p "Wie ist die URL? : " url
#read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
#read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/m4a/video/hd/fullhd/4k] : " format
@ -48,8 +55,8 @@ fi
if [ "$suche" == "suche" ]
then
#omxplayer -p -o ${output} `youtube-dl -g "ytsearch:$url" -q --force-ipv4 $format`
/usr/bin/omxplayer.bin -I -s -o ${output} --vol -800 --aspect-mode letterbox --no-osd `youtube-dl -g "ytsearch:$url" -q --force-ipv4 ${format}`
/usr/bin/omxplayer.bin ${device} -I -s -o ${output} --vol -800 --aspect-mode letterbox --no-osd `youtube-dl -g "ytsearch:$url" -q --force-ipv4 ${format}`
else
#omxplayer -p -o ${output} `youtube-dl -g $url -q --force-ipv4 $format`
/usr/bin/omxplayer.bin -I -s -o ${output} --vol -800 --aspect-mode letterbox --no-osd `youtube-dl -g $url -q --force-ipv4 ${format}`
/usr/bin/omxplayer.bin ${device} -I -s -o ${output} --vol -800 --aspect-mode letterbox --no-osd `youtube-dl -g $url -q --force-ipv4 ${format}`
fi