Skip to content

Panopto-Video-DL/Panopto-Video-DL-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PanoptoDownloader

Download video from Panopto!

Prerequisites

Install

Run the command:

pip install git+https://github.com/Panopto-Video-DL/Panopto-Video-DL-lib#egg=PanoptoDownloader

FFmpeg

Since version 1.4.0 FFmpeg is no longer needed, but it is highly recommended.
It is possible that some videos will not download properly without FFmpeg.

Usage

Run the command:

panoptodownloader URL [-o OUTPUT]

Use as Python Module

import PanoptoDownloader


URL = "https://****"
PATH = "./output.mp4"


def callback(progress: int):
    """
    :param progress: Downloading progress. From 0 to 100
    """
    print(f"{progress} / 100")


if __name__ == '__main__':
    try:
        PanoptoDownloader.download(
            URL,
            PATH,
            callback
        )
        print("Download completed")

    except Exception as e:
        print(e)