Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加直播录制能力 #17

Open
Sjj1024 opened this issue Jan 22, 2024 · 1 comment
Open

添加直播录制能力 #17

Sjj1024 opened this issue Jan 22, 2024 · 1 comment

Comments

@Sjj1024
Copy link
Owner

Sjj1024 commented Jan 22, 2024

将直播视频本地录制

@qq2225936589
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants