ncoop57
commited on
Commit
·
43512f0
1
Parent(s):
56a66d8
Update app to only look at first minute of video to speed up video processing
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def find_frames(url, model, desc, top_k, text):
|
|
35 |
height = int(video_stream['height'])
|
36 |
out, _ = (
|
37 |
ffmpeg
|
38 |
-
.input(url, t=
|
39 |
.output('pipe:', format='rawvideo', pix_fmt='rgb24')
|
40 |
.run(capture_stdout=True)
|
41 |
)
|
|
|
35 |
height = int(video_stream['height'])
|
36 |
out, _ = (
|
37 |
ffmpeg
|
38 |
+
.input(url, t=60)
|
39 |
.output('pipe:', format='rawvideo', pix_fmt='rgb24')
|
40 |
.run(capture_stdout=True)
|
41 |
)
|