Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo not working #7

Closed
bilel-bj opened this issue Dec 19, 2019 · 1 comment
Closed

Demo not working #7

bilel-bj opened this issue Dec 19, 2019 · 1 comment

Comments

@bilel-bj
Copy link

I would like to thank you first for the great scientific contribution made in the paper.
I got an error when trying to run the demo, This is the error message got:
python demo.py --vid_file https://www.youtube.com/watch?v=c4DAnQ6DtF8 --output_folder output/ --display Donwloading YouTube video "https://www.youtube.com/watch?v=c4DAnQ6DtF8" Traceback (most recent call last): File "demo.py", line 377, in <module> main(args) File "demo.py", line 58, in main video_file = download_youtube_clip(video_file, '/tmp') File "/home/bilel/1-demos/VIBE/lib/utils/demo_utils.py", line 88, in download_youtube_clip return YouTube(url).streams.first().download(output_path=download_folder) File "/home/bilel/Downloads/anaconda3-2/envs/vibe-env/lib/python3.7/site-packages/pytube/__main__.py", line 88, in __init__ self.prefetch_init() File "/home/bilel/Downloads/anaconda3-2/envs/vibe-env/lib/python3.7/site-packages/pytube/__main__.py", line 97, in prefetch_init self.init() File "/home/bilel/Downloads/anaconda3-2/envs/vibe-env/lib/python3.7/site-packages/pytube/__main__.py", line 143, in init mixins.apply_descrambler(self.player_config_args, fmt) File "/home/bilel/Downloads/anaconda3-2/envs/vibe-env/lib/python3.7/site-packages/pytube/mixins.py", line 96, in apply_descrambler for i in stream_data[key].split(',') KeyError: 'url_encoded_fmt_stream_map'

Do you know how to solve this issue?
Thanks a lot for your support.

@mkocabas
Copy link
Owner

Hi @bilel-bj, thanks for your interest.

It is a known issue with pytube, check here. You may try other YouTube videos like this one, or download the video manually and run on local video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants