You've already forked my-video-workflow
去除CRF,避免码率设置失效
This commit is contained in:
24
test/create_workflow.py
Normal file
24
test/create_workflow.py
Normal file
@ -0,0 +1,24 @@
|
||||
import requests
|
||||
from time import sleep
|
||||
|
||||
|
||||
API_BASE = "https://bilirec.home.jerryyan.top"
|
||||
FILE = "24048885/20221125_201819.flv"
|
||||
|
||||
requests.post(API_BASE+"/api/bilirecorder/", json={
|
||||
"EventType": "SessionStarted"
|
||||
})
|
||||
sleep(1)
|
||||
response = requests.post(API_BASE+"/api/bilirecorder/", json={
|
||||
"EventType": "FileClosed",
|
||||
"EventData": {
|
||||
"RelativePath": FILE
|
||||
}
|
||||
})
|
||||
sleep(1)
|
||||
requests.post(API_BASE+"/api/bilirecorder/", json={
|
||||
"EventType": "SessionEnded",
|
||||
})
|
||||
|
||||
print(response)
|
||||
print(response.json())
|
Reference in New Issue
Block a user