修改 type 为 codec;

增加查看编解码器类型命令.

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2019-12-19 13:47:29 +08:00
parent ba5b2d05e7
commit cfc5762e8f
1 changed files with 14 additions and 3 deletions

View File

@ -41,14 +41,25 @@ ffmpeg -y -i <input file> -c:v copy -c:a copy -f mp4 <output file>
若对音频或视频转码,可使用下列命令:
```sh
ffmpeg -y -i <input file> -c:v <video type> -c:a <audio type> <output file>
ffmpeg -y -i <input file> -c:v <video codec> -c:a <audio codec> <output file>
```
Audio Type:
编解码器类型可通过命令:
```sh
ffmpeg -encoders
ffmpeg -decoders
```
查看,常用的有
Audio codec:
* aac
* ac3
* flac
Video Type:
Video codec:
## 分离视频音频流