Avidemux Forum

Avidemux => Windows => Topic started by: guju on January 06, 2019, 06:50:16 PM

Title: How to insert/ keep chapters
Post by: guju 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?
Title: Re: How to insert/ keep time marks
Post by: eumagga0x2a on January 06, 2019, 07:12:56 PM
I'm sorry, but chapters are not supported.
Title: Re: How to insert/ keep chapters
Post by: guju on January 06, 2019, 07:18:04 PM
Thank you! ... nevertheless ...  :)
Title: Re: How to insert/ keep chapters
Post by: guju 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.