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: embed chapters #98

Open
Noitarud opened this issue Jul 15, 2024 · 2 comments
Open

Feature: embed chapters #98

Noitarud opened this issue Jul 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Noitarud
Copy link

Some media are long covering a wide variety of subjects, chapters can be handy if the player supports it.

Here is my personal how-to I use when I do it on my computer:
Chapters: Extract the ffmetadata file to see what is here already: …-f ffmetadata FFMETADATAFILE; to apply: …-i FFMETADAFILE -map_metadata 1 -codec copy… . To replace? (following the ;FFM… heading, the global strings are TITLE= ARTIST= ENCODER=; Following these it reads "[Chapter]" and "[Stream]" sections. Each Chapter section to have [timebase=1/1000] _Start=_ns, _End=ns Title=name, TB is milliseconds (not globalable), nanosec if missing, requires 4000000000 for 4s, suggest second to not overlap with first) else requires START=1984000000000, special characters (=,;,#,,CR) must be escaped with a backslash_ (;# are comments, symbols such as …’“”/¹²³¼½¾§ are omitted even with \ (fract tested only).); Title=Chapter #1; do not place spaces on either side of the =.). Length limit may be 128 Characters (128th character has bug) though encountered shorter situations, not sure about escapes. (perhaps you can mark "\subchapter", but better to have chapter abbreviated: subchapter)

@Noitarud Noitarud added the bug Something isn't working label Jul 15, 2024
@caydey
Copy link
Owner

caydey commented Jul 19, 2024

I'm a bit confused on what you are requesting, how would you imagine this being implemented, such as what settings options added

@Noitarud
Copy link
Author

I did think to myself* that if I carry on sending things I would be implying you make a GUI front-end for the entirety of ffmpeg (so, appologies).

In the instructions I left myself, I would

  1. extract the metadata on chapters using ffmpeg.
  2. And then I would use a text editor
  3. and then I would run ffmpeg again to combine the files.
    The app's simple "select file" interface seems to imply I cannot merge multiple files, so I assumed I cannot include metadata either.

If you wanted to create an interface (inside a "customise file" menu, visible after reading in the file) that would tabulate and overwrite the chapter info, that would be up to you, but in allowing chapter customisation you would encourage users to organise themselves better.

*after suggesting the perspective correction thing(it seems to have disappeared if I had posted it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants