ffmpeg transpose
时间: 2023-10-06 18:10:25 浏览: 52
The ffmpeg transpose filter is used to rotate a video by 90, 180, or 270 degrees. The syntax for using the transpose filter is as follows:
```
ffmpeg -i input.mp4 -vf "transpose=<n>" output.mp4
```
Here, `<n>` can be one of the following values:
- `0` or `clock`: Rotate the video by 90 degrees clockwise.
- `1` or `cclock`: Rotate the video by 90 degrees counterclockwise.
- `2` or `180`: Rotate the video by 180 degrees.
- `3` or `cclock_flip`: Rotate the video by 270 degrees counterclockwise and flip it horizontally.
- `transpose=2,transpose=2` or `clock_flip`: Rotate the video by 90 degrees clockwise and flip it horizontally.
For example, to rotate a video by 90 degrees clockwise, you would use the following command:
```
ffmpeg -i input.mp4 -vf "transpose=0" output.mp4
```
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)