Skip to content

Monibuca/plugin-snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

截图插件

可通过http请求获取到指定流的I帧截图(jpg格式)。

插件地址

https://github.com/Monibuca/plugin-snap

插件引入

import (
    _ "m7s.live/plugin/snap/v4"
)

默认配置

snap:
    ffmpeg: "ffmpeg"

如果ffmpeg无法全局访问,则可修改ffmpeg路径为本地的绝对路径

API

GET /snap/[streamPath]

获取一帧截图,返回最新的I帧的jpg图片。例如有流 live/test,可以通过/snap/live/test 获取到该流的最新截图