- Notifications
You must be signed in to change notification settings - Fork14
DinRigtigeFar/yt-interval
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Flask app to download YT videos in intervals or the whole video, or both at the same time.It is also possible to download a playlist (only for whole videos at the moment).
It uses multiprocessing for increased speed with the option for you to specify how many threads to use. Default is all threads.
The app accepts different formats, but only one link per line. The intervals has to specified on the same line as the link and has to be separated by a space.
Examples:
youtube.com/blablabla 2:00-11:49youtube.com/blablabla 1:28-endyoutube.com/blablabla start-4:02youtube.com/blablabla start-endyoutube.com/blablablaThe two last examples will download the whole video as no interval is specified.
You can supply as many videos as you want, just seperate them by newline.It will also donwload pictures if you supply a link with 'jpg' somewhere in it.
When the download has finished you can either press the "Download here" button or locate your files inyt-interval/content.
Pressing the "Back to the frontpage" button will empty the content folder as a means to cleanup after use.
The program requires ffmpeg with AV1 support.See how to compile it in this link.For ubuntu you can use thisscript.
Use a virtual environment:
git clone https://github.com/DinRigtigeFar/yt-interval.gitcd yt-intervalconda env create --file env.ymlconda activate yt_downpip install -e git+git://github.com/mohamed-challal/pafy.git@develop#egg=pafypython yt-interval.pyAn environment variable calledSECRET_KEY is required in order to get the flask app to run. You can put the key (a string) in your bash_profile or export one before launching the program.
Downloading the whole video is significantly faster than downloading intervals.
I hope you enjoy this program and feel free to leave a comment or request features.
About
Flask app to download YT videos in intervals. Eg. from start to 30 seconds: start-30
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
