Skip to content

Commit

Permalink
[ffmpeg] -qscale:v
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhang-gh committed Sep 2, 2024
1 parent 390e915 commit afa6a8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/software/ffmpeg.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ ffmpeg [-framerate 24] -i images/%4d.jpg [-frames:v <num_frames>] [-s 1920x1080]
### 将视频拆成图片

```shelldoc
ffmpeg -i input.mov [-vf fps=1] [-start_number 100] images/%6d.jpg
ffmpeg -i input.mov [-qscale:v 2] [-vf fps=1] [-start_number 100] images/%6d.jpg
```

注:`fps=1` 即每秒取一张图,如果是 `fps=1/2` 则相当于每两秒取一张图
- `-qscale:v`(或者缩写 `-q:v`)来控制 JPEG 的质量,范围 2–31([链接](https://stackoverflow.com/a/10234065/8682688)
- `fps=1` 即每秒取一张图,如果是 `fps=1/2` 则相当于每两秒取一张图

## 多个视频 side-by-side

Expand Down

0 comments on commit afa6a8d

Please sign in to comment.