https://github.com/feuster/ffchapters
FFmpeg chapter generation helper
https://github.com/feuster/ffchapters
chapter-frontend chapters ffmpeg ffplay video
Last synced: 4 days ago
JSON representation
FFmpeg chapter generation helper
- Host: GitHub
- URL: https://github.com/feuster/ffchapters
- Owner: feuster
- Created: 2018-10-19T06:51:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-08T17:14:56.000Z (almost 4 years ago)
- Last Synced: 2025-03-05T08:51:41.899Z (over 1 year ago)
- Topics: chapter-frontend, chapters, ffmpeg, ffplay, video
- Language: Pascal
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FFchapters - FFmpeg based chapter creation
## About
Movies for e.g. created from TV recordings do not have any chapters. These chapters can be generated by using FFMpeg and FFchapters.
FFmpeg is capable of finding scene changes via video filter. The problem is that FFmpeg does not create a regular chapter file out of this information.
Therefore these scene changes can be extracted by FFchapters which will create a standard chapter file usable for e.g. with Matroska.
FFchapters is discontinued. Please refer to the new [FFchapters2 Project](https://github.com/feuster/FFchapters2).
## Workflow
The workflow is:
* generate with FFmpeg a raw log file which contains the the scene changes
* generate with FFchapters a regular chapter file out of this raw log file
## Example
### FFmpeg scene detection of a movie file using video filters: Scene, Black and Blackframe detection
FFmpeg -i "Video_File" -vf blackdetect=d=1.0:pic_th=0.90:pix_th=0.00,blackframe=98:32,"select='gt(scene,0.75)',showinfo" -an -f null - 2> "FFmpeg_Log_File"
### FFchapters chapter generation out of above created FFmpeg log file with around 5 minutes (300 seconds) duration between each chapter
FFchapters -i "FFmpeg_Log_File" -o "Chapter_Output_File" -s 300
## Result
The created "Chapter_Output_File" can now be used with video (muxer) tools for e.g. with MKVToolNix GUI as chapter input file.