MCPcopy Create free account
hub / github.com/MTLab/MorphMLP / pyav_decode

Function pyav_decode

slowfast/datasets/decoder.py:229–302  ·  view source on GitHub ↗

Convert the video from its original fps to the target_fps. If the video support selective decoding (contain decoding information in the video head), the perform temporal selective decoding and sample a clip from the video with the PyAV decoder. If the video does not support selectiv

(
    container,
    sampling_rate,
    num_frames,
    clip_idx,
    num_clips=10,
    target_fps=30,
    use_offset=False,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

decodeFunction · 0.85

Calls 3

get_start_end_idxFunction · 0.85
pyav_decode_streamFunction · 0.85
closeMethod · 0.80

Tested by

no test coverage detected