fpm-plugin-ffmpeg

1.1.3 • Public • Published

FPM-PLUGIN-FFMPEG

用于ffmpeg的插件

Install

npm i fpm-plugin-ffmpeg -S

Basic Info

  • Run Action Hook Name:
    • INIT defined the vars
    • BEFORE_SERVER_START extend the biz module
  • ExtendModule Name: ffmpeg
  • Exception: Nope
  • getDependencies()
    • [x] []
  • The Reference Of The Bind() Method An BizModule Object Contains The Functions
    • [ ] run
      /*
      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' }

Readme

Keywords

none

Package Sidebar

Install

npm i fpm-plugin-ffmpeg

Weekly Downloads

0

Version

1.1.3

License

ISC

Unpacked Size

7.13 kB

Total Files

6

Last publish

Collaborators

  • yfsoftcom