VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Mar 2021
    Location
    Israel
    Search Comp PM
    I have a YouTube music concert with about 18 songs. The time stamp for when each song starts is given in the webpage but the video doesn't have chapter markers.
    I want to have 18 different files for each song in the end.
    Making chapters using MKVToolNix is a time consuming process so I am trying to find an easy way to make a chapter file that MKVToolNix can accept.
    Any easy solution would be much appreciated.
    Thanks.
    Quote Quote  
  2. Member
    Join Date
    Mar 2021
    Location
    Israel
    Search Comp PM
    Sorted

    Create a text file like this:

    CHAPTER01=00:00:00.000
    CHAPTER01NAME=Introduction
    CHAPTER02=00:02:30.000
    CHAPTER02NAME=First Scene
    CHAPTER03=00:05:15.500
    CHAPTER03NAME=Climax

    Fill in all the timestamps when a new chapter starts and then save it as a text file.
    Then open MKVToolNix, upload the mp4 or mkv file, then add the text file.

    Important

    Then click on Multiplexer > Output
    On the right pane, under chapters, click on Chapter file and add the chapters text file.
    If you don't do this, the multiplexing will not work.

    If you want to split the file by chapters at this stage then:
    On the left pane, under Splitting,
    Select Split Mode > Before chapters
    Chapter numbers: Type "all"
    Leave Maximum number of files: Unlimited.

    Then click on Start Multiplexing
    If everything went well then you should get several video files in the output.
    Edit the chapters names if you want to distinguish each song from the rest.
    Quote Quote  
  3. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Here's a batch file I knocked up to make myself a quick template.
    I've not used it for some time.

    chaps.cmd
    Code:
    @echo off
    if exist chapters.txt del chapters.txt
    set count=0
    set /p total=How many chapters?
    for /L %%a in (1,1,%total%) do call :process %%a
    echo chapters.txt | cmd
    exit
    
    :process
    set /a count=%count%+1
    if %count% lss 10 set zero=0
    echo CHAPTER%zero%%~1= >> chapters.txt
    echo CHAPTER%zero%%~1NAME= >> chapters.txt
    set zero=
    goto :eof
    Quote Quote  
  4. Member
    Join Date
    Mar 2021
    Location
    Israel
    Search Comp PM
    Originally Posted by pcspeak View Post
    Here's a batch file I knocked up to make myself a quick template.
    I've not used it for some time.

    chaps.cmd
    Code:
    @echo off
    if exist chapters.txt del chapters.txt
    set count=0
    set /p total=How many chapters?
    for /L %%a in (1,1,%total%) do call :process %%a
    echo chapters.txt | cmd
    exit
    
    :process
    set /a count=%count%+1
    if %count% lss 10 set zero=0
    echo CHAPTER%zero%%~1= >> chapters.txt
    echo CHAPTER%zero%%~1NAME= >> chapters.txt
    set zero=
    goto :eof

    Nice. Thanks.

    It would help to add the times format 00:00:00.000 to the CHAPTERS as it is a real pain filling out the times.
    I took the liberty to modify this line, hope that you wouldn't mind:
    echo CHAPTER%zero%%~1=00:00:00.000 >> chapters.txt

    Like in the example above and below:

    CHAPTER01=00:00:00.000
    CHAPTER01NAME=Introduction
    CHAPTER02=00:02:30.000
    CHAPTER02NAME=First Scene
    CHAPTER03=00:05:15.500
    CHAPTER03NAME=Climax
    Last edited by Subtitles; 17th Aug 2025 at 12:02.
    Quote Quote  
  5. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Originally Posted by Subtitles View Post
    I took the liberty to modify this line, hope that you wouldn't mind:
    echo CHAPTER%zero%%~1=00:00:00.000 >> chapters.txt
    All good.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!