Spaces:
Runtime error
Runtime error
yiyixuxu
commited on
Commit
•
eefdeb6
1
Parent(s):
62cb8e9
fixed a bug
Browse files
app.py
CHANGED
@@ -45,6 +45,7 @@ def download_video(url,format_id):
|
|
45 |
save_location = meta['id'] + '.' + meta['ext']
|
46 |
except youtube_dl.DownloadError as error:
|
47 |
print(f'error with download_video function: {error}')
|
|
|
48 |
|
49 |
def process_video_parallel(video, skip_frames, dest_path, num_processes, process_number):
|
50 |
cap = cv2.VideoCapture(video)
|
|
|
45 |
save_location = meta['id'] + '.' + meta['ext']
|
46 |
except youtube_dl.DownloadError as error:
|
47 |
print(f'error with download_video function: {error}')
|
48 |
+
return(save_location)
|
49 |
|
50 |
def process_video_parallel(video, skip_frames, dest_path, num_processes, process_number):
|
51 |
cap = cv2.VideoCapture(video)
|