Skip to content

Commit 083f14d

Browse files
author
David Eigen
committed
rename function
1 parent 1c5a334 commit 083f14d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clarifai/client/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def stream_by_video_file(self,
12051205
# with the ts of the first frame (too fragile to do all of this adjustment in the client input stream)
12061206
# or by adjusting the timestamps in the output stream
12071207
from clarifai.runners.utils import video_utils
1208-
stream = video_utils.recontain_as_streamable(filepath)
1208+
stream = video_utils.convert_to_streamable(filepath)
12091209

12101210
# TODO accumulate reads to fill the chunk size
12111211
chunk_size = 1024 * 1024 # 1 MB

clarifai/runners/utils/video_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def stream_frames_from_bytes(bytes_iterator):
5959
yield from container.decode(video=0)
6060

6161

62-
def recontain_as_streamable(filepath):
62+
def convert_to_streamable(filepath):
6363
return recontain(filepath, "mpegts", {"muxpreload": "0", "muxdelay": "0"})
6464

6565

0 commit comments

Comments
 (0)