[FFmpeg-user] Naming chapters in Matroska video
Ulf Zibis
Ulf.Zibis at CoSoCo.de
Tue Feb 16 23:51:22 EET 2021
Hi,
This is the meta data from my original video:
;FFMETADATA1
SOURCE_TYPE=dvd
encoder=Lavf58.45.100
[CHAPTER]
TIMEBASE=1/1000000000
START=0
END=10911555556
[CHAPTER]
TIMEBASE=1/1000000000
START=10911555556
END=819225777778
[CHAPTER]
TIMEBASE=1/1000000000
START=819225777778
END=1839369955556
[CHAPTER]
TIMEBASE=1/1000000000
START=1839369955556
END=2689490133333
[CHAPTER]
TIMEBASE=1/1000000000
START=2689490133333
END=3289574977778
[CHAPTER]
TIMEBASE=1/1000000000
START=3289574977778
END=4584758088889
[CHAPTER]
TIMEBASE=1/1000000000
START=4584758088889
END=5516019688889
I've edited the file to (added chapter names):
;FFMETADATA1
SOURCE_TYPE=dvd
encoder=Lavf58.45.100
[CHAPTER]
TIMEBASE=1/1000000000
START=0
END=10911555556
[CHAPTER]
TIMEBASE=1/1000000000
START=10911555556
END=819225777778
title=1 - Intro
[CHAPTER]
TIMEBASE=1/1000000000
START=819225777778
END=1839369955556
title=2 - Restaurant
[CHAPTER]
TIMEBASE=1/1000000000
START=1839369955556
END=2689490133333
title=3 - At home
[.....]
After importing it to the video, with
ffmpeg -i INPUT.mkv -i INPUT.meta -map_metadata 1 -c copy -movflags +faststart OUTPUT.mkv
, ... I still don't see the named chapters.
How to correctly add chapter names?
Here the ffprobe output:
$ ffprobe OUTPUT.mkv
ffprobe version 4.3.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, matroska,webm, from 'OUTPUT.mkv':
Metadata:
SOURCE_TYPE : dvd
ENCODER : Lavf58.45.100
Duration: 01:31:56.13, start: 0.000000, bitrate: 3011 kb/s
Chapter #0:0: start 0.000000, end 10.911556
Chapter #0:1: start 10.911556, end 819.225778
Chapter #0:2: start 819.225778, end 1839.369956
Chapter #0:3: start 1839.369956, end 2689.490133
Chapter #0:4: start 2689.490133, end 3289.574978
Chapter #0:5: start 3289.574978, end 4584.758089
Chapter #0:6: start 4584.758089, end 5516.019689
Stream #0:0: Video: h264 (High), yuv420p(progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Metadata:
ENCODER : Lavc58.18.100 libx264
DURATION : 01:31:56.130000000
Stream #0:1(deu): Audio: vorbis, 48000 Hz, stereo, fltp (default)
Metadata:
LANGUAGE-ISO639_2: deu
LANGUAGE-SIMPLE : Deutsch
LANGUAGE-DESCRIPTION: Deutsch
ENCODER : Lavc58.18.100 libvorbis
DURATION : 01:31:56.130000000
-Ulf
More information about the ffmpeg-user
mailing list