Skip to content

Commit

Permalink
update * 注释打开Rtsp视频流的输出
Browse files Browse the repository at this point in the history
  • Loading branch information
jadehh committed Feb 28, 2023
1 parent a0be3b0 commit b56ea1f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Acllite v1.0.4
## Acllite v1.0.5

### 更新日志
* 注释打开Rtsp视频流的输出
* 注释Decode channel %d frame %d failed输出
* 注释掉部分输出
* update 新增AclliteImage转cv2 Image
Expand Down
22 changes: 11 additions & 11 deletions acllite/videocapture.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def _open(self):

if self._status == DECODE_STATUS_READY:
self._is_opened = True
acl_log.log_info("Ready to decode %s..." % (self._stream_name))
# acl_log.log_info("Ready to decode %s..." % (self._stream_name))
else:
acl_log.log_error("Open %s failed for wait ready timeout"
% (self._stream_name))
Expand Down Expand Up @@ -161,15 +161,15 @@ def _get_param(self):
self._width = video_context.width
self._height = video_context.height

acl_log.log_info(
"Get %s infomation: width %d, height %d, profile %d, "
"codec %s, entype %d" %
(self._stream_name,
self._width,
self._height,
profile,
codec_id_name,
self._entype))
# acl_log.log_info(
# "Get %s infomation: width %d, height %d, profile %d, "
# "codec %s, entype %d" %
# (self._stream_name,
# self._width,
# self._height,
# profile,
# codec_id_name,
# self._entype))

container.close()

Expand Down Expand Up @@ -223,7 +223,7 @@ def _pyav_vdec(self):
frame = 0
video = av.open(self._stream_name)
stream = [s for s in video.streams if s.type == 'video']
acl_log.log_info("Start decode %s frames" % (self._stream_name))
# acl_log.log_info("Start decode %s frames" % (self._stream_name))
for packet in video.demux([stream[0]]):
# Get frame data from packet and copy to dvpp
frame_data, data_size = self._prepare_frame_data(packet)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def find_packages(path,pack_list):
find_packages("acllite",pack_list)
setup(
name="acllite",
version="1.0.4",
version="1.0.5",
keywords=("pip", "acllite", ""),
description="acllite",
long_description=long_description,
Expand Down

0 comments on commit b56ea1f

Please sign in to comment.