Skip to content

Instantly share code, notes, and snippets.

View pisual's full-sized avatar
🏠
Working from home

aaa pisual

🏠
Working from home
View GitHub Profile
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
def UID = "276904" // B站用户UID
def ROOMID = "131985" // 直播间的房间编号,不是地址编号
def OUTPUTDIR = /D:\Users\Sun\Desktop\ffmpeg\bin/ // 录制文件输出目录
def FFMPEG = /D:\Users\Sun\Desktop\ffmpeg\bin\ffmpeg.exe/ // ffmpeg可执行程序位置
def DELAY = 30 // SECONDS // 监控线程的间隔,当检测到直播时开启一个ffmpeg进程进行录制
def scheduledExecutorService = Executors.newSingleThreadScheduledExecutor()