Python Forum

Full Version: 'videodigest' is not recognized as an internal or external command
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
https://github.com/agermanidis/videodigest
successfully installed, also added all path to environment variables, but i got this error:
C:\Python37\Scripts>videodigest
'videodigest' is not recognized as an internal or external command,
operable program or batch file.
kindly help me!
It's not written for Windows and it will only work Python 2.
scripts=['videodigest'], this will make videodigest in Scripts folder that work for Linux,
on Windows can try to rename in Scripts folder to videodigest.py and run from command line(most be Python 2).
But i think there will be other problems like codec used codec="libx264",
Can use Zeranoe build for Windows and link it,but now into difficult stuff.

The easiest is to use VirtualBox with a Linux distro and run it with Python 2.
yl@yl-VirtualBox:~$ videodigest -i /media/sf_I/xm/xm.mp4 -s /media/sf_I/xm/xm.srt -L English -o rip.mp4

Traceback (most recent call last):
  File "/home/yl/.local/bin/videodigest", line 108, in <module>
    language=args.language)
  File "/home/yl/.local/bin/videodigest", line 75, in find_summary_regions
    summary = summarize(srt_file, summarizer, n_sentences, language)
  File "/home/yl/.local/bin/videodigest", line 60, in summarize
    parser = PlaintextParser.from_string(srt_to_doc(srt_file), Tokenizer(language))
  File "/home/yl/.local/lib/python2.7/site-packages/sumy/nlp/tokenizers.py", line 67, in __init__
    self._sentence_tokenizer = self._get_sentence_tokenizer(tokenizer_language)
  File "/home/yl/.local/lib/python2.7/site-packages/sumy/nlp/tokenizers.py", line 82, in _get_sentence_tokenizer
    "NLTK tokenizers are missing. Download them by following command: "
LookupError: NLTK tokenizers are missing. Download them by following command: python -c "import nltk; nltk.download('punkt')"