[libav-bugs] [Bug 458] New: Application provided invalid, non monotonically increasing dts to muxer in stream

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Sat Feb 23 21:18:27 CET 2013


https://bugzilla.libav.org/show_bug.cgi?id=458

           Summary: Application provided invalid, non monotonically
                    increasing dts to muxer in stream
           Product: Libav
           Version: git HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: libavcodec
        AssignedTo: bugzilla at libav.org
        ReportedBy: marko.koivusalo at gmail.com


command (python list, sorry about that):

['avconv', '-i', 'infile.mkv', '-acodec', 'copy', '-vcodec', 'libx264',
'-scodec', 'copy',
'-crf', '14', '-tune', 'animation', '-preset', 'fast', '-profile', 'high',
'outfile.mkv']

result:

avconv version v9-566-gb5f536d, Copyright (c) 2000-2013 the Libav developers
  built on Feb 23 2013 21:03:50 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: 
  libavutil     52.  7. 0 / 52.  7. 0
  libavcodec    54. 41. 1 / 54. 41. 1
  libavformat   54. 21. 2 / 54. 21. 2
  libavdevice   53.  2. 0 / 53.  2. 0
  libavfilter    3.  3. 0 /  3.  3. 0
  libavresample  1.  1. 0 /  1.  1. 0
  libswscale     2.  1. 1 /  2.  1. 1
Splitting the commandline.
Reading option '-i' ... matched as input file with argument
'/storage/infile.mkv'.
Reading option '-c' ... matched as option 'c' (codec name) with argument
'copy'.
Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging
level) with argument 'debug'.
Reading option 'out.mkv' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set libav* logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file /storage/infile.mkv.
Successfully parsed a group of options.
Opening an input file: /storage/infile.mkv.
[matroska,webm @ 0x1d668e0] Probed with size=2048 and score=100
[matroska,webm @ 0x1d668e0] Unknown entry 0x6E67
    Last message repeated 1 times
st:0 removing common factor 1000000 from timebase
st:1 removing common factor 1000000 from timebase
st:2 removing common factor 1000000 from timebase
[h264 @ 0x1da1740] no picture
    Last message repeated 1 times
[matroska,webm @ 0x1d668e0] All info found
Input #0, matroska,webm, from '/storage/infile.mkv':
  Duration: 00:20:55.04, start: 0.000000, bitrate: 2773 kb/s
    Chapter #0.0: start 0.000000, end 96.950000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 0.000000, end 93.052000
    Metadata:
      title           : OP
    Chapter #0.2: start 96.950000, end 1239.970000
    Metadata:
      title           : Episode
    Chapter #0.3: start 1239.970000, end 1255.370000
    Metadata:
      title           : Preview
    Stream #0.0(jpn), 3, 1/1000: Video: h264 (High 10), yuv420p10le, 1280x720,
1001/48000, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Stream #0.1(jpn), 16, 1/1000: Audio: aac, 48000 Hz, stereo, fltp (default)
    Stream #0.2(eng), 0, 1/1000: Subtitle: ass (default)
    Stream #0.3, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : LEHN096.TTF
      mimetype        : application/x-truetype-font
    Stream #0.4, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : vrindab.ttf
      mimetype        : application/x-truetype-font
    Stream #0.5, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : A-OTF-FutoMinA101Pro-Bold.otf
      mimetype        : application/x-truetype-font
    Stream #0.6, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : FONTIN_SANS.OTF
      mimetype        : application/x-truetype-font
    Stream #0.7, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Fontin_Sans_BI_45b.otf
      mimetype        : application/x-truetype-font
    Stream #0.8, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Fontin_Sans_I_45b.otf
      mimetype        : application/x-truetype-font
    Stream #0.9, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Fontin_Sans_R_45b.otf
      mimetype        : application/x-truetype-font
    Stream #0.10, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Fontin_Sans_SC_45b.otf
      mimetype        : application/x-truetype-font
    Stream #0.11, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Old_Newspaper_Font.ttf
      mimetype        : application/x-truetype-font
    Stream #0.12, 0, 1/90000: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : Unisketch-light_limited.ttf
      mimetype        : application/x-truetype-font
Successfully openened the file.
Parsing a group of options: output file out.mkv.
Applying option c (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: out.mkv.
Successfully openened the file.
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf54.21.2
    Chapter #0.0: start 0.000000, end 96.950000
    Metadata:
      title           : Prologue
    Chapter #0.1: start 0.000000, end 93.052000
    Metadata:
      title           : OP
    Chapter #0.2: start 96.950000, end 1239.970000
    Metadata:
      title           : Episode
    Chapter #0.3: start 1239.970000, end 1255.370000
    Metadata:
      title           : Preview
    Stream #0.0(jpn), 0, 1/1000: Video: H264 / 0x34363248, yuv420p10le,
1280x720 [PAR 1:1 DAR 16:9], 1/1000, q=2-31, 1k tbn, 1k tbc (default)
    Stream #0.1(jpn), 0, 1/1000: Audio: aac, 48000 Hz, stereo (default)
    Stream #0.2(eng), 0, 1/1000: Subtitle: ass (default)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
Press ctrl-c to stop encoding
[matroska @ 0x1e83d40] Writing block at offset 4088, size 89009, pts 0, dts
-83, duration 41, flags 128
[matroska @ 0x1e83d40] Writing block at offset 93105, size 38027, pts 209, dts
-63, duration 41, flags 0
[matroska @ 0x1e83d40] Writing block at offset 131140, size 4153, pts 125, dts
0, duration 41, flags 0
[matroska @ 0x1e83d40] Writing block at offset 135300, size 10, pts 9, dts 9,
duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 135316, size 10, pts 30, dts 30,
duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 135332, size 4105, pts 42, dts
42, duration 41, flags 0
[matroska @ 0x1e83d40] Writing block at offset 139444, size 13, pts 51, dts 51,
duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 139463, size 13, pts 72, dts 72,
duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 139482, size 3287, pts 83, dts
83, duration 41, flags 0
[matroska @ 0x1e83d40] Writing block at offset 142776, size 13, pts 93, dts 93,
duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 142795, size 13, pts 114, dts
114, duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 142814, size 3580, pts 167, dts
125, duration 41, flags 0
[matroska @ 0x1e83d40] Writing block at offset 146401, size 13, pts 135, dts
135, duration 21, flags 128
.
.
-- cut bunch of these --
.
.
[matroska @ 0x1e83d40] Writing block at offset 24919906, size 81, pts 96798,
dts 96798, duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 24919993, size 6402, pts 96805,
dts 96805, duration 41, flags 0
[matroska @ 0x1e83d40] Writing block at offset 24926402, size 86, pts 96819,
dts 96819, duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 24926494, size 81, pts 96840,
dts 96840, duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 24926581, size 5485, pts 96888,
dts 96847, duration 41, flags 0
[matroska @ 0x1e83d40] Writing block at offset 24932073, size 92, pts 96861,
dts 96861, duration 21, flags 128
[matroska @ 0x1e83d40] Starting new cluster at offset 24932171 bytes, pts 96972
[matroska @ 0x1e83d40] Writing block at offset 24932188, size 177, pts 96882,
dts 96882, duration 21, flags 128
[matroska @ 0x1e83d40] Writing block at offset 24932372, size 91970, pts 96972,
dts 96888, duration 41, flags 128
[matroska @ 0x1e83d40] Application provided invalid, non monotonically
increasing dts to muxer in stream 1: 97138 >= 97107
av_interleaved_write_frame(): Invalid argument

This file works fine with ffmpeg, it seem that there are some extra checks in 
"static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)"
for this. 
It will simply log "st:0 PTS: 1240113 DTS: 1240113 < 1240145 invalid,
clipping".

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list