{"id":627,"date":"2025-11-04T14:48:00","date_gmt":"2025-11-04T14:48:00","guid":{"rendered":"https:\/\/krogshave.dk\/main\/?p=627"},"modified":"2025-11-04T14:57:21","modified_gmt":"2025-11-04T14:57:21","slug":"ffmpeg-chapters-in-mp4","status":"publish","type":"post","link":"https:\/\/krogshave.dk\/main\/ffmpeg-chapters-in-mp4\/","title":{"rendered":"ffmpeg chapters in mp4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It is possible to create chapters in an mp4 file as described <a href=\"https:\/\/medium.com\/@dathanbennett\/adding-chapters-to-an-mp4-file-using-ffmpeg-5e43df269687\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you create video in Camtasia 9, you can generate a HTML viewer of your file&#8230; but sections in generated in Camtasia are NOT stored into the mp4 file as chapters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following python script can help generate that (it require ffmpeg): <\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-21b19d65-b0bc-44d2-b650-7f997f04241e\" href=\"http:\/\/krogshave.dk\/main\/wp-content\/uploads\/2025\/11\/parseXML.zip\">parseXML<\/a><a href=\"http:\/\/krogshave.dk\/main\/wp-content\/uploads\/2025\/11\/parseXML.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-21b19d65-b0bc-44d2-b650-7f997f04241e\">Download<\/a><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>python parseXML.py &lt;folderWithCaptasiaOutput> &lt;TotalLengthOfVideo><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Read more details in the script.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/krogshave.dk\/main\/wp-content\/uploads\/2025\/11\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"669\" height=\"433\" src=\"https:\/\/krogshave.dk\/main\/wp-content\/uploads\/2025\/11\/image.png\" alt=\"\" class=\"wp-image-628\" srcset=\"https:\/\/krogshave.dk\/main\/wp-content\/uploads\/2025\/11\/image.png 669w, https:\/\/krogshave.dk\/main\/wp-content\/uploads\/2025\/11\/image-300x194.png 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/a><figcaption class=\"wp-element-caption\">Chapters in the produced mp4 file<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to create chapters in an mp4 file as described here. If you create video in Camtasia 9, you can generate a HTML viewer of your file&#8230; but sections in generated in Camtasia are NOT stored into the mp4 file as chapters. The following python script can help generate that (it require ffmpeg): &hellip; <a href=\"https:\/\/krogshave.dk\/main\/ffmpeg-chapters-in-mp4\/\" class=\"more-link\">L\u00e6s videre <span class=\"screen-reader-text\">ffmpeg chapters in mp4<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-627","post","type-post","status-publish","format-standard","hentry","category-film","category-it-software"],"_links":{"self":[{"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/posts\/627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/comments?post=627"}],"version-history":[{"count":4,"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/posts\/627\/revisions"}],"predecessor-version":[{"id":635,"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/posts\/627\/revisions\/635"}],"wp:attachment":[{"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/media?parent=627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/categories?post=627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/krogshave.dk\/main\/wp-json\/wp\/v2\/tags?post=627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}