summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-11-27 22:11:04 -0500
committerAndrew Cady <d@cryptonomic.net>2022-11-27 22:11:04 -0500
commitf34bb3c0aa9ed17859be6b03c23d0b3428f9621c (patch)
tree2cd41ff68d44ad2972cfa4d5cbc0fb8f4032fe08
parent32e1f5cab131afda837ebda497b1903e1908fe40 (diff)
usage: ffmpeg.sh <dash output directory>
-rwxr-xr-xffmpeg.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/ffmpeg.sh b/ffmpeg.sh
index 019ba81..e6e251a 100755
--- a/ffmpeg.sh
+++ b/ffmpeg.sh
@@ -1,8 +1,15 @@
1#!/bin/sh 1#!/bin/sh
2set -e 2set -e
3tempdir=$(mktemp -d) 3if [ $# = 0 ]
4playlist=$tempdir/playlist 4then
5dashdir=$tempdir/dash 5 tempdir=$(mktemp -d)
6 dashdir=$tempdir/dash
7elif [ $# = 1 ]
8then
9 dashdir=$1
10else
11 exit 1
12fi
6mkdir -p "$dashdir" 13mkdir -p "$dashdir"
7echo "$dashdir"/live.mpd 14echo "$dashdir"/live.mpd
8 15
@@ -19,7 +26,7 @@ ffmpeg \
19 x=(w-text_w)/2:y=128:\ 26 x=(w-text_w)/2:y=128:\
20 box=1:boxcolor=black:\ 27 box=1:boxcolor=black:\
21 fontsize=72, 28 fontsize=72,
22 drawtext=\ 29 drawtext=\
23 fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:\ 30 fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:\
24 text='REBROADCAST':\ 31 text='REBROADCAST':\
25 fontcolor=white:\ 32 fontcolor=white:\