diff options
author | wm4 <wm4@nowhere> | 2012-11-15 18:49:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-16 21:21:15 +0100 |
commit | 51503a05778290edc0bb77276b67d33ca0e10783 (patch) | |
tree | 4745d8d476e788fe0a36c1151dd28118cac0a911 /core/av_opts.h | |
parent | b4b86e9286ba175ba0da4d19e165660bed7002e4 (diff) | |
download | mpv-51503a05778290edc0bb77276b67d33ca0e10783.tar.bz2 mpv-51503a05778290edc0bb77276b67d33ca0e10783.tar.xz |
options: rename -ss and -endpos, allow relative times
Rename the -ss option to -start, and -endpos to -length. Add a -end
option. The -end option always specifies an absolute end time, as
opposed to -endpos/-length.
All these options (--start, --end, --length) now accept relative times.
Percent positions (e.g. "--start=30%") are interpreted as fractions of
the file duration. Negative times (e.g. "--start=-1:00) are interpreted
relative to the end of the file. Chapters (e.g. "--start=#3") yield the
chapter's time position.
The chapter support might be able to replace --chapter completely, but
for now I am not sure how well this works out with e.g. DVDs and BDs,
and a separate --chapter option is useful interface-wise.
Diffstat (limited to 'core/av_opts.h')
0 files changed, 0 insertions, 0 deletions