iamkroot / ilc-scraper

A scraper for Impartus Lecture Capture videos for BITS Hyderabad
68 stars 30 forks source link

Facing issue with ffmpeg extrating video #27

Open ksanthosh82 opened 4 years ago

ksanthosh82 commented 4 years ago

Hi, When I installed all dependencies and tried extracting the videos, I am facing below errors

<class 'TypeError'> 'NoneType' object is not subscriptable ....

Kind of tried skipping such none types but getting below error

Downloading using ffmpeg ffmpeg error: [hls @ 0x3876a80] Error when loading first segment

Can you please assist here?

iamkroot commented 4 years ago

Please fill the entire bug report, providing all the details. This error was faced by many others, look through the closed issues.

ksanthosh82 commented 4 years ago

Hi, Adding screenshots for more detils.

Context

Describe the bug Encountered with "TypeError" exception while trying to download the lectures.

Screenshots image

The program runs into an error when tries to execute the statmenet

Program Output: The log error is this. <class 'TypeError'> 'NoneType' object is not subscriptable <traceback object at 0x7f67d5f2ce80> Traceback (most recent call last): File "ilc_scrape.py", line 349, in main() File "ilc_scrape.py", line 339, in main pool.starmap(download_stream, task_args) File "/usr/lib/python3.8/multiprocessing/pool.py", line 372, in starmap return self._map_async(func, iterable, starmapstar, chunksize).get() File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get raise self._value File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/usr/lib/python3.8/multiprocessing/pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "/usr/nikitha/py_dev/ilc-scraper/downloader.py", line 181, in download_stream add_inputs(token, cmd, angle_playlists, angle) File "/usr/nikitha/py_dev/ilc-scraper/downloader.py", line 149, in add_inputs extract_enc_keys(angle_pls, token) File "/usr/nikitha/py_dev/ilc-scraper/downloader.py", line 121, in extract_enc_keys key_url = PAT.search(line)["key_url"] TypeError: 'NoneType' object is not subscriptable

iamkroot commented 4 years ago

Sadly I don't have access to the course on impartus, so I can't debug this myself. Read through this comment (and the entire issue too) and send the stored file here.