initial commit

This commit is contained in:
Ray Elliott 2020-10-20 23:30:54 +01:00
commit 27cdbc317c
11 changed files with 45 additions and 0 deletions

13
README.md Normal file
View File

@ -0,0 +1,13 @@
Create a stream launcher with:
```sh
./new name url
```
Launch an mpv cam feed with:
```sh
./cam/name [max-quality]
```
Where `max-quality` is a height (e.g., `720` means a maximum quality of '720p').

2
cams/czechia-prague-ai Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
./launcher.sh "https://www.youtube.com/watch?v=Wi2h6BpRcns" "$1"

View File

@ -0,0 +1,2 @@
#!/bin/sh
./launcher.sh "https://www.youtube.com/watch?v=dSycFECDqME" "$1"

2
cams/japan-nagasaki-airport Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
./launcher.sh "https://www.youtube.com/watch?v=Z591sNEtPgs" "$1"

7
cams/launcher.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
if [ -n "$2" ] ; then
_max_quality="$2"
else
_max_quality="480"
fi
bspc rule --add mpv --one-shot state=tiled && mpv --ytdl-raw-options=format='best[height<='"$_max_quality"']' "$1" & disown

2
cams/mars Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
./launcher.sh "https://www.youtube.com/watch?v=Z591sNEtPgs" "$1"

View File

@ -0,0 +1,2 @@
#!/bin/sh
./launcher.sh "https://www.youtube.com/watch?v=G05wmWFDtSo" "$1"

2
cams/russia-yсть-kут Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
./launcher.sh "https://www.youtube.com/watch?v=hO9Nkorupv4" "$1"

View File

@ -0,0 +1,2 @@
#!/bin/sh
./launcher.sh "https://www.youtube.com/watch?v=0Ns1sNoUSaY" "$1"

2
cams/usa-everett-smith-ave Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
./launcher.sh "https://www.youtube.com/watch?v=neo1hRZTO0s" "$1"

9
new Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
_cam_directory='cams'
mkdir -p "$_cam_directory"
echo '#!/bin/sh' >> "$_cam_directory/$1"
echo "bspc rule --add mpv --one-shot state=tiled && mpv \"$2\" & disown" >> "$_cam_directory/$1"
chmod +x "$_cam_directory/$1"