douyin-live
douyin-live copied to clipboard
添加直播录制能力
将直播视频本地录制
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)