We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I also tweecked a 'quick & dirty' numbering mod.
def create_chapter(self, chapter, i) -> bool: start = chapter["start_time"] end = chapter["end_time"] diff = end - start args = [ "ffmpeg", "-i", self.file.media_filepath, "-ss", str(start), "-t", str(diff), "-acodec", "copy", "-vcodec", "copy", self.file.output_chapter_file(str(i) + "-" + chapter["title"]) ] ret = subprocess.run(args) return ret.returncode == 0
Called as follows. A bit ugly.
def split_into_chapters(self): if not self.file.chapters: self.log("No chapters available.") return False if not self.file.create_output_folder(): self.log("Failed to create output folder.") return False for i, chapter in enumerate(self.file.chapters): if not self.create_chapter(chapter, i): self.log("Failed to create chapter " + i + " file: " + chapter["title"]) return True
The text was updated successfully, but these errors were encountered:
I agree this would be a very useful feature. I will look into adding a command line option to do this.
Sorry, something went wrong.
Would be cool to have such a feature
No branches or pull requests
I also tweecked a 'quick & dirty' numbering mod.
Called as follows. A bit ugly.
The text was updated successfully, but these errors were encountered: