Author Topic: How to insert/ keep chapters  (Read 60 times)

guju

  • Newbie
  • *
  • Posts: 22
How to insert/ keep chapters
« on: January 06, 2019, 06:50:16 PM »
When playing (with MPC) some of the MP4/ AVC videos have marks to indicate semantic parts (vertical lines in the timeline).
Is there a way to keep/ insert those separators with avidemux?
« Last Edit: January 06, 2019, 07:16:45 PM by guju »

eumagga0x2a

  • Moderator
  • Hero Member
  • *****
  • Posts: 2422
Re: How to insert/ keep time marks
« Reply #1 on: January 06, 2019, 07:12:56 PM »
I'm sorry, but chapters are not supported.

guju

  • Newbie
  • *
  • Posts: 22
Re: How to insert/ keep chapters
« Reply #2 on: January 06, 2019, 07:18:04 PM »
Thank you! ... nevertheless ...  :)

guju

  • Newbie
  • *
  • Posts: 22
Re: How to insert/ keep chapters
« Reply #3 on: January 06, 2019, 09:51:08 PM »
Found out.
It's the metadata:

If one wants to avoid MB-sized GUIs its possible to insert chapters (metadata) with ffmpeg:
https://ffmpeg.org/ffmpeg-formats.html#Metadata-1

Transfer chapters works by:

ffmpeg -i INPUT -f ffmetadata FFMETADATAFILE

To get ALL the streams then:

ffmpeg -i INPUT -i FFMETADATAFILE -map_metadata 1 -vcodec copy -c:a copy -map 0 OUTPUT

However quite uncomfortable if one wants to create new chapters.
« Last Edit: January 07, 2019, 10:22:56 PM by guju »