saving status before scene frame fix after rust change
This commit is contained in:
@@ -187,7 +187,10 @@ def detect_scenes_from_pipe(scene_threshold=0.10, flush_frames=2, fps=30):
|
||||
- stdout: MJPEG pipe (JPEG frames on scene change)
|
||||
- stderr: showinfo lines with pts_time timestamps
|
||||
"""
|
||||
stream = ffmpeg.input("pipe:0", f="h264", framerate=fps, hwaccel="cuda")
|
||||
stream = ffmpeg.input(
|
||||
"pipe:0", f="h264", framerate=fps, hwaccel="cuda",
|
||||
fflags="nobuffer", probesize=32, analyzeduration=0,
|
||||
)
|
||||
scene_expr = f"gt(scene,{scene_threshold})"
|
||||
if flush_frames > 0:
|
||||
mod_val = 1 + flush_frames
|
||||
|
||||
Reference in New Issue
Block a user