1. Maven依赖
1.1 懒人版
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv-platform</artifactId>
<version>1.5.5</version>
</dependency>
1.2 精确版
由于整个依赖较大(约900M),以下为实际需要的依赖(不同的操作系统需要根据自己的操作系统进行适配),以下xml配置了properties及dependencies两个节点。
bytecode-sys配置根据运行系统可以自行变更为,以下部分系统值:
| 系统 | 值 |
| windows64 | windows-x86_64 |
| windows32 | windows-x86 |
| arm64 | linux-arm64 |
| x86_64 | linux-x86_64 |
| mac | macosx-x86_64 |
<properties>
<bytecode-sys>linux-x86_64</bytecode-sys>
</properties>
<dependencies>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>ffmpeg</artifactId>
<version>4.3.2-1.5.5</version>
<exclusions>
<exclusion>
<groupId>*</groupId>

本文介绍了在Maven项目中管理FFmpeg库的两种版本依赖方式,包括懒加载和精确配置,并展示了如何使用自定义线程池处理FFmpegFrameGrabber的阻塞操作,以实现实时RTSP环境下的视频流测试。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



