Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use description info to automatically divide output #6480

Open
LukasThyWalls opened this issue Aug 6, 2015 · 2 comments
Open

Use description info to automatically divide output #6480

LukasThyWalls opened this issue Aug 6, 2015 · 2 comments
Labels

Comments

@LukasThyWalls
Copy link

@LukasThyWalls LukasThyWalls commented Aug 6, 2015

In some large videos, the uploader usually marks in the description the parts of the video, putting the minutes and seconds of the beginning of a part. Something like this:

TITLE VIDEO

blablablablablabla...
00:00 Intro
05:00 First Part
10:00 Second Part
etc. etc. etc.

It could be an option what read a description like that (if exists, if not exists it do nothing different) and divide the output file using every line with a time consecutively. In the example case: Making some output videos like "Title Video 1 Intro" (00:00-05:00), "Title Video 2 First Part" (05:00-10:00), "Title Video 3 Second Part" (10:00-End Video) of the whole video "Title Video". It could ignore the rest of the lines of the description without a time, use the rest of the line with the time as name of the file (normally it usually is in the beginning of the line, but it could be detected in any position with a proper RegExp, erasing the time and copying the rest of the line) and add a number of the consecutively files outputs order. Of course, need some postprocessing after download.

It was useful to have the parts of the video, like i was my case, i have to download the whole video and edit to cut the parts i need, and with this i can have the parts already prepared. It can be useful too for that EPs and LPs uploaded entire in one video, and it can be downloaded in separate tracks directly. And it can be useful not only in Youtube.

@dstftw dstftw added the request label Aug 7, 2015
@LukasThyWalls
Copy link
Author

@LukasThyWalls LukasThyWalls commented Nov 4, 2016

The node.js module project ytdl-splitter-core/ytdl-splitter
https://github.com/raltamirano/ytdl-splitter-core to do this behaviour.

Code lines are here https://github.com/raltamirano/ytdl-splitter-core/blob/master/index.js

@ajsnyde
Copy link

@ajsnyde ajsnyde commented May 25, 2017

I also have something like this:
https://github.com/ajsnyde/YTDownloader

Nothing too special. I suggest checking out the regex. It is actually pretty accurate considering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.