#2212: Application provided invalid, non monotonically increasing dts to muxer in stream 2: 1372390 >= 1372390 av_interleaved_write_frame(): Invalid argument -------------------------------------+------------------------------------- Reporter: julian | Owner: Type: defect | Status: open Priority: normal | Component: Version: git-master | undetermined Keywords: | Resolution: av_interleaved_write_frame ass | Blocked By: mov_text | Reproduced by developer: 1 Blocking: | Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by cehoyos):
* keywords: av_interleaved_write_frame => av_interleaved_write_frame ass mov_text * status: new => open * version: 1.1.1 => git-master * reproduced: 0 => 1 Comment: Partly unrelated: Such conversions need -fix_sub_duration The following command line works fine: {{{ $ ffmpeg -fix_sub_duration -i 1.mkv -acodec copy -vcodec copy -scodec mov_text -t 00:22:52 out.mp4 }}} The following two commands also produce a working mp4 file: {{{ $ ffmpeg -fix_sub_duration -i 1.mkv -codec copy -map 0 out.mkv $ ffmpeg -fix_sub_duration -i out.mkv -scodec mov_text -acodec copy -vcodec copy out.mp4 }}} But this fails: {{{ $ ffmpeg -fix_sub_duration -i 1.mkv -scodec mov_text -an -vn -t 00:22:53 out.mp4 ffmpeg version N-49468-ga084884 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 31 2013 00:34:25 with gcc 4.7 (SUSE Linux) configuration: --disable-indev=jack --disable-optimizations --disable- asm --disable-yasm libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 34.101 / 3. 34.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [matroska,webm @ 0x2ffbdc0] Unknown entry 0x437E Last message repeated 11 times [matroska,webm @ 0x2ffbdc0] Unknown entry 0x63C9 Last message repeated 1 times Input #0, matroska,webm, from '1.mkv': Metadata: creation_time : 2012-10-10 23:54:58 TITLE : No OP / ED TITLE-eng : No OP / ED Duration: 00:23:39.88, start: 0.000000, bitrate: 1828 kb/s Chapter #0.0: start 0.000000, end 36.912000 Metadata: title : Intro Chapter #0.1: start 36.952000, end 126.877000 Metadata: title : Opening Chapter #0.2: start 126.917000, end 797.839000 Metadata: title : Part A Chapter #0.3: start 797.879000, end 801.843000 Metadata: title : Eyecatch Chapter #0.4: start 801.883000, end 1324.782000 Metadata: title : Part B Chapter #0.5: start 1324.822000, end 1414.830000 Metadata: title : Ending Chapter #0.6: start 1414.870000, end 1419.835000 Metadata: title : Next episode preview Stream #0:0: Video: h264 (High 10), yuv420p10le, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: title : H.264 Stream #0:1(jpn): Audio: aac, 48000 Hz, stereo, fltp (default) Metadata: title : Japanese 2.0 AAC Stream #0:2(eng): Subtitle: ssa (default) Metadata: title : English subtitles Codec 0x18000 is not in the full list. Stream #0:3: Attachment: unknown_codec Metadata: filename : QuattrocentoSans-BoldItalic.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:4: Attachment: unknown_codec Metadata: filename : QuattrocentoSans-Bold.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:5: Attachment: unknown_codec Metadata: filename : Jerry_B4s_handwriting.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:6: Attachment: unknown_codec Metadata: filename : IwaOMinPro-Bd-Fate.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:7: Attachment: unknown_codec Metadata: filename : DK+Crayon+Crumble.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:8: Attachment: unknown_codec Metadata: filename : corbelz.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:9: Attachment: unknown_codec Metadata: filename : angelina.TTF mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:10: Attachment: unknown_codec Metadata: filename : akarinop.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:11: Attachment: unknown_codec Metadata: filename : tamayura-handwriting.ttf mimetype : application/x-truetype-font Codec 0x18000 is not in the full list. Stream #0:12: Attachment: unknown_codec Metadata: filename : Snake.ttf mimetype : application/x-truetype-font Output #0, mp4, to 'out.mp4': Metadata: TITLE-eng : No OP / ED TITLE : No OP / ED encoder : Lavf54.61.104 Chapter #0.0: start 0.000000, end 36.912000 Metadata: title : Intro Chapter #0.1: start 36.952000, end 126.877000 Metadata: title : Opening Chapter #0.2: start 126.917000, end 797.839000 Metadata: title : Part A Chapter #0.3: start 797.879000, end 801.843000 Metadata: title : Eyecatch Chapter #0.4: start 801.883000, end 1324.782000 Metadata: title : Part B Chapter #0.5: start 1324.822000, end 1414.830000 Metadata: title : Ending Chapter #0.6: start 1414.870000, end 1419.835000 Metadata: title : Next episode preview Stream #0:0(eng): Subtitle: mov_text ([8][0][0][0] / 0x0008) (default) Metadata: title : English subtitles Stream mapping: Stream #0:2 -> #0:0 (ass -> mov_text) Press [q] to stop, [?] for help [mp4 @ 0x313b820] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1372390 >= 1372390 av_interleaved_write_frame(): Invalid argument }}} -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2212#comment:4> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac