This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define colors | |
RED="\033[0;31m" | |
GREEN="\033[0;32m" | |
YELLOW="\033[0;33m" | |
BLUE="\033[0;34m" | |
MAGENTA="\033[0;35m" | |
CYAN="\033[0;36m" | |
WHITE="\033[0;37m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=FPV Processing Daemon | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/dvr-processing.sh | |
WorkingDirectory=/root | |
StandardOutput=/var/log/video_processing/output.log | |
StandardError=/var/log/video_processing/error.log | |
Restart=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Directory containing the video files | |
VIDEO_DIR="/media/drive/Футажи/DJI FPV DVRS/DCIM/100MEDIA" | |
LOG_FILE="/var/log/video_processing/log.log" | |
PROGRESS_FILE="/var/log/video_processing/process" | |
PROCESSED_DIR="/media/drive/Футажи/DJI FPV DVRS/DCIM/100MEDIA/with_OSD" | |
# Ensure the processed directory exists | |
mkdir -p "$PROCESSED_DIR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Exit on error | |
set -e | |
if grep -q Raspberry /proc/cpuinfo; then | |
echo "Running on a Raspberry Pi" | |
else | |
echo "Not running on a Raspberry Pi. Use at your own risk!" | |
fi |