Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
I
ils-common-video
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
提交
议题看板
打开侧边栏
OpsTeam
ils-common-video
Commits
d45fb5d4
提交
d45fb5d4
authored
7月 06, 2021
作者:
zw.wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: [recorder] 修改录制命令
上级
a8dbe4f1
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
6 行删除
+7
-6
record_utils.py
isc_video_record/utils/record_utils.py
+2
-0
setup.py
setup.py
+1
-1
test_playback.py
tests/test_playback.py
+4
-5
没有找到文件。
isc_video_record/utils/record_utils.py
浏览文件 @
d45fb5d4
...
...
@@ -22,8 +22,10 @@ def record_thread(stream_url, out_file, thread_name='ffmpeg-log', protocol='rtmp
'ffmpeg'
,
'-y'
,
'-v'
,
'info'
,
'-rtbufsize'
,
'1m'
,
'-rw_timeout'
,
'20000000'
,
'-i'
,
stream_url
,
'-movflags'
,
'faststart+frag_keyframe'
,
# 使mp4支持渐进式下载
'-c'
,
'copy'
,
'-f'
,
'mp4'
,
out_file
...
...
setup.py
浏览文件 @
d45fb5d4
...
...
@@ -24,7 +24,7 @@ requires = [
setuptools
.
setup
(
name
=
'isc-video-record'
,
version
=
'1.0.0b1
2
'
,
version
=
'1.0.0b1
3
'
,
description
=
'ISC motion detection playback video stream recording service.'
,
long_description
=
long_description
,
long_description_content_type
=
'text/markdown'
,
...
...
tests/test_playback.py
浏览文件 @
d45fb5d4
...
...
@@ -23,17 +23,16 @@ client = HikVisionClient(config.get('KEY'), config.get('SECRET'),
def
main
():
start_time
=
datetime
(
2021
,
7
,
1
,
15
,
58
,
29
)
.
astimezone
(
tz
)
start_time
=
datetime
(
2021
,
7
,
5
,
14
,
33
,
56
)
.
astimezone
(
tz
)
# start_time = datetime(2021, 5, 28, 9, 10, 59).astimezone(tz)
end_time
=
datetime
(
2021
,
7
,
1
,
15
,
59
,
0
)
.
astimezone
(
tz
)
camera_index
=
'
5c8d0e1d572a4904a2c753ec24dfdf41
'
end_time
=
datetime
(
2021
,
7
,
5
,
14
,
34
,
15
)
.
astimezone
(
tz
)
camera_index
=
'
8f50e406cad6489fac443e034d29a66f
'
results
=
[]
try
:
res
=
client
.
get_cameras_playback_urls
(
camera_index
,
client
.
iso_format
(
start_time
),
client
.
iso_format
(
end_time
),
protocol
=
'rtsp'
client
.
iso_format
(
start_time
),
client
.
iso_format
(
end_time
)
)
results
.
extend
(
res
)
except
PlaybackUrlException
as
e
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论