Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Saving Images For An Index
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Kjella
Posted: Dec 7 2002, 04:18 AM


Unregistered









Hi!

I'd like to use VirtualDub to create a set of frames that I could use as basis for a movie index. However the "Save image sequence..." dialog only allow me to save every frame. I'd like the option of specifying how many frames it should save, either as a fraction (1 in 100 frames saved) or as a total. The total can also be replaced by a ratio, as 1 in every N/(n+1) frames, where N is the total and n the desired number of frames.

Implementing it should be fairly straightforward, but a bit over my skills none the less. If I want to save every k'th frame, the pseudocode would be something like:

%counter = 0;
if (%counter == k)
{
save frame
reset counter
} else {
discard frame
%counter++
}

Perhaps my math is one off here and there, and the beginning and end is a bit fishy. But such an automatic process is only a start, it'll produce some useless frames (for an index) that'll have to be removed anyway. It sure would be a lot easier than doing it manually though.

Kjella
 
  Top
phaeron
Posted: Dec 7 2002, 07:26 AM


Virtualdub Developer


Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02



All video processing options are available when saving to an image sequence -- so just set the frame rate decimation value to N in Video | Frame Rate and you will save every Nth frame.

 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
1 replies since Dec 7 2002, 04:18 AM Track this topic | Email this topic | Print this topic

<< Back to VirtualDub Development Forum