yoooger
This commit is contained in:
parent
766a240a7e
commit
dc3fb77ded
@ -377,7 +377,6 @@ def startAIVideo2(video_path, output_url, m1, cls, confidence):
|
|||||||
ov_model = None
|
ov_model = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
global frame_queue, processed_frame_queue, stop_event
|
global frame_queue, processed_frame_queue, stop_event
|
||||||
stop_event = Event()
|
stop_event = Event()
|
||||||
|
|
||||||
@ -472,8 +471,7 @@ def startAIVideo2(video_path, output_url, m1, cls, confidence):
|
|||||||
'-vsync', '1',
|
'-vsync', '1',
|
||||||
rtmp
|
rtmp
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
print(f"启动FFmpeg推流到: {rtmp}")
|
print(f"启动FFmpeg推流到: {rtmp}")
|
||||||
pipe = subprocess.Popen(command, shell=False, stdin=subprocess.PIPE,
|
pipe = subprocess.Popen(command, shell=False, stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user