Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Flask app to download YT videos in intervals. Eg. from start to 30 seconds: start-30

NotificationsYou must be signed in to change notification settings

DinRigtigeFar/yt-interval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

landing_page

Description

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.

Input formats

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/blablabla

The 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.

Prerequisite

The program requires ffmpeg with AV1 support.See how to compile it in this link.For ubuntu you can use thisscript.

Installation

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.py

An 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp