-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Hello!
I'm looking into the new video encoder functionalities. So for looks great but I'm not understanding one part of API (maybe it's too early?).
Assuming I have a long video and I do:
decoder -> model pipeline -> encode processed frames
how I can achieve the above with:
VideoEncoder(frames=frames, frame_rate=frame_rate),to_file('result.mp4')
Looks like the api requires to have all frames ready up front which is impossible for longer clips.
I would expect something like:
encoder = VideoEncoder(codec="hevc", frame_rate=30)
for frame in decoder:
frame = process(frame)
encoder.encode(frame)
encoder.close()NicolasHug
Metadata
Metadata
Assignees
Labels
No labels