beatysh+omxplayer-vga666-script-addon
This commit is contained in:
parent
d3b5c71503
commit
16d690e1da
46 changed files with 347 additions and 342 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
read -p "SSH remote host (hostname or ip address): " host;
|
read -p "SSH remote host (hostname or ip address): " host;
|
||||||
#
|
#
|
||||||
read -p "If a puplic_key authentification?: N or y: " puplic;
|
read -p "If a puplic_key authentification?: N or y: " puplic;
|
||||||
|
|
|
@ -5,8 +5,9 @@ set -ex
|
||||||
if [ "$1" == "--help" ] || [[ -z "$1" ]]
|
if [ "$1" == "--help" ] || [[ -z "$1" ]]
|
||||||
then
|
then
|
||||||
echo "bitte alles kleinschreiben"
|
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 "Formate: [VERYLOW/LOW/MEDIUM/HIGH]"
|
||||||
|
echo "Displays: [VGA=4;HDMI=0,1,2,3,5]"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -40,6 +41,10 @@ else
|
||||||
format="-f 22"
|
format="-f 22"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${display}" ]; then
|
||||||
|
display="device=${display}"
|
||||||
|
fi
|
||||||
|
|
||||||
#read -p "Wie ist die URL? : " url
|
#read -p "Wie ist die URL? : " url
|
||||||
#read -p "Wo sollen die Dateien heruntergeladen werden? : " pfad
|
#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
|
#read -p "Soll ein Video heruntergeladen werden oder Audio? [opus/m4a/video/hd/fullhd/4k] : " format
|
||||||
|
@ -48,8 +53,8 @@ fi
|
||||||
if [ "$suche" == "suche" ]
|
if [ "$suche" == "suche" ]
|
||||||
then
|
then
|
||||||
#omxplayer -p -o ${output} `youtube-dl -g "ytsearch:$url" -q --force-ipv4 $format`
|
#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
|
else
|
||||||
#omxplayer -p -o ${output} `youtube-dl -g $url -q --force-ipv4 $format`
|
#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
|
fi
|
||||||
|
|
Loading…
Reference in a new issue