This commit is contained in:
Lars Hoogestraat 2020-05-06 19:12:58 +02:00
commit d56e59847c
1 changed files with 24 additions and 0 deletions

24
ffmpeg.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
OMX_PARAMS="-s 1280x720 -preset fast -b:v 1024k"
#-listen 1 -i rtmp://nistkasten.hoogi.eu/nistkasten01 \
/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/manifest/nistkasten_live.mpd