[FFmpeg-user] Strange problem with creating chapters

Cecil Westerhof Cecil at decebal.nl
Fri Sep 17 22:33:51 EEST 2021


Cecil Westerhof via ffmpeg-user <ffmpeg-user at ffmpeg.org> writes:

When I put before the first chapter:
    [CHAPTER]
    TIMEBASE=1/1
    START=1
    END=2
    title=

I get:
    Input #1, ffmetadata, from 'evaluaties.txt':
      Metadata:
        title           : Improvisations
      Duration: 00:16:35.00, start: 0.000000, bitrate: 0 kb/s
        Chapter #1:0: start 1.000000, end 2.000000
        Metadata:
          title           : 
    .
    .
    .
    Output #0, mp4, to '09-ImprovisatiesMetHoofdstukken.mp4':
      Metadata:
        title           : Improvisations
        encoder         : Lavf58.45.100
        Chapter #0:0: start 1.000000, end 2.000000
        Metadata:
          title           : 

and:
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '09-ImprovisatiesMetHoofdstukken.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        title           : Improvisations
        encoder         : Lavf58.45.100
      Duration: 00:16:35.83, start: 0.000000, bitrate: 2434 kb/s
        Chapter #0:0: start 0.000000, end 105.000000
        Metadata:
          title           : 

> I am playing with ffmpeg again. I got a few questions, so I will be
> posting them in the near future.
>
> But I have one very strange problem that is kind of urgent.
>
> I have a metafile to create chapters. It works OK except for the first
> chapter.
>
> My metafile starts with:
>     ;FFMETADATA1
>     title=Improvisations
>
>     [CHAPTER]
>     TIMEBASE=1/1
>     START=105
>     END=239
>     title=Just a test case
>
> When creating the file with the chapters I see:
>     Input #1, ffmetadata, from 'evaluaties.txt':
>       Metadata:
>         title           : Improvisations
>       Duration: 00:16:35.00, start: 0.000000, bitrate: 0 kb/s
>         Chapter #1:0: start 105.000000, end 239.000000
>                             ^^^^^^^^^^
>         Metadata:
>           title           : Just a test case
>     .
>     .
>     .
>     Output #0, mp4, to '09-ImprovisatiesMetHoofdstukken.mp4':
>       Metadata:
>         title           : Improvisations
>         encoder         : Lavf58.45.100
>         Chapter #0:0: start 105.000000, end 239.000000
>                             ^^^^^^^^^^
>         Metadata:
>           title           : Just a test case
>
> But with ffprobe I am seeing:
>     Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '09-ImprovisatiesMetHoofdstukken.mp4':
>       Metadata:
>         major_brand     : isom
>         minor_version   : 512
>         compatible_brands: isomiso2avc1mp41
>         title           : Improvisations
>         encoder         : Lavf58.45.100
>       Duration: 00:16:35.83, start: 0.000000, bitrate: 2434 kb/s
>         Chapter #0:0: start 0.000000, end 240.000000
>                             ^^^^^^^^
>         Metadata:
>           title           : Just a test case
>
> What could be happening here?
>
> I am using Debian 11 and ffmpeg version 4.3.2-0+deb11u2.
>
> I could probably solve it with a dummy chapter of a second at the
> beginning, but would prefer a better solution.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list