Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DVR recording #1180

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion general/package/vdec-openipc/files/S98vdec
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Start vdec decoder
#
. /etc/vdec.conf
if [[ ! -e /etc/rec ]]; then
touch /etc/rec
fi
. /etc/rec

if [ ${osd} = "simple" ]; then
osd_variant="--osd"
Expand All @@ -11,7 +15,9 @@ fi
case "$1" in
start)
echo "Starting vdec decoder service..."
vdec -p ${port} -d ${format} -c ${codec} -m ${mode} --mavlink-port ${mavlink_port} ${osd_variant} ${extra} > /dev/null 2>&1 &
vdec -p ${port} -d ${format} -c ${codec} -m ${mode} --mavlink-port ${mavlink_port} ${osd_variant} ${extra} -w /mnt/sda1/recorder/OpenIPC_DVR_${rec}.${codec} > /dev/null 2>&1 &
rec=$((rec+1))
echo "rec=$rec" > /etc/rec
sleep 3
if [ ${osd} = "custom" ]; then
osd > /dev/null 2>&1 &
Expand Down