Add overlay for 720p streams
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2020-12-28 00:57:40 +01:00
parent a2bd15b768
commit 7a8aa6a4d7
3 changed files with 21 additions and 0 deletions

17
static/gen-overlay720.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
set -e
if [ -z "$1" ]
then
echo "Logo to generate overlay from was not specified."
exit 1
fi
DIR="$(dirname "$(which "$0")")"
export LOGO_URL="file://$DIR/logoGen/$1.svg"
envsubst < "$DIR/overlay720.svg" > overlay720.tmp.svg
inkscape -o overlay720.png overlay720.tmp.svg
rm overlay720.tmp.svg

BIN
static/overlay720.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

4
static/overlay720.svg Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1280 720">
<image xlink:href="$LOGO_URL" x="1280" y="30" width="120" height="120" transform="translate(-150)"/>
</svg>

After

Width:  |  Height:  |  Size: 271 B