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

📖 Add chapters to merged video #42

Closed
tgotwig opened this issue Nov 28, 2023 · 0 comments
Closed

📖 Add chapters to merged video #42

tgotwig opened this issue Nov 28, 2023 · 0 comments
Assignees
Milestone

Comments

@tgotwig
Copy link
Owner

tgotwig commented Nov 28, 2023

Create the first merged video in the tmp directory and the final one with the chapters in it, in the same one as the input videos.

Create a file like this in the tmp directory which defines the chapters:

;FFMETADATA1

[CHAPTER]
TIMEBASE=1/1000
START=0
END=430000
title=Titel 1

[CHAPTER]
TIMEBASE=1/1000
START=430000
END=605000
title=Titel 2

...

The title values should be the file names without the extensions.

Then they should be merged by something like this:

ffmpeg -i input_video.webm -i chapters.txt -map_metadata 1 -codec copy out.webm

With chapters in the video it would look like this (with IINA player on MacOS):

image
@tgotwig tgotwig added this to the 0.3.2 milestone Nov 28, 2023
@tgotwig tgotwig self-assigned this Jan 7, 2024
tgotwig added a commit that referenced this issue Jan 14, 2024
tgotwig added a commit that referenced this issue Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant