[FFmpeg-user] Naming chapters in Matroska video

Ulf Zibis Ulf.Zibis at CoSoCo.de
Thu Feb 18 02:20:03 EET 2021


Am 17.02.21 um 11:27 schrieb Paul B Mahol:
> On Wed, Feb 17, 2021 at 9:36 AM Ulf Zibis <Ulf.Zibis at cosoco.de> wrote:
>
>> Am 17.02.21 um 01:30 schrieb Paul B Mahol:
>>> It works here. Note version of libs.
>> Good morning, here I am again.
>>
>> Aha, afaics i use the same lib versions, but libpostproc is missing. Is it
>> needed? From where I get it?
>> Additionally the configuration list is not shown.
>>
> Have you read carefully -map_metadata documentation?
>
> It is not just single number, but it can have additional arguments.
>
> The only way to reproduce issue could be to upload same but trimmed input
> too.

I have croped the file to decrease it's size and uploaded it to (please wait for completion in ~ 5 minutes):
www.jugkoeln.de/Videos/INPUT_croped.mkv
www.jugkoeln.de/Videos/INPUT_test.ffmeta

$ ~/Projects/ffmpeg/dev_2/ffmpeg -i INPUT_croped.mkv -i INPUT_test.ffmeta -map_metadata 1 -c copy OUTPUT_croped.mkv
ffmpeg version N-101141-g8331eb058d Copyright (c) 2000-2021 the FFmpeg developers
   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
   configuration:
   libavutil      56. 65.100 / 56. 65.100
   libavcodec     58.123.100 / 58.123.100
   libavformat    58. 67.100 / 58. 67.100
   libavdevice    58. 12.100 / 58. 12.100
   libavfilter     7.107.100 /  7.107.100
   libswscale      5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
Input #0, matroska,webm, from 'INPUT_croped.mkv':
   Metadata:
     SOURCE_TYPE     : dvd
     ENCODER         : Lavf58.67.100
   Duration: 01:31:56.12, start: -0.007000, bitrate: 110 kb/s
   Chapters:
     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: mpeg4 (Simple Profile), yuv420p(progressive), 16x16 [SAR 16:15 DAR 16:15], 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
     Metadata:
       ENCODER         : Lavc58.123.100 mpeg4
       DURATION        : 01:31:56.120000000
   Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
     Metadata:
       DURATION        : 01:31:56.121000000
Input #1, ffmetadata, from 'INPUT_test.ffmeta':
   Metadata:
     SOURCE_TYPE     : dvd
     encoder         : Lavf58.45.100
     title           : Experiment
   Duration: 01:31:56.02, start: 0.000000, bitrate: N/A
   Chapters:
     Chapter #1:0: start 0.000000, end 10.911556
     Chapter #1:1: start 10.911556, end 819.225778
       Metadata:
         title           : 1 - Intro
     Chapter #1:2: start 819.225778, end 1839.369956
       Metadata:
         title           : 2 - Restaurant
     Chapter #1:3: start 1839.369956, end 2689.490133
       Metadata:
         title           : 3 - At home
     Chapter #1:4: start 2689.490133, end 3289.574978
     Chapter #1:5: start 3289.574978, end 4584.758089
     Chapter #1:6: start 4584.758089, end 5516.019689
Output #0, matroska, to 'OUTPUT_croped.mkv':
   Metadata:
     SOURCE_TYPE     : dvd
     title           : Experiment
     encoder         : Lavf58.67.100
   Chapters:
     Chapter #0:0: start 0.007000, end 10.918556
     Chapter #0:1: start 10.918556, end 819.232778
     Chapter #0:2: start 819.232778, end 1839.376956
     Chapter #0:3: start 1839.376956, end 2689.497133
     Chapter #0:4: start 2689.497133, end 3289.581978
     Chapter #0:5: start 3289.581978, end 4584.765089
     Chapter #0:6: start 4584.765089, end 5516.026689
   Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p(progressive), 16x16 [SAR 16:15 DAR 16:15], q=2-31, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
     Metadata:
       ENCODER         : Lavc58.123.100 mpeg4
       DURATION        : 01:31:56.120000000
   Stream #0:1(eng): Audio: opus ([255][255][255][255] / 0xFFFFFFFF), 48000 Hz, stereo, fltp (default)
     Metadata:
       DURATION        : 01:31:56.121000000
Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=137903 fps=18573 q=-1.0 Lsize=   74660kB time=01:31:56.10 bitrate= 110.9kbits/s speed= 743x
video:1498kB audio:70033kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.375239%

-Ulf



More information about the ffmpeg-user mailing list