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

[Feature] Parsing multi-part videos into multiple files #12907

Open
YourFin opened this issue Apr 28, 2017 · 5 comments
Open

[Feature] Parsing multi-part videos into multiple files #12907

YourFin opened this issue Apr 28, 2017 · 5 comments

Comments

@YourFin
Copy link

@YourFin YourFin commented Apr 28, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.04.28. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.04.28

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

Many soundtrack, compilation, and long music videos have multiple parts that users may want to have as individual files, and it is usually a pain to split up these files manually.

Solving this presents four problems:
A) Parsing the description for timestamps
B) Parsing the list of timestamps into time ranges
C) Splitting the downloaded video into parts as per the time ranges
D) Naming these files

I have a pretty clear idea of how to parse for timestamps and turn them into time ranges, and am willing to do the heavy lifting for those parts on my own. The problem lies in the next two steps.

Just from briefly reading through the ffmpeg man page, it looks like it should be capable of this for any video format that can be thrown at it, but I don't have much experience with video and audio codecs/file formats. This would also mean adding it as a dependency for this feature, and if there's a way around that I would love to know.

As for naming the files, this would again require parsing the description in some way relative to time stamps, but I have no idea how to incorporate the current naming scheme. Chapter/track integration maybe? Would like help figuring out how to integrate this into the current structure of youtube-dl.

I'm willing to do all of the heavy lifting for this myself, but I am unfamiliar with the codebase, and would greatly appreciate help finding relevant places to start/guidance if the project would be interested in adding this feature.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 28, 2017

Seems that's quite similar to #9409? The code is almost there but there's a bug on Windows.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Apr 28, 2017

#9409 has been kept stuck for long time because of the problem in windows, as i don't use windows i couldn't report the bug to ffmpeg or test if there is workaround it.
so i'm thinking about just introducing the chapters field without the metadata part which will allow external use of the information, and may be in the future if there is a windows user that has an interest in reporting the bug or finding a work around than we can add the metadata part.

@YourFin
Copy link
Author

@YourFin YourFin commented Apr 28, 2017

#9409 looks like that only refers to adding a chapters field to the video metadata, and while this looks like the right way of going about this, I would like to add an option to split a single video into multiple files as per these chapters, should that be within the purview of this project.

I guess what I am really proposing then is smart chapter parsing from descriptions (should it not be provided explicitly) and file splitting by chapter.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Apr 28, 2017

#9409 looks like that only refers to adding a chapters field to the video metadata.

it extracts the chapters information and add the chapter marks to video files.

@YourFin
Copy link
Author

@YourFin YourFin commented Apr 28, 2017

@remitamine thanks for the clarification

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.