Create chapter markers in mp4 file with QT Player?

I think I may have asked this question before but I can't remember the answer!


I have an .mp4 file to which I wish to add chapter markers.


a. I feel it can be done using QT Player? If so, how?


b. Can chapter markers be exported from FCP X?


I have exported the video in FCP X to "Include chapter markers" but can't access them in QT Player.

Posted on Oct 11, 2022 2:58 AM

Reply
16 replies

Oct 11, 2022 10:31 AM in response to Ian R. Brown

There is a way using ffmpeg to add chapter markers to an mp4 after the fact, but it's probably more work than just adding them in FCP and re-exporting. This would be useful if you only have the mp4 and don't have access to the library or the source footage in order to re-export.


I found a good explanation with a sample python script. Tested it and it works.

https://ikyle.me/blog/2020/add-mp4-chapters-ffmpeg


In a nutshell, watch your mp4 and jot the HH:MM:SS times and chapter names into a text file. Then use ffmpeg to extract the existing metadata from the mp4. Run the python script to add your new chapter info into this metadata file. Finally, run ffmpeg to copy this updated metadata file and the mp4 into a new mp4. The new mp4 is not re-encoded, just copied with new metadata.

Oct 13, 2022 4:00 AM in response to spherico

Can Compressor add chapters losslessly to mp4? I briefly tried Compressor 4.6.2 and could add chapters but only to a re-encoded movie.


With ffmpeg I could losslessly add chapters (thanks for the tip, terryb!). But some metadata from the source movie did not properly copy to the target movie. ("-movflags use_metadata_tags" preserves Keys:GPSCoordinates and other Keys metadata like Title, Description, Keywords and Author but QuickTime does not read them unless they are re-added with exiftool. Using "-map_metadata 0" preserves QuickTime:CreateDate. Compressor seems to use ItemList metadata tags while FCP also uses Keys and UserData. ...movie metadata is a mess and a moving target...)

Oct 13, 2022 12:56 AM in response to fox_m

I have a number of old documentaries or tutorials over an hour long which may contain 30 or more different "sections" that I need to access quickly.


Fast forwarding does not look elegant and being able to jump through chapters is the easiest way to get to the relevant part.


It's not something I do on a regular basis and of course I will create chapters whilst editing any future videos.


Luis' solution using XML files is perfect for my needs.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Create chapter markers in mp4 file with QT Player?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.