https://github.com/monibuca/plugin-snap
https://github.com/monibuca/plugin-snap
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/monibuca/plugin-snap
- Owner: Monibuca
- License: mit
- Created: 2022-04-08T12:31:11.000Z (about 4 years ago)
- Default Branch: v4
- Last Pushed: 2024-02-05T10:02:40.000Z (over 2 years ago)
- Last Synced: 2025-04-13T08:22:50.027Z (about 1 year ago)
- Language: Go
- Size: 22.5 KB
- Stars: 4
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 截图插件
可通过http请求获取到指定流的I帧截图(jpg格式)。
## 插件地址
https://github.com/Monibuca/plugin-snap
## 插件引入
```go
import (
_ "m7s.live/plugin/snap/v4"
)
```
## 默认配置
```yaml
snap:
ffmpeg: "ffmpeg"
```
如果ffmpeg无法全局访问,则可修改ffmpeg路径为本地的绝对路径
## API
### GET `/snap/[streamPath]`
获取一帧截图,返回最新的**I帧**的jpg图片。例如有流 `live/test`,可以通过`/snap/live/test` 获取到该流的最新截图