AliaksandrSiarohin / video-preprocessing

506 stars 135 forks source link

Unable to use load video script #25

Closed vatsal278 closed 3 years ago

vatsal278 commented 3 years ago

(xx) PS E:\video-preprocessing-master> python load_videos.py --metadata vox-metadata.csv --format .png --out_folder vox --workers 1 0it [00:00, ?it/s]multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "D:\anaconda\envs\xx\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, *kwds)) File "E:\video-preprocessing-master\load_videos.py", line 32, in run download(video_id.split('#')[0], args) File "E:\video-preprocessing-master\load_videos.py", line 25, in download video_path], stdout=DEVNULL, stderr=DEVNULL) File "D:\anaconda\envs\xx\lib\subprocess.py", line 247, in call with Popen(popenargs, **kwargs) as p: File "D:\anaconda\envs\xx\lib\subprocess.py", line 676, in init restore_signals, start_new_session) File "D:\anaconda\envs\xx\lib\subprocess.py", line 957, in _execute_child startupinfo) OSError: [WinError 193] %1 is not a valid Win32 application """

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "load_videos.py", line 100, in for chunks_data in tqdm(pool.imap_unordered(run, zip(video_ids, args_list))): File "D:\anaconda\envs\xx\lib\site-packages\tqdm_tqdm.py", line 1002, in iter for obj in iterable: File "D:\anaconda\envs\xx\lib\multiprocessing\pool.py", line 731, in next raise value OSError: [WinError 193] %1 is not a valid Win32 application

vatsal278 commented 3 years ago

PS E:\video-preprocessing-master> python load_videos.py --metadata vox-metadata.csv --format .png --out_folder vox --workers 1 --youtube-dl

Adding --youtube-dl add the library to path and helped me run the code.