keplerlab / katna

Tool for automating common video key-frame extraction, video compression and Image Auto-crop/Image-resize tasks
https://katna.readthedocs.io/
MIT License
313 stars 59 forks source link

Refactor image and video classes to support parallel and order flag #31

Open TankNee opened 11 months ago

TankNee commented 11 months ago

In order to allow katna to output pictures in chronological order, I added two flags, parallel and ordered, to katna's code and passed them in when creating the video. If set parallel to False and set ordered to True, the output keyframes will be ordered.

TankNee commented 11 months ago

related to #27 and #28

25Ruq commented 8 months ago

what if I wanted to name frames by their actual id in the sequence instead of [0, N-1]?

TankNee commented 8 months ago

what if I wanted to name frames by their actual id in the sequence instead of [0, N-1]?

what is actual id in the sequence? the index of frame in the video chunk frame sequence?

25Ruq commented 8 months ago

what if I wanted to name frames by their actual id in the sequence instead of [0, N-1]?

what is actual id in the sequence? the index of frame in the video chunk frame sequence?

Assuming a video with M frames numbered from 0 to M - 1, I want extracted frames to keep their number. for example, if M = 50, N = 5 (number of frames to extract). the extracted frames can be [0,17,20,33,49] instead of [0,1,2,3,4].