(video_bytes)
| 128 | |
| 129 | |
| 130 | def decode_video_byte(video_bytes): |
| 131 | video_stream = io.BytesIO(video_bytes) |
| 132 | vr = decord.VideoReader(video_stream) |
| 133 | return vr |
| 134 | |
| 135 | |
| 136 | def sample_mp4_frames(mp4_p, n_frames=None, fps=None, return_frame_indices=False, random_sample=False): |
nothing calls this directly
no outgoing calls
no test coverage detected