ffmpeg安装h265
时间: 2023-09-02 19:13:01 浏览: 277
支持H265的ffmpeg
要在Windows下使用MSYS2 MinGW 64-bit编译FFmpeg,使其支持H265编码和RTMP推流,你可以按照以下步骤进行配置和安装:
1. 首先,确保你已经安装了MSYS2 MinGW 64-bit和FFmpeg的依赖库。你可以通过运行以下命令来安装所需的库:
```
pacman -S base-devel yasm git
```
2. 然后,获取FFmpeg的源代码。你可以使用Git克隆FFmpeg的官方仓库:
```
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
```
3. 进入FFmpeg源代码目录:
```
cd ffmpeg
```
4. 配置FFmpeg的编译选项。你可以使用以下命令进行配置:
```
./configure --enable-gpl --enable-libx265 --enable-librtmp
```
5. 执行make命令进行编译:
```
make
```
6. 完成编译后,执行make install命令进行安装:
```
make install
```
这样,你就成功安装了支持H265编码和RTMP推流的FFmpeg。请注意,如果在配置或编译过程中遇到任何错误,请参考FFmpeg的文档和配置日志文件,以解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ffmpeg 编译 支持 h265 rtmp 推流](https://download.csdn.net/download/sniper_bing/86321265)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [FFmpeg支持H265编码](https://blog.csdn.net/qq_34607973/article/details/122974309)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [ffmpeg 安装(支持h.265)](https://blog.csdn.net/qq_25283239/article/details/103056456)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文