Skip to content
Merged
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
5 changes: 4 additions & 1 deletion examples/video_review_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
from PyQt6.QtCore import Qt, QUrl, QTimer, QThread, pyqtSignal, QMutex
from PyQt6.QtGui import QColor, QBrush, QFont

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

def path_name_from_camera_path(fname):
# Mp4Record/2024-08-12/RecM13_DST20240812_214255_214348_1F1E828_4DDA4D.mp4
return fname.replace('/', '_')
Expand Down Expand Up @@ -49,7 +52,7 @@ def decode_hex_to_flags(hex_value):
def parse_filename(file_name):
# Mp4Record_2024-08-12_RecM13_DST20240812_214255_214348_1F1E828_4DDA4D.mp4
# https://github.com/sven337/ReolinkLinux/wiki/Figuring-out-the-file-names#file-name-structure
pattern = r'.*?Mp4Record_(\d{4}-\d{2}-\d{2})_RecM(\d)\d_DST(\d{8})_(\d{6})_(\d{6})_(\w{4,8})_(\w{4,8})\.mp4'
pattern = r'.*?Mp4Record_(\d{4}-\d{2}-\d{2})_Rec[MS](\d)\d_DST(\d{8})_(\d{6})_(\d{6})_(\w{4,8})_(\w{4,8})\.mp4'
match = re.match(pattern, file_name)

if match:
Expand Down