-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Speed up iter_frames with resized problem #2538
Copy link
Copy link
Open
Labels
lib-FFmpegIssues pertaining to dependency FFmpeg.Issues pertaining to dependency FFmpeg.questionQuestions regarding functionality, usageQuestions regarding functionality, usagevideoRelated to VideoClip and related classes, or handling of video in general.Related to VideoClip and related classes, or handling of video in general.
Metadata
Metadata
Assignees
Labels
lib-FFmpegIssues pertaining to dependency FFmpeg.Issues pertaining to dependency FFmpeg.questionQuestions regarding functionality, usageQuestions regarding functionality, usagevideoRelated to VideoClip and related classes, or handling of video in general.Related to VideoClip and related classes, or handling of video in general.
I try to speed up iter_frames in my script, my idea is resize the video to smaller size before
iter_frames, but I found it is more slow, here is my code and the running time:The first method is using the original video size in the
iter_frames, the second one is resized to half in theiter_frames.