douyin-live icon indicating copy to clipboard operation
douyin-live copied to clipboard

添加直播录制能力

Open Sjj1024 opened this issue 1 year ago • 1 comments

将直播视频本地录制

Sjj1024 avatar Jan 22 '24 13:01 Sjj1024

timestamp = int(time.time())
now = time.strftime("%Y%m%d-%H%M%S", time.localtime(timestamp))
print(now)
reccmd = "ffmpeg -i '" + res_stream_flv + "' -c copy '"  + now + '-'+ nickname +".flv'"
reccmd = reccmd.replace("'", '"')
print(f"录制FLV命令: {reccmd}")
os.system('start ' + reccmd)

qq2225936589 avatar May 09 '24 23:05 qq2225936589