This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
import java.util.concurrent.Executors | |
import java.util.concurrent.TimeUnit | |
def OPTIONS = [ | |
UID : 276904, // B站UID | |
ROOMID : 131985, // 直播间的房间编号,不是地址编号 | |
OUTPUTDIR : "/home/live", // 录制文件输出目录,/D:\ffmpeg\bin/ | |
FFMPEG : "/usr/bin/ffmpeg", // ffmpeg可执行程序位置,/D:\ffmpeg\bin\ffmpeg.exe/ | |
CHECK_INTERVAL: 60, // 直播检测线程的间隔,单位:秒 |