Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Feature] Parsing multi-part videos into multiple files #12907
Comments
|
Seems that's quite similar to #9409? The code is almost there but there's a bug on Windows. |
|
#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. |
|
#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. |
it extracts the chapters information and add the chapter marks to video files. |
|
@remitamine thanks for the clarification |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.04.28. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
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.