1.3.4 • Published 2 years ago

fast-preview-cli v1.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

fast-preview-cli

Install

npm install -g fast-preview-cli

Or

$ npm install fast-preview
var FastPreview = require("fast-preview").default;
var preview = new FastPreview("video.mp4");
preview.exec();

Usage

fpreview --help

Usage: cli [options] <files...>

Options:
  -c, --clip-count <number>       设置要截取的视频片段的数量 (default: 5)
  -t, --clip-time <number>        每个片段持续时间(秒) (default: 5)
  -s, --clip-strategy <strategy>  片段选择策略 (choices: "max-size", "min-size", "random", default: "max-size")
  -r, --clip-range <numbers...>   片段选择范围(视频时间的百分比) (default: [0.1,0.9])
  -f, --fps-rate <number>         图像帧率(-1: 保持原视频帧率) (default: 10)
  -o, --output <path>             动态预览图存放的目录, 默认输出到输入文件目录
  -m, --speed-multi <number>      片段播放速度的倍数 (default: 2)
  -w, --width <number>            视频缩放宽度, 默认-1(按高度等比缩放) (default: -1)
  -h, --height <number>           视频缩放高度, 默认-1(按宽度等比缩放) (default: -1)
  --help                          display help for command

Example

fpreview /path/to/video.mp4
1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.27

2 years ago

1.2.28

2 years ago

1.2.26

2 years ago

1.2.29

2 years ago

1.2.30

2 years ago

1.2.31

2 years ago

1.2.19

2 years ago

1.2.20

2 years ago

1.2.23

2 years ago

1.2.24

2 years ago

1.2.13

2 years ago

1.2.21

2 years ago

1.2.22

2 years ago

1.2.16

2 years ago

1.2.17

2 years ago

1.2.25

2 years ago

1.2.14

2 years ago

1.2.15

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

0.0.1

2 years ago