added mount file

This commit is contained in:
cpu
2024-02-20 16:07:37 +01:00
parent 3692346632
commit 8901967f8f
2 changed files with 19 additions and 16 deletions

11
mnt-usb.mount Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=USB mount
[Mount]
What=/dev/sda1
Where=/mnt/usb
Type=vfat
Options=rw,uid=pi,gid=pi,fmask=0022,dmask=0022,defaults
[Install]
WantedBy=multi-user.target

View File

@@ -34,22 +34,14 @@ ExecStart=/bin/bash -c 'rpicam-vid --inline \
-thread_queue_size 1024 \ -thread_queue_size 1024 \
-i pipe:0 \ -i pipe:0 \
-c:v copy \ -c:v copy \
-f tee -map 0:0 -flags +global_header -flvflags no_duration_filesize \ -map 0:0 \
"[f=segment \ -f segment \
:segment_format=mp4 \ -segment_time ${SEGMENT_DURATION} \
:segment_time=${SEGMENT_DURATION} \ -strftime 1 \
:reset_timestamps=1 \ -reset_timestamps 1 \
:strftime=1 \ -segment_format mp4 \
:onfail=ignore \ ${DIR}/${FILENAME_PREFIX}${FILENAME_SEGMENT_PATTERN}.${FILENAME_EXT} \
]${DIR}/${FILENAME_PREFIX}${FILENAME_SEGMENT_PATTERN}.${FILENAME_EXT} \ '
| \
[f=fifo \
:fifo_format=flv \
:drop_pkts_on_overflow=1 \
:attempt_recovery=1 \
:recovery_wait_time=1 \
:use_wallclock_as_timestamps=1 \
]${PEERTUBE_LIVE}${LIVE_KEY}"'
ExecStop=-/usr/bin/env sh -c 'killall rpicam-vid 2>/dev/null || true' ExecStop=-/usr/bin/env sh -c 'killall rpicam-vid 2>/dev/null || true'