DEPRECATED
Please see https://github.com/hopskipnfall/dialog, which is a cross-platform desktop app that accomplishes the same thing (and more).
Lightweight tool to extract dialog audio from videos using subtitles for dialog timing reference.
Usage
- Install golang
- Install ffmpeg
$ go run extract_dialog.go ./path/to/video.mkv
This currently works only with .mkv
files. I have tested with SRT and ASS subtitles. It should work with most audio codecs but I have only tested AAC so far.
Running tests
$ go test ./...
TODO: Implement these features
- Support for extraction on all videos in a folder
- Identifying and stripping out opening/ending songs
- Add padding around subtitle timing in case the timing is not exact
- Add flags support