Files
Obsidian-Main/-20.01. Programming/FFMPEG/av_opt_set.md

8 lines
349 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
`av_opt_set()` 可以設定很多東西,例如:
```cpp
av_opt_set(codecContext, "preset", "ultrafaset", 0); // 速度慢,高品質
av_opt_set(codecContext, "tune", "fastdecode", 0);
av_opt_set(avStream->codecContext->priv_data, "profile", "baseline", 0);
```
詳細請看[Encode/H.264 FFmpeg](https://trac.ffmpeg.org/wiki/Encode/H.264)。