You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
grumbulon 0ceb979829 Rewrote sub extraction to use ffmpeg-go library 3 weeks ago
.gitignore Extract subs from mkv files and convert to mp4 with handbrake-cli 1 month ago
go.mod Rewrote sub extraction to use ffmpeg-go library 3 weeks ago
go.sum Rewrote sub extraction to use ffmpeg-go library 3 weeks ago
main.go Rewrote sub extraction to use ffmpeg-go library 3 weeks ago
readme.md added audio stream selection and changed function name 4 weeks ago

readme.md

This script exists so you can extract SRT files from MKVs and also convert the MKV to MP4 to allow https://git.froth.zone/sam/cytube-json-generator to be used with MKV files.

Requirements

This script requires the user have the following two external dependencies

ffmpeg

HandBrake-CLI

Building

You can build the script with Golang installed on your computer just run

go build -o util

Alternatively there will be a binary provided in the releases page

Usage

It is simple to run

util extract Ep1.mkv

util convert Ep1.mkv

This can also work with multiple files ex. util extract Ep1.mkv Ep2.mkv Ep3.mkv