VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. I'm using Yamb 2.1.0.0 Beta 2 to extract the video and audio from mp4 files, but it doesn't appear to have a feature to extract the chapters. I've searched around for an alternative to Yamb that has this feature but I can't find anything.

    Is there a program that can extract chapters from mp4 files?

    Thanks for any suggestions you can offer.
    Last edited by RandolfS; 1st Oct 2013 at 19:40.
    Quote Quote  
  2. Member ozok's Avatar
    Join Date
    Oct 2011
    Location
    Turkey
    Search Comp PM
    Well, you can use mp4box which is used by Yamb. I don't remember the exact commands but you can extract chapters and write that information to a text file.
    Quote Quote  
  3. I tried that, but I couldn't work out how to extract the chapters. If I use the command

    mp4box.exe [filename.mp4] -info

    It only lists two tracks (the video and the audio) so I'm not sure how to extract the chapters.

    I could extract the video and audio to .h264 and .ac3 files with:

    mp4box.exe [filename.mp4] -raw 1
    mp4box.exe [filename.mp4] -raw 2

    Unsure what to do from there I tried assuming that the chapters were track 3, but the following don't work:

    mp4box.exe [filename.mp4] -raw 3
    mp4box.exe [filename.mp4] -ttxt 3

    It just says, "Cannot find track ID 3".

    The only information in the documentation about chapters is the -chap switch, but that's for adding chapters to an mp4 file.

    Maybe I'm doing it wrong, but I don't think mp4box supports chapter extraction.
    Quote Quote  
  4. Member ozok's Avatar
    Join Date
    Oct 2011
    Location
    Turkey
    Search Comp PM
    I've just a looked at TX264 source to see how I did it and it is:
    mp4box.exe "FilePath" -dump-chap
    AFAIK it only writes to console, so you may want to extract it to a text file adding ">chapters.txt" to the commands above.
    Quote Quote  
  5. Originally Posted by ozok View Post
    I've just a looked at TX264 source to see how I did it and it is:
    mp4box.exe "FilePath" -dump-chap
    AFAIK it only writes to console, so you may want to extract it to a text file adding ">chapters.txt" to the commands above.
    That worked. Thanks a lot for the help
    Quote Quote  
  6. Member ozok's Avatar
    Join Date
    Oct 2011
    Location
    Turkey
    Search Comp PM
    No problem. You may want to edit topic's title to show its solved.
    Quote Quote  



Similar Threads

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