February 27, 2021, 09:12:57 AM

News:

--


How to insert/ keep chapters

Started by guju, January 06, 2019, 06:50:16 PM

Previous topic - Next topic

guju

January 06, 2019, 06:50:16 PM Last Edit: January 06, 2019, 07:16:45 PM by guju
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?

eumagga0x2a

I'm sorry, but chapters are not supported.

guju


guju

January 06, 2019, 09:51:08 PM #3 Last Edit: January 07, 2019, 10:22:56 PM by guju
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.