summaryrefslogtreecommitdiff
path: root/ffmpeg_nistkasten.sh
diff options
context:
space:
mode:
authorLars Hoogestraat <lars@hoogi.eu>2020-06-20 17:52:42 +0200
committerLars Hoogestraat <lars@hoogi.eu>2020-06-20 17:52:42 +0200
commit633722220ba451d265b69b329ad477b7d0c7e45b (patch)
treecf3be648bff2b9a7b9fc6750ce7707459757a0ed /ffmpeg_nistkasten.sh
parent2a8ee52c02a05459363f1f3812b8b454f2463a56 (diff)
parentcdd80eb611e3838b6e6eb9e624ecdba4dfb9d873 (diff)
Merge branch 'master' of https://git.hoogi.eu/snafu/nistkasten
Diffstat (limited to 'ffmpeg_nistkasten.sh')
-rwxr-xr-xffmpeg_nistkasten.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/ffmpeg_nistkasten.sh b/ffmpeg_nistkasten.sh
new file mode 100755
index 0000000..6103062
--- /dev/null
+++ b/ffmpeg_nistkasten.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+OMX_PARAMS="-s 1280x720 -preset fast -b:v 1024k"
+
+/usr/bin/ffmpeg \
+ -y \
+ -f v4l2 \
+ -video_size 1280x720 \
+ -framerate 25 \
+ -i /dev/video0 \
+ -live 1 \
+ -vcodec h264_omx ${OMX_PARAMS} \
+ -keyint_min 150 \
+ -g 150 \
+ -tune zerolatency -tune fastdecode \
+ -dash 1 \
+ -min_seg_duration 4000 \
+ -use_template 1 \
+ -use_timeline 1 \
+ -remove_at_exit 1 \
+ -window_size 20 \
+ -live 1 \
+ /var/www/nistkasten/video/nistkasten_live.mpd