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

Split Chapters -- Chapter Title Too Long #4582

Closed
5 of 7 tasks
pp611 opened this issue Aug 6, 2022 · 3 comments
Closed
5 of 7 tasks

Split Chapters -- Chapter Title Too Long #4582

pp611 opened this issue Aug 6, 2022 · 3 comments
Labels
bug Bug that is not site-specific incomplete Further information is needed

Comments

@pp611
Copy link

pp611 commented Aug 6, 2022

Checklist

  • I'm asking a question and not reporting a bug or requesting a feature
  • I've looked through the README
  • I've verified that I'm running yt-dlp version 2022.07.18 (update instructions) or later (specify commit)
  • I've searched the bugtracker for similar questions including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood

I am using the --split-chapters option. It works well until today it ran into really long chapter titles (basically descriptions. one example: https://www.youtube.com/watch?v=xF1-4kiG03o).

I am looking either a way, with one or two examples, to specify a template for the split chapter output files. Or a way just to simply truncate the file names within certain length.

If it is not achievable now, can it be made an enhancement request?

Thanks

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

No response

@pp611 pp611 added the question Question label Aug 6, 2022
@pukkandan
Copy link
Member

pukkandan commented Aug 6, 2022

Please explain which part of this you did not understand

image

Then, show verbose log

@pukkandan pukkandan added bug Bug that is not site-specific incomplete Further information is needed and removed question Question labels Aug 6, 2022
@pp611
Copy link
Author

pp611 commented Aug 7, 2022

Here is the log: (which shows the file name too long)

[SplitChapters] Splitting video by chapters; 37 chapters found
[SplitChapters] Chapter 001; Destination: Beethoven - Symphony no.1 - Score and Analysis - 001 Introduction. The symphony jokingly begins with a series of endings (perfect cadences), followed by a gorgeous chorale passage that builds tension by avoiding the home key of C major, reserving its appearance for the start of the exposition. [xF1-4kiG03o].opus
ERROR: Postprocessing: file:Beethoven - Symphony no.1 - Score and Analysis - 001 Introduction. The symphony jokingly begins with a series of endings (perfect cadences), followed by a gorgeous chorale passage that builds tension by avoiding the home key of C major, reserving its appearance for the start of the exposition. [xF1-4kiG03o].opus: File name too long

What I did not figure out was that the "-o" option is for the output file naming of the download before split, could not figure out how to specify a template for the --split-chapters options

@pukkandan
Copy link
Member

See #1136 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is not site-specific incomplete Further information is needed
Projects
None yet
Development

No branches or pull requests

2 participants