schaermu/node-fluent-ffmpeg — pull request #58 by tagedieb (2012-06-18 09:53:30+00:00)
Title: Added option to set screenshot filenames and timemarks to take percent values

This adds:

**- an option to set timemarks as percent values**
If timemark value does not end with `%` it will be treated as seconds like before

**- the ability to set filenames for the screenshots with format characters**
If no filename is given it defaults to the old name format.
You can set the screenshots filename dynamically using following format characters:
* `%s` - offset in seconds
* `%w` - screenshot width
* `%h` - screenshot height
* `%r` - screenshot resolution ( widthxheight )
* `%f` - input filename
* `%b` - input basename ( filename w/o extension )
* `%i` - number of screenshot in timemark array ( can be zeropadded by using it like `%000i` )

If multiple timemarks are given and no `%i` format character is found in filename `_%i` will be added to the end of the given filename.