Skip to content

Live streaming monitoring (and recording) CLI tool written in Go. Supported: NicoLive | 指定ユーザの自動録画機能を備えたライブ配信の録画ツール (ニコ生の新サーバに対応)

License

Notifications You must be signed in to change notification settings

shinosaki/namagent

Repository files navigation

namagent

namagent is a cross-platform live streaming alert CLI application written in Golang.

Support Sites

  • live.nicovideo.jp: ニコニコ生放送
    • 動画データの取得: WebSocketサーバから取得したHLSのURLとCookieデータを、ユーザが指定したコマンドに渡して起動します
    • コメントデータの取得: MessageServerから取得したChatデータをJSON形式で保存します

Download

Releases Page

Usage

Global Options

  • --config: Specify the path to the configuration file (by default, try to load ./config.yaml)

alert

namagent alert [options]

recorder

namagent recorder [options] [URL or ProgramId]

Configs

See more example of config.yaml

  • following.nico: Array of user IDs to be automatically recorded
  • alert.check_interval_sec: Interval in seconds for periodic monitoring (by default, 10 sec)
  • recorder.output_template: Template for the output file name (by default, {yyyymmdd}-{id}-{providerId}-{title})
    • Example Outputs:
      • 20250101-lv1234-1234-title.ts
      • 20250101-lv1234-1234-title.json
  • recorder.command_template: Command array executed during recording, with placeholders for cookies, URL, and output file (by default: ["ffmpeg", "-cookies", "{cookies}", "-i", "{url}", "-c", "copy", "{output}"])

LICENSE

MIT

Author

shinosaki https://shinosaki.com

About

Live streaming monitoring (and recording) CLI tool written in Go. Supported: NicoLive | 指定ユーザの自動録画機能を備えたライブ配信の録画ツール (ニコ生の新サーバに対応)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages