Export MP4/MOV chapter markers into YouTube description–friendly text.
- Default format:
timestamp - Title(perfect for YouTube descriptions) --title-firstto switch toTitle - timestamp- Output modes (mutually exclusive):
- default: write to
<input>.yt.txt --copy: copy to clipboard (no file)--stdout: print to stdout (no file)
- default: write to
- Cross-platform:
- Requires
ffprobe(FFmpeg) in PATH - Clipboard on Linux requires
xcliporxsel
- Requires
pipx install export-chaptersOr locally:
pipx install .export-chapters MyVideo.mp4 # writes MyVideo.yt.txt
export-chapters MyVideo.mp4 --copy # copies to clipboard
export-chapters MyVideo.mp4 --stdout # prints to terminal
export-chapters MyVideo.mp4 --title-first- FFmpeg (ffprobe in PATH)
- macOS:
brew install ffmpeg - Windows: install FFmpeg and add
binto PATH - Linux:
sudo apt-get install ffmpeg
- macOS:
- For
--copyon Linux:sudo apt-get install xclip(orxsel)
The formatter should produce:
- 83s ->
1:23 - 251s ->
4:11 - 485s ->
8:05