Added tools to add chapters to MKV and MP4.

This commit is contained in:
Markus Birth 2017-12-05 02:27:48 +01:00
parent 62ba56353b
commit eb5c5030a5
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
2 changed files with 14 additions and 0 deletions

10
mkvchapters.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# needs: mkvtoolnix (for mkvmerge)
# chapters.txt:
# CHAPTER1=00:01:02.00
# CHAPTER1NAME=chapter 1
# ...
# CHAPTER23=01:02:03.00
# CHAPTER23NAME=chapter 23
mkvmerge --chapters chapters.txt -o ${1}_chapters.mkv $1

4
mp4chapters.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# needs: MP4Box
MP4Box -chap chapters.txt -out ${1}_chapters.mp4 $1