New submission from Rodeo <[email protected]>:

The attached MKV has 3 chapters:

#1: 00:00:00.00 -> 00:05:30.20

#2: 00:05:30.20 -> 00:08:21.60

#3: 00:08:21.60 -> 00:13:21.12

The latest Libav set the last chapter's start time as its end time:

ffmpeg -i 3chapters\(330\,501\,801\).mkv 
ffmpeg version git-v0.7b2-57-ge25c671, Copyright (c) 2000-2011 the Libav 
developers
  built on May 17 2011 23:28:30 with gcc 4.2.1 (Apple Inc. build 5666) 
(dot 3)
  configuration: --extra-cflags=-m64 --extra-ldflags=-m64 --arch=x86_64
  libavutil    51.  1. 0 / 51.  1. 0
  libavcodec   53.  3. 0 / 53.  3. 0
  libavformat  53.  0. 3 / 53.  0. 3
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  4. 0 /  2.  4. 0
  libswscale    1.  1. 0 /  1.  1. 0
[matroska,webm @ 0x10100a400] Estimating duration from bitrate, this may 
be inaccurate
Input #0, matroska,webm, from '../3chapters(330,501,801).mkv':
  Duration: 00:13:21.12, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 330.200000
    Metadata:
      title           : Chapter 13
    Chapter #0.1: start 330.200000, end 501.600000
    Metadata:
      title           : Chapter 14
    Chapter #0.2: start 501.600000, end 501.600000
    Metadata:
      title           : Chapter 15
    Stream #0.0(eng): Video: h264 (Constrained Baseline), yuv420p, 
720x576 [PAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
At least one output file must be specified

Older versions set the chapter duration correctly:

ffmpeg -i 3chapters\(330\,501\,801\).mkv 
FFmpeg version git-0e635f3, Copyright (c) 2000-2011 the Libav developers
  built on May 18 2011 00:09:41 with gcc 4.2.1 (Apple Inc. build 5666) 
(dot 3)
  configuration: --extra-cflags=-m64 --extra-ldflags=-m64 --arch=x86_64
  libavutil    50. 39. 0 / 50. 39. 0
  libavcodec   52.117. 0 / 52.117. 0
  libavformat  52.104. 0 / 52.104. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 12. 0 /  0. 12. 0
[matroska,webm @ 0x10100b000] Estimating duration from bitrate, this may 
be inaccurate
Input #0, matroska,webm, from '../3chapters(330,501,801).mkv':
  Duration: 00:13:21.12, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 330.200000
    Metadata:
      title           : Chapter 13
    Chapter #0.1: start 330.200000, end 501.600000
    Metadata:
      title           : Chapter 14
    Chapter #0.2: start 501.600000, end 801.120000
    Metadata:
      title           : Chapter 15
    Stream #0.0(eng): Video: h264 (Constrained Baseline), yuv420p, 
720x576 [PAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
At least one output file must be specified

The issue was introduced in the following commit:

http://git.libav.org/?
p=libav.git;a=commit;h=ab11317c1f97db19eddebe1bc5d4cb5a53718c9f
File '3chapters(330,501,801).mkv' not attached - you can download it from 
https://roundup.libav.org/file1385.

----------
files: 3chapters(330,501,801).mkv
messages: 13954
priority: normal
status: new
substatus: new
title: lavf: MKV: last chapter duration is miscalculated
topic: avformat, regression
type: bug

______________________________________________
Libav issue tracker <[email protected]>
<https://roundup.libav.org/issue2688>
______________________________________________

Reply via email to