1.1.3 • Published 5 years ago
fpm-plugin-ffmpeg v1.1.3
FPM-PLUGIN-FFMPEG
用于ffmpeg的插件
Install
npm i fpm-plugin-ffmpeg -S
Basic Info
- Run Action Hook Name:
INIT
defined the varsBEFORE_SERVER_START
extend the biz module
- ExtendModule Name:
ffmpeg
- Exception: Nope
getDependencies()
[]
- The Reference Of The
Bind()
Method An BizModule Object Contains The Functionsrun
/* user?=admin pass?=admin ip! ch?=1 brand?=dahua streamId! */
stop
/* streamId! */
info
reset
Useage
config.json
{
//...
"ffmpeg": {
"bin": "D:/Work/ffmpeg/bin/ffmpeg.exe",
"nginx": "192.168.100.196",
}
}
method: ffmpeg.run
args: { ip: '192.168.1.108', streamId: 'abc' }