This repository collects small scripts and outgrown aliases for the query and manipulation of video and audio time codes, durations and aspect ratios. It mostly wraps and thus depends on ffmpeg. Time is usually formatted as hh:mm:ss.ff
, in hours, minutes, seconds and optional centiseconds.
-
duration queries the play length of a file.
-
sum-time adds up timecodes.
-
stretch re-encodes to a multiple of the original speed.
The scripts can be used as they are here, or copied somewhere in your $PATH
for frequent use.
All of them need bash to function. The following table lists further runtime dependencies.
ffmpeg | grep | bc | sed | |
---|---|---|---|---|
duration | ✗ | ✗ | ||
sum-time | ✗ | |||
stretch | ✗ | ✗ |
Accompanying manual pages can be created from the respective markdown descriptions of the programs using ronn.
Arch Linux users can also install a package using the PKGBUILD found in this repository.