Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
I
ils-common-video
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
提交
议题看板
打开侧边栏
OpsTeam
ils-common-video
Commits
dea84c99
提交
dea84c99
authored
8月 05, 2021
作者:
zw.wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: [recorder] 修复ISC 录制视频发送给分析模块字段缺失问题
上级
ce7a5157
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
2 行增加
和
10 行删除
+2
-10
recorder.py
ils_common_video/isc_video/recorder.py
+1
-10
video_file.py
ils_common_video/utils/video_file.py
+1
-0
没有找到文件。
ils_common_video/isc_video/recorder.py
浏览文件 @
dea84c99
...
@@ -286,17 +286,8 @@ class ProcessMessage:
...
@@ -286,17 +286,8 @@ class ProcessMessage:
log
.
info
(
'视频文件
%
s的网络质量为
%
s, 评级为
%
s'
,
log
.
info
(
'视频文件
%
s的网络质量为
%
s, 评级为
%
s'
,
video_file
.
file_name
,
video_file
.
file_name
,
video_file
.
network_quality
,
video_file
.
network_quality_grade
)
video_file
.
network_quality
,
video_file
.
network_quality_grade
)
if
not
os
.
path
.
isfile
(
video_file
.
full_path
):
log
.
warning
(
'文件
%
s已经不存在!'
,
video_file
.
file_name
)
return
if
video_file
.
end_time
-
video_file
.
start_time
<
timedelta
(
seconds
=
2
):
log
.
warning
(
'视频文件
%
s播放时间较短认为有问题'
,
video_file
.
file_name
)
os
.
remove
(
video_file
.
full_path
)
return
video_data
=
{
video_data
=
{
'device_code'
:
device_code
,
'event_id'
:
event_id
,
'event_id'
:
event_id
,
'video_url'
:
video_url
,
# 视频播放地址
'video_url'
:
video_url
,
# 视频播放地址
'sn'
:
device_code
,
'sn'
:
device_code
,
...
...
ils_common_video/utils/video_file.py
浏览文件 @
dea84c99
...
@@ -35,6 +35,7 @@ class VideoFile:
...
@@ -35,6 +35,7 @@ class VideoFile:
# 文件名格式如: EVIZ_G25597998_20210803T110152_20210803T110334.mp4
# 文件名格式如: EVIZ_G25597998_20210803T110152_20210803T110334.mp4
self
.
prefix
,
self
.
sn
,
self
.
start_time_str
,
self
.
end_time_str
=
name_info
self
.
prefix
,
self
.
sn
,
self
.
start_time_str
,
self
.
end_time_str
=
name_info
self
.
start_time
=
dateutil
.
parser
.
parse
(
self
.
start_time_str
)
self
.
start_time
=
dateutil
.
parser
.
parse
(
self
.
start_time_str
)
self
.
date
,
self
.
time
=
self
.
start_time
.
strftime
(
'
%
Y-
%
m-
%
d'
),
self
.
start_time
.
strftime
(
'
%
H-
%
M-
%
S'
)
else
:
else
:
self
.
sn
=
self
.
date
=
self
.
time
=
None
self
.
sn
=
self
.
date
=
self
.
time
=
None
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论