From 3285b85af7cc85784ae5886390dea6c14a10e9e8 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Mon, 11 Dec 2023 17:47:45 +0800 Subject: [PATCH] update --- bash/record.sh | 2 +- create_db.py | 2 +- .../lot_data_repository.cpython-310.pyc | Bin 1814 -> 1801 bytes db/repository/lot_data_repository.py | 4 ++-- delete_lot_data_3_days.py | 17 +++++++++++++++++ 5 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 delete_lot_data_3_days.py diff --git a/bash/record.sh b/bash/record.sh index af86607..732f273 100755 --- a/bash/record.sh +++ b/bash/record.sh @@ -8,5 +8,5 @@ CURRENT_TIME=$(date +"%Y-%m-%d_%H-%M-%S") # 构建录像文件名 OUTPUT_FILE="${OUTPUT_DIR}/${CURRENT_TIME}.mp4" # 开始录制RTSP流 -/usr/bin/ffmpeg -rtsp_transport tcp -i "${RTSP_URL}" -c copy -c:a aac -s 1920x1080 -r 15 -crf 35 -b:v 1250k -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}" +/usr/bin/ffmpeg -rtsp_transport tcp -i "${RTSP_URL}" -c copy -c:a aac -s 1920x1080 -r 15 -crf 35 -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}" diff --git a/create_db.py b/create_db.py index 4007805..a7d086e 100755 --- a/create_db.py +++ b/create_db.py @@ -27,4 +27,4 @@ try: add(t2) except Exception as e: print(e) - pass \ No newline at end of file + pass diff --git a/db/repository/__pycache__/lot_data_repository.cpython-310.pyc b/db/repository/__pycache__/lot_data_repository.cpython-310.pyc index c84e2977b24a88980d3c7176c231f39b9dc4197d..7e1c1f0519b1f7fd0d80aa08012f8b460020e3e7 100644 GIT binary patch delta 157 zcmbQn*U875&&$ij00bXymZj=$MT*$b9sf00$xrQ+t#AaE@P|H-qG}(t$k%PI26R506VR99#6`K?j3uBS;