MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / decode_video_byte

Function decode_video_byte

data/video_utils.py:130–133  ·  view source on GitHub ↗
(video_bytes)

Source from the content-addressed store, hash-verified

128
129
130def decode_video_byte(video_bytes):
131 video_stream = io.BytesIO(video_bytes)
132 vr = decord.VideoReader(video_stream)
133 return vr
134
135
136def sample_mp4_frames(mp4_p, n_frames=None, fps=None, return_frame_indices=False, random_sample=False):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected