Opened 7 years ago
Last modified 7 years ago
#6613 new defect
Stuck fixing non-monotonous DTS
Reported by: | André | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
I have a problem with FFmpeg being stuck fixing non-monotonous DTS of a very long stream. I think that it's a bug in FFmpeg because it keeps on changing the DTS to the previous value. Hopefully somebody has a clue what's going on here.
My setup is as follows:
A program combines segmented TS files of two short clips – each chunk with a duration of 1 second – encoded with identical settings at 24 fps. The program mixes the files so that the sources are alternated every few seconds, copies the files into a folder with consecutive names and creates an index file to feed the concat demnuxer. From that input a RTMP stream is produced.
Excerpt from concat.index:
ffconcat version 1.0 file 'output/00000000.ts' duration 1.0 file 'output/00000001.ts' duration 1.0 ... file 'output/00099998.ts' duration 1.0 file 'output/00099999.ts' duration 1.0 file concat.index.alt
At the end of the index file another index (concat.index.alt) is referenced that also refers to 100,000 chunks and the previous index concat.index. This should produce an endless loop.
Since timestamps of the input files are non-monotonous, FFmpeg has to do a lot of fixing. This is expected. But after 26.5 hours of streaming the process got stuck for the first time.
At this time the following error occurred:
[concat @ 0x40dd420] Invalid timestamps stream=0, pts=-5405567, dts=8584510275, size=37014
I kept the process running for almost 45 hours. FFmpeg reported a time of about 37 hours in the end, so it was stuck for 8 hours in total. I killed the process after it consumed 30 Gigabytes of RAM.
Fps increased from 24 to 158.
Since the log file is very large (12 Gigabytes) I am going to post excerpts only. I added comments about my observations.
Please note: The line numbers I refer to are the numbers VIM reported. Here I inserted newlines to have a more readable output.
ffmpeg -y -re -i concat.index -c copy -bsf:a aac_adtstoasc -f flv 'rtmp://server.local/live/stream/test'
ffmpeg version git-2017-08-11-7735ed2 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3) configuration: --prefix=/var/microservices/assembler/install/ffmpeg_build --extra-cflags=-I/var/microservices/assembler/install/ffmpeg_build/include --extra-ldflags=-L/var/microservices/assembler/install/ffmpeg_build/lib --bindir=/usr/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree libavutil 55. 73.100 / 55. 73.100 libavcodec 57.102.100 / 57.102.100 libavformat 57. 76.100 / 57. 76.100 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 98.100 / 6. 98.100 libswscale 4. 7.102 / 4. 7.102 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, concat, from 'concat.index': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1980x1080 [SAR 1:1 DAR 11:6], 24 fps, 24 tbr, 90k tbn, 48 tbc Stream #0:1(und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 202 kb/s Output #0, flv, to 'rtmp://server.local/live/stream/test': Metadata: encoder : Lavf57.76.100 Stream #0:0: Video: h264 (Main) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1980x1080 [SAR 1:1 DAR 11:6], q=2-31, 24 fps, 24 tbr, 1k tbn, 90k tbc Stream #0:1(und): Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, stereo, fltp, 202 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 13 fps=0.0 q=-1.0 size= 267kB time=00:00:00.51 bitrate=4266.7kbits/s speed= 1x frame= 25 fps= 25 q=-1.0 size= 509kB time=00:00:01.02 bitrate=4086.4kbits/s speed= 1x frame= 38 fps= 25 q=-1.0 size= 641kB time=00:00:01.54 bitrate=3406.8kbits/s speed=1.01x frame= 49 fps= 24 q=-1.0 size= 896kB time=00:00:02.04 bitrate=3594.7kbits/s speed= 1x frame= 62 fps= 24 q=-1.0 size= 1048kB time=00:00:02.53 bitrate=3381.3kbits/s speed=0.999x frame= 73 fps= 24 q=-1.0 size= 1343kB time=00:00:03.06 bitrate=3590.5kbits/s speed=1.01x frame= 86 fps= 24 q=-1.0 size= 1469kB time=00:00:03.55 bitrate=3384.8kbits/s speed= 1x frame= 97 fps= 24 q=-1.0 size= 1722kB time=00:00:04.06 bitrate=3471.7kbits/s speed= 1x frame= 110 fps= 24 q=-1.0 size= 1842kB time=00:00:04.57 bitrate=3296.7kbits/s speed= 1x frame= 121 fps= 24 q=-1.0 size= 2111kB time=00:00:05.08 bitrate=3401.3kbits/s speed= 1x frame= 134 fps= 24 q=-1.0 size= 2254kB time=00:00:05.59 bitrate=3299.2kbits/s speed= 1x frame= 145 fps= 24 q=-1.0 size= 2504kB time=00:00:06.08 bitrate=3370.5kbits/s speed= 1x frame= 160 fps= 24 q=-1.0 size= 2655kB time=00:00:06.61 bitrate=3289.1kbits/s speed= 1x frame= 172 fps= 24 q=-1.0 size= 2922kB time=00:00:07.10 bitrate=3367.7kbits/s speed= 1x frame= 183 fps= 24 q=-1.0 size= 3140kB time=00:00:07.59 bitrate=3385.8kbits/s speed=0.999x frame= 196 fps= 24 q=-1.0 size= 3506kB time=00:00:08.10 bitrate=3542.3kbits/s speed= 1x frame= 206 fps= 24 q=-1.0 size= 3675kB time=00:00:08.61 bitrate=3493.2kbits/s speed= 1x frame= 220 fps= 24 q=-1.0 size= 4019kB time=00:00:09.12 bitrate=3607.7kbits/s speed= 1x frame= 231 fps= 24 q=-1.0 size= 4248kB time=00:00:09.61 bitrate=3617.9kbits/s speed=0.999x frame= 244 fps= 24 q=-1.0 size= 4611kB time=00:00:10.12 bitrate=3731.5kbits/s speed=0.999x frame= 257 fps= 24 q=-1.0 size= 4832kB time=00:00:10.66 bitrate=3711.8kbits/s speed= 1x frame= 268 fps= 24 q=-1.0 size= 5171kB time=00:00:11.17 bitrate=3791.8kbits/s speed= 1x frame= 281 fps= 24 q=-1.0 size= 5379kB time=00:00:11.66 bitrate=3778.8kbits/s speed= 1x frame= 292 fps= 24 q=-1.0 size= 5716kB time=00:00:12.17 bitrate=3847.4kbits/s speed= 1x frame= 305 fps= 24 q=-1.0 size= 5948kB time=00:00:12.68 bitrate=3842.0kbits/s speed= 1x frame= 316 fps= 24 q=-1.0 size= 6234kB time=00:00:13.17 bitrate=3877.6kbits/s speed= 1x frame= 329 fps= 24 q=-1.0 size= 6499kB time=00:00:13.68 bitrate=3890.9kbits/s speed= 1x frame= 340 fps= 24 q=-1.0 size= 6782kB time=00:00:14.19 bitrate=3914.8kbits/s speed= 1x frame= 353 fps= 24 q=-1.0 size= 6866kB time=00:00:14.70 bitrate=3825.3kbits/s speed= 1x frame= 364 fps= 24 q=-1.0 size= 7095kB time=00:00:15.19 bitrate=3826.0kbits/s speed= 1x frame= 377 fps= 24 q=-1.0 size= 7349kB time=00:00:15.70 bitrate=3833.7kbits/s speed= 1x frame= 391 fps= 24 q=-1.0 size= 7698kB time=00:00:16.23 bitrate=3885.1kbits/s speed= 1x frame= 401 fps= 24 q=-1.0 size= 7878kB time=00:00:16.72 bitrate=3858.5kbits/s speed= 1x frame= 414 fps= 24 q=-1.0 size= 8206kB time=00:00:17.21 bitrate=3905.4kbits/s speed= 1x frame= 424 fps= 24 q=-1.0 size= 8322kB time=00:00:17.72 bitrate=3846.2kbits/s speed= 1x frame= 438 fps= 24 q=-1.0 size= 8607kB time=00:00:18.23 bitrate=3866.8kbits/s speed= 1x frame= 450 fps= 24 q=-1.0 size= 8743kB time=00:00:18.72 bitrate=3825.2kbits/s speed= 1x frame= 462 fps= 24 q=-1.0 size= 8853kB time=00:00:19.25 bitrate=3766.4kbits/s speed= 1x frame= 475 fps= 24 q=-1.0 size= 8950kB time=00:00:19.74 bitrate=3712.8kbits/s speed= 1x frame= 486 fps= 24 q=-1.0 size= 9072kB time=00:00:20.27 bitrate=3665.3kbits/s speed= 1x frame= 499 fps= 24 q=-1.0 size= 9180kB time=00:00:20.78 bitrate=3617.3kbits/s speed= 1x frame= 510 fps= 24 q=-1.0 size= 9288kB time=00:00:21.27 bitrate=3576.0kbits/s speed= 1x frame= 524 fps= 24 q=-1.0 size= 9407kB time=00:00:21.78 bitrate=3536.8kbits/s speed= 1x frame= 535 fps= 24 q=-1.0 size= 9557kB time=00:00:22.29 bitrate=3511.0kbits/s speed= 1x frame= 547 fps= 24 q=-1.0 size= 9829kB time=00:00:22.81 bitrate=3529.9kbits/s speed= 1x frame= 559 fps= 24 q=-1.0 size= 10197kB time=00:00:23.29 bitrate=3585.4kbits/s speed= 1x frame= 571 fps= 24 q=-1.0 size= 10455kB time=00:00:23.81 bitrate=3596.8kbits/s speed= 1x frame= 584 fps= 24 q=-1.0 size= 10811kB time=00:00:24.29 bitrate=3644.9kbits/s speed= 1x frame= 595 fps= 24 q=-1.0 size= 11053kB time=00:00:24.81 bitrate=3649.5kbits/s speed= 1x frame= 609 fps= 24 q=-1.0 size= 11382kB time=00:00:25.33 bitrate=3680.6kbits/s speed= 1x frame= 619 fps= 24 q=-1.0 size= 11561kB time=00:00:25.83 bitrate=3666.4kbits/s speed= 1x frame= 633 fps= 24 q=-1.0 size= 11824kB time=00:00:26.33 bitrate=3678.7kbits/s speed= 1x frame= 644 fps= 24 q=-1.0 size= 11930kB time=00:00:26.83 bitrate=3642.3kbits/s speed= 1x frame= 657 fps= 24 q=-1.0 size= 12061kB time=00:00:27.34 bitrate=3613.9kbits/s speed= 1x frame= 670 fps= 24 q=-1.0 size= 12164kB time=00:00:27.87 bitrate=3575.5kbits/s speed= 1x frame= 682 fps= 24 q=-1.0 size= 12295kB time=00:00:28.36 bitrate=3550.7kbits/s speed= 1x frame= 692 fps= 24 q=-1.0 size= 12375kB time=00:00:28.87 bitrate=3510.9kbits/s speed= 1x frame= 705 fps= 24 q=-1.0 size= 12486kB time=00:00:29.38 bitrate=3481.0kbits/s speed= 1x frame= 718 fps= 24 q=-1.0 size= 12602kB time=00:00:29.89 bitrate=3453.2kbits/s speed= 1x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 29947, current: 29938; changing to 29947. This may result in incorrect timestamps in the output file. frame= 731 fps= 24 q=-1.0 size= 12836kB time=00:00:30.40 bitrate=3458.4kbits/s speed= 1x frame= 742 fps= 24 q=-1.0 size= 12971kB time=00:00:30.89 bitrate=3439.1kbits/s speed= 1x frame= 753 fps= 24 q=-1.0 size= 13193kB time=00:00:31.40 bitrate=3441.4kbits/s speed= 1x frame= 766 fps= 24 q=-1.0 size= 13346kB time=00:00:31.91 bitrate=3425.4kbits/s speed= 1x frame= 778 fps= 24 q=-1.0 size= 13605kB time=00:00:32.40 bitrate=3439.3kbits/s speed= 1x frame= 790 fps= 24 q=-1.0 size= 13803kB time=00:00:32.91 bitrate=3435.3kbits/s speed= 1x frame= 804 fps= 24 q=-1.0 size= 13999kB time=00:00:33.43 bitrate=3429.5kbits/s speed= 1x frame= 814 fps= 24 q=-1.0 size= 14100kB time=00:00:33.93 bitrate=3403.4kbits/s speed= 1x frame= 827 fps= 24 q=-1.0 size= 14303kB time=00:00:34.44 bitrate=3401.3kbits/s speed= 1x frame= 838 fps= 24 q=-1.0 size= 14469kB time=00:00:34.96 bitrate=3390.5kbits/s speed= 1x frame= 851 fps= 24 q=-1.0 size= 14740kB time=00:00:35.44 bitrate=3406.3kbits/s speed= 1x frame= 862 fps= 24 q=-1.0 size= 14921kB time=00:00:35.96 bitrate=3399.2kbits/s speed= 1x frame= 875 fps= 24 q=-1.0 size= 15216kB time=00:00:36.46 bitrate=3417.9kbits/s speed= 1x frame= 886 fps= 24 q=-1.0 size= 15437kB time=00:00:36.98 bitrate=3419.6kbits/s speed= 1x frame= 900 fps= 24 q=-1.0 size= 15780kB time=00:00:37.46 bitrate=3450.0kbits/s speed= 1x frame= 913 fps= 24 q=-1.0 size= 16111kB time=00:00:38.00 bitrate=3473.1kbits/s speed= 1x frame= 923 fps= 24 q=-1.0 size= 16312kB time=00:00:38.51 bitrate=3469.9kbits/s speed= 1x frame= 937 fps= 24 q=-1.0 size= 16684kB time=00:00:39.00 bitrate=3504.5kbits/s speed= 1x frame= 948 fps= 24 q=-1.0 size= 16915kB time=00:00:39.51 bitrate=3507.0kbits/s speed= 1x frame= 961 fps= 24 q=-1.0 size= 17253kB time=00:00:40.02 bitrate=3531.7kbits/s speed= 1x frame= 974 fps= 24 q=-1.0 size= 17465kB time=00:00:40.53 bitrate=3529.4kbits/s speed= 1x frame= 985 fps= 24 q=-1.0 size= 17799kB time=00:00:41.04 bitrate=3552.6kbits/s speed= 1x frame= 998 fps= 24 q=-1.0 size= 18038kB time=00:00:41.53 bitrate=3557.7kbits/s speed= 1x frame= 1009 fps= 24 q=-1.0 size= 18308kB time=00:00:42.06 bitrate=3565.4kbits/s speed= 1x frame= 1022 fps= 24 q=-1.0 size= 18590kB time=00:00:42.55 bitrate=3578.7kbits/s speed= 1x frame= 1033 fps= 24 q=-1.0 size= 18924kB time=00:00:43.06 bitrate=3599.9kbits/s speed= 1x frame= 1046 fps= 24 q=-1.0 size= 19199kB time=00:00:43.57 bitrate=3609.2kbits/s speed= 1x frame= 1057 fps= 24 q=-1.0 size= 19499kB time=00:00:44.08 bitrate=3623.4kbits/s speed= 1x frame= 1070 fps= 24 q=-1.0 size= 19794kB time=00:00:44.57 bitrate=3637.6kbits/s speed= 1x frame= 1081 fps= 24 q=-1.0 size= 19975kB time=00:00:45.08 bitrate=3629.4kbits/s speed= 1x frame= 1094 fps= 24 q=-1.0 size= 20002kB time=00:00:45.59 bitrate=3593.5kbits/s speed= 1x frame= 1106 fps= 24 q=-1.0 size= 20033kB time=00:00:46.08 bitrate=3561.1kbits/s speed= 1x frame= 1118 fps= 24 q=-1.0 size= 20050kB time=00:00:46.59 bitrate=3525.0kbits/s speed= 1x frame= 1132 fps= 24 q=-1.0 size= 20072kB time=00:00:47.11 bitrate=3490.3kbits/s speed= 1x frame= 1144 fps= 24 q=-1.0 size= 20089kB time=00:00:47.61 bitrate=3456.6kbits/s speed= 1x frame= 1156 fps= 24 q=-1.0 size= 20108kB time=00:00:48.12 bitrate=3422.6kbits/s speed= 1x frame= 1167 fps= 24 q=-1.0 size= 20162kB time=00:00:48.61 bitrate=3397.1kbits/s speed= 1x frame= 1180 fps= 24 q=-1.0 size= 20227kB time=00:00:49.15 bitrate=3371.3kbits/s speed= 1x frame= 1193 fps= 24 q=-1.0 size= 20241kB time=00:00:49.64 bitrate=3339.9kbits/s speed= 1x frame= 1204 fps= 24 q=-1.0 size= 20305kB time=00:00:50.14 bitrate=3316.8kbits/s speed= 1x frame= 1215 fps= 24 q=-1.0 size= 20317kB time=00:00:50.66 bitrate=3285.3kbits/s speed= 1x frame= 1229 fps= 24 q=-1.0 size= 20324kB time=00:00:51.16 bitrate=3254.3kbits/s speed= 1x frame= 1241 fps= 24 q=-1.0 size= 20329kB time=00:00:51.66 bitrate=3223.5kbits/s speed= 1x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 51953, current: 51938; changing to 51953. This may result in incorrect timestamps in the output file.
Omitted 2236 lines (27 => 2263).
A warning about non-monotonous DTS now and then but nothing serious.
Then, after 26:29:43.23 of streaming this message occurs for the first time:
[concat @ 0x40dd420] Invalid timestamps stream=0, pts=-5405567, dts=8584510275, size=37014
At that time 2,288,870 frames have been encoded which translates to about 26:29:29 at 24 fps.
frame=2288772 fps= 24 q=-1.0 size=34271914kB time=26:29:25.49 bitrate=2944.0kbits/s speed= 1x frame=2288782 fps= 24 q=-1.0 size=34272138kB time=26:29:25.98 bitrate=2944.0kbits/s speed= 1x frame=2288796 fps= 24 q=-1.0 size=34272526kB time=26:29:26.49 bitrate=2944.0kbits/s speed= 1x frame=2288809 fps= 24 q=-1.0 size=34272883kB time=26:29:27.00 bitrate=2944.0kbits/s speed= 1x frame=2288820 fps= 24 q=-1.0 size=34273125kB time=26:29:27.51 bitrate=2944.0kbits/s speed= 1x frame=2288834 fps= 24 q=-1.0 size=34273440kB time=26:29:28.02 bitrate=2944.0kbits/s speed= 1x frame=2288846 fps= 24 q=-1.0 size=34273710kB time=26:29:28.55 bitrate=2944.1kbits/s speed= 1x frame=2288857 fps= 24 q=-1.0 size=34273963kB time=26:29:29.04 bitrate=2944.1kbits/s speed= 1x frame=2288870 fps= 24 q=-1.0 size=34274143kB time=26:29:29.54 bitrate=2944.1kbits/s speed= 1x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95369958, current: 95369938; changing to 95369958. This may result in incorrect timestamps in the output file. frame=2288884 fps= 24 q=-1.0 size=34274278kB time=26:29:30.06 bitrate=2944.1kbits/s speed= 1x frame=2288897 fps= 24 q=-1.0 size=34274284kB time=26:29:30.60 bitrate=2944.0kbits/s speed= 1x frame=2288906 fps= 24 q=-1.0 size=34274368kB time=26:29:31.08 bitrate=2944.0kbits/s speed= 1x frame=2288918 fps= 24 q=-1.0 size=34274515kB time=26:29:31.59 bitrate=2944.0kbits/s speed= 1x frame=2288929 fps= 24 q=-1.0 size=34274676kB time=26:29:32.08 bitrate=2944.0kbits/s speed= 1x frame=2288943 fps= 24 q=-1.0 size=34274881kB time=26:29:32.58 bitrate=2944.0kbits/s speed= 1x frame=2288954 fps= 24 q=-1.0 size=34275089kB time=26:29:33.08 bitrate=2944.0kbits/s speed= 1x frame=2288966 fps= 24 q=-1.0 size=34275288kB time=26:29:33.61 bitrate=2944.0kbits/s speed= 1x frame=2288980 fps= 24 q=-1.0 size=34275539kB time=26:29:34.11 bitrate=2944.0kbits/s speed= 1x frame=2288991 fps= 24 q=-1.0 size=34275759kB time=26:29:34.61 bitrate=2944.0kbits/s speed= 1x frame=2289004 fps= 24 q=-1.0 size=34275957kB time=26:29:35.12 bitrate=2944.0kbits/s speed= 1x frame=2289017 fps= 24 q=-1.0 size=34276109kB time=26:29:35.65 bitrate=2944.0kbits/s speed= 1x frame=2289028 fps= 24 q=-1.0 size=34276344kB time=26:29:36.14 bitrate=2944.0kbits/s speed= 1x frame=2289041 fps= 24 q=-1.0 size=34276528kB time=26:29:36.64 bitrate=2944.0kbits/s speed= 1x frame=2289052 fps= 24 q=-1.0 size=34276802kB time=26:29:37.17 bitrate=2944.1kbits/s speed= 1x frame=2289064 fps= 24 q=-1.0 size=34276998kB time=26:29:37.66 bitrate=2944.1kbits/s speed= 1x frame=2289076 fps= 24 q=-1.0 size=34277263kB time=26:29:38.17 bitrate=2944.1kbits/s speed= 1x frame=2289089 fps= 24 q=-1.0 size=34277390kB time=26:29:38.68 bitrate=2944.1kbits/s speed= 1x frame=2289100 fps= 24 q=-1.0 size=34277514kB time=26:29:39.19 bitrate=2944.1kbits/s speed= 1x frame=2289113 fps= 24 q=-1.0 size=34277614kB time=26:29:39.70 bitrate=2944.0kbits/s speed= 1x frame=2289124 fps= 24 q=-1.0 size=34277741kB time=26:29:40.19 bitrate=2944.0kbits/s speed= 1x frame=2289138 fps= 24 q=-1.0 size=34277846kB time=26:29:40.70 bitrate=2944.0kbits/s speed= 1x frame=2289150 fps= 24 q=-1.0 size=34277963kB time=26:29:41.21 bitrate=2944.0kbits/s speed= 1x frame=2289161 fps= 24 q=-1.0 size=34278022kB time=26:29:41.72 bitrate=2944.0kbits/s speed= 1x frame=2289174 fps= 24 q=-1.0 size=34278225kB time=26:29:42.23 bitrate=2944.0kbits/s speed= 1x frame=2289187 fps= 24 q=-1.0 size=34278487kB time=26:29:42.74 bitrate=2944.0kbits/s speed= 1x frame=2289198 fps= 24 q=-1.0 size=34278783kB time=26:29:43.23 bitrate=2944.0kbits/s speed= 1x [concat @ 0x40dd420] Invalid timestamps stream=0, pts=-5405567, dts=8584510275, size=37014 [concat @ 0x40dd420] Invalid timestamps stream=0, pts=-5390567, dts=8584525275, size=23962 [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: -60062; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -60056; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -60035; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -60014; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -59992; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: -60020; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: -59979; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -59971; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -59950; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -59928; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -59907; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -59886; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: -59937; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: -59895; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: -59854; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -59864; changing to 95383640. This may result in incorrect timestamps in the output file.
Omitted 290 lines (2282 => 2572).
After all those warnings the timestamp is increased by 41 milliseconds to 26:29:43.64.
[flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: -55720; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -55718; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -55696; changing to 95383640. This may result in incorrect timestamps in the output file. frame=2289313 fps= 24 q=-1.0 size=34280160kB time=26:29:43.64 bitrate=2944.1kbits/s speed= 1x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -55675; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -55654; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: -55632; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: -55678; changing to 95383614. This may result in incorrect timestamps in the output file.
Omitted 6,758,105 lines (2580 => 6760685).
Output of all lines is similar, all have a timestamp of 26:29:43.64.
That's 2,290,224 frames with the same time.
Fps increased from 24 to 47.
[flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370242; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370264; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: 95370185; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: 95370227; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: 95370266; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370282; changing to 95383640. This may result in incorrect timestamps in the output file. frame=4579537 fps= 47 q=-1.0 size=66290271kB time=26:29:43.64 bitrate=5693.3kbits/s speed=0.976x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370304; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370325; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370346; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370368; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: 95370307; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: 95370349; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: 95370391; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370389; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95370410; changing to 95383640. This may result in incorrect timestamps in the output file.
Omitted 928 lines (6760701 => 6761629).
Now the time is updated to 26:29:43.68.
[flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95383539; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95383560; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95383581; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: 95383558; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95383614, current: 95383600; changing to 95383614. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95383602; changing to 95383640. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 95383640, current: 95383624; changing to 95383640. This may result in incorrect timestamps in the output file. frame=4579859 fps= 47 q=-1.0 size=68601606kB time=26:29:43.68 bitrate=5891.8kbits/s speed=0.976x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95384225, current: 95384 220; changing to 95384225. This may result in incorrect timestamps in the output file. frame=4580233 fps= 47 q=-1.0 size=68608691kB time=26:29:59.28 bitrate=5891.5kbits/s speed=0.976x frame=4580689 fps= 47 q=-1.0 size=68616218kB time=26:30:18.28 bitrate=5890.9kbits/s speed=0.976x frame=4581217 fps= 47 q=-1.0 size=68621716kB time=26:30:40.28 bitrate=5890.1kbits/s speed=0.976x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95443229, current: 95443220; changing to 95443229. This may result in incorrect timestamps in the output file. frame=4581601 fps= 47 q=-1.0 size=68627460kB time=26:30:56.28 bitrate=5889.6kbits/s speed=0.976x frame=4581985 fps= 47 q=-1.0 size=68634002kB time=26:31:12.28 bitrate=5889.1kbits/s speed=0.976x frame=4582538 fps= 47 q=-1.0 size=68639950kB time=26:31:35.30 bitrate=5888.2kbits/s speed=0.977x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95500238, current: 95500220; changing to 95500238. This may result in incorrect timestamps in the output file. frame=4582921 fps= 47 q=-1.0 size=68646504kB time=26:31:51.28 bitrate=5887.8kbits/s speed=0.977x frame=4583401 fps= 47 q=-1.0 size=68653671kB time=26:32:11.28 bitrate=5887.2kbits/s speed=0.977x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95541235, current: 95541220; changing to 95541235. This may result in incorrect timestamps in the output file. frame=4583947 fps= 47 q=-1.0 size=68658416kB time=26:32:34.02 bitrate=5886.2kbits/s speed=0.977x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95559229, current: 95559220; changing to 95559229. This may result in incorrect timestamps in the output file. frame=4584288 fps= 47 q=-1.0 size=68664042kB time=26:32:48.26 bitrate=5885.8kbits/s speed=0.977x frame=4584673 fps= 47 q=-1.0 size=68669224kB time=26:33:04.28 bitrate=5885.3kbits/s speed=0.978x frame=4585153 fps= 47 q=-1.0 size=68675494kB time=26:33:24.28 bitrate=5884.6kbits/s speed=0.978x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 95616222, current: 95616220; changing to 95616222. This may result in incorrect timestamps in the output file.
Omitted 100 lines (6761643 => 6761743).
The stream runs without many errors for the next 102 minutes with 47 fps.
frame=4688456 fps= 47 q=-1.0 size=70212921kB time=27:45:08.51 bitrate=5757.1kbits/s speed= 1x frame=4688466 fps= 47 q=-1.0 size=70213060kB time=27:45:09.02 bitrate=5757.1kbits/s speed= 1x frame=4688478 fps= 47 q=-1.0 size=70213310kB time=27:45:09.53 bitrate=5757.1kbits/s speed= 1x frame=4688491 fps= 47 q=-1.0 size=70213444kB time=27:45:10.03 bitrate=5757.1kbits/s speed= 1x frame=4688502 fps= 47 q=-1.0 size=70213698kB time=27:45:10.53 bitrate=5757.1kbits/s speed= 1x frame=4688515 fps= 47 q=-1.0 size=70213857kB time=27:45:11.03 bitrate=5757.0kbits/s speed= 1x frame=4688526 fps= 47 q=-1.0 size=70214139kB time=27:45:11.53 bitrate=5757.0kbits/s speed= 1x frame=4688539 fps= 47 q=-1.0 size=70214242kB time=27:45:12.02 bitrate=5757.0kbits/s speed= 1x frame=4688550 fps= 47 q=-1.0 size=70214514kB time=27:45:12.56 bitrate=5757.0kbits/s speed= 1x frame=4688563 fps= 47 q=-1.0 size=70214643kB time=27:45:13.05 bitrate=5757.0kbits/s speed= 1x frame=4688574 fps= 47 q=-1.0 size=70214905kB time=27:45:13.56 bitrate=5757.0kbits/s speed= 1x frame=4688587 fps= 47 q=-1.0 size=70215055kB time=27:45:14.05 bitrate=5757.0kbits/s speed= 1x frame=4688600 fps= 47 q=-1.0 size=70215306kB time=27:45:14.56 bitrate=5757.0kbits/s speed= 1x frame=4688610 fps= 47 q=-1.0 size=70215444kB time=27:45:15.07 bitrate=5756.9kbits/s speed= 1x frame=4688623 fps= 47 q=-1.0 size=70215757kB time=27:45:15.56 bitrate=5756.9kbits/s speed= 1x frame=4688635 fps= 47 q=-1.0 size=70215960kB time=27:45:16.09 bitrate=5756.9kbits/s speed= 1x frame=4688647 fps= 47 q=-1.0 size=70216153kB time=27:45:16.58 bitrate=5756.9kbits/s speed= 1x frame=4688659 fps= 47 q=-1.0 size=70216313kB time=27:45:17.09 bitrate=5756.9kbits/s speed= 1x frame=4688673 fps= 47 q=-1.0 size=70216655kB time=27:45:17.61 bitrate=5756.9kbits/s speed= 1x frame=4688683 fps= 47 q=-1.0 size=70216882kB time=27:45:18.11 bitrate=5756.9kbits/s speed= 1x frame=4688697 fps= 47 q=-1.0 size=70217252kB time=27:45:18.61 bitrate=5756.9kbits/s speed= 1x frame=4688707 fps= 47 q=-1.0 size=70217457kB time=27:45:19.11 bitrate=5756.9kbits/s speed= 1x frame=4688721 fps= 47 q=-1.0 size=70217809kB time=27:45:19.62 bitrate=5756.9kbits/s speed= 1x frame=4688734 fps= 47 q=-1.0 size=70218009kB time=27:45:20.15 bitrate=5756.9kbits/s speed= 1x frame=4688745 fps= 47 q=-1.0 size=70218355kB time=27:45:20.64 bitrate=5756.9kbits/s speed= 1x frame=4688758 fps= 47 q=-1.0 size=70218564kB time=27:45:21.15 bitrate=5756.8kbits/s speed= 1x frame=4688769 fps= 47 q=-1.0 size=70218878kB time=27:45:21.64 bitrate=5756.8kbits/s speed= 1x frame=4688782 fps= 47 q=-1.0 size=70219124kB time=27:45:22.14 bitrate=5756.8kbits/s speed= 1x frame=4688793 fps= 47 q=-1.0 size=70219521kB time=27:45:22.66 bitrate=5756.8kbits/s speed= 1x frame=4688806 fps= 47 q=-1.0 size=70219759kB time=27:45:23.17 bitrate=5756.8kbits/s speed= 1x frame=4688817 fps= 47 q=-1.0 size=70220069kB time=27:45:23.66 bitrate=5756.8kbits/s speed= 1x frame=4688830 fps= 47 q=-1.0 size=70220344kB time=27:45:24.17 bitrate=5756.8kbits/s speed= 1x frame=4688841 fps= 47 q=-1.0 size=70220620kB time=27:45:24.68 bitrate=5756.8kbits/s speed= 1x frame=4688854 fps= 47 q=-1.0 size=70220863kB time=27:45:25.20 bitrate=5756.8kbits/s speed= 1x frame=4688865 fps= 47 q=-1.0 size=70221118kB time=27:45:25.68 bitrate=5756.8kbits/s speed= 1x frame=4688878 fps= 47 q=-1.0 size=70221288kB time=27:45:26.20 bitrate=5756.8kbits/s speed= 1x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 99926240, current: 99926220; changing to 99926240. This may result in incorrect timestamps in the output file. frame=4688893 fps= 47 q=-1.0 size=70221302kB time=27:45:26.72 bitrate=5756.7kbits/s speed= 1x frame=4688902 fps= 47 q=-1.0 size=70221349kB time=27:45:27.19 bitrate=5756.7kbits/s speed= 1x frame=4688916 fps= 47 q=-1.0 size=70221502kB time=27:45:27.72 bitrate=5756.7kbits/s speed= 1x frame=4688926 fps= 47 q=-1.0 size=70221646kB time=27:45:28.22 bitrate=5756.7kbits/s speed= 1x frame=4688938 fps= 47 q=-1.0 size=70221840kB time=27:45:28.70 bitrate=5756.7kbits/s speed= 1x frame=4688950 fps= 47 q=-1.0 size=70222032kB time=27:45:29.22 bitrate=5756.7kbits/s speed= 1x frame=4688963 fps= 47 q=-1.0 size=70222265kB time=27:45:29.73 bitrate=5756.7kbits/s speed= 1x frame=4688974 fps= 47 q=-1.0 size=70222455kB time=27:45:30.22 bitrate=5756.6kbits/s speed= 1x frame=4688987 fps= 47 q=-1.0 size=70222713kB time=27:45:30.73 bitrate=5756.6kbits/s speed= 1x frame=4688998 fps= 47 q=-1.0 size=70222899kB time=27:45:31.24 bitrate=5756.6kbits/s speed= 1x frame=4689012 fps= 47 q=-1.0 size=70223055kB time=27:45:31.73 bitrate=5756.6kbits/s speed= 1x frame=4689022 fps= 47 q=-1.0 size=70223242kB time=27:45:32.26 bitrate=5756.6kbits/s speed= 1x frame=4689036 fps= 47 q=-1.0 size=70223468kB time=27:45:32.75 bitrate=5756.6kbits/s speed= 1x frame=4689047 fps= 47 q=-1.0 size=70223640kB time=27:45:33.24 bitrate=5756.6kbits/s speed= 1x frame=4689059 fps= 47 q=-1.0 size=70223956kB time=27:45:33.77 bitrate=5756.6kbits/s speed= 1x frame=4689070 fps= 47 q=-1.0 size=70224115kB time=27:45:34.26 bitrate=5756.5kbits/s speed= 1x frame=4689083 fps= 47 q=-1.0 size=70224366kB time=27:45:34.77 bitrate=5756.5kbits/s speed= 1x frame=4689095 fps= 47 q=-1.0 size=70224465kB time=27:45:35.26 bitrate=5756.5kbits/s speed= 1x frame=4689107 fps= 47 q=-1.0 size=70224594kB time=27:45:35.79 bitrate=5756.5kbits/s speed= 1x frame=4689121 fps= 47 q=-1.0 size=70224733kB time=27:45:36.28 bitrate=5756.5kbits/s speed= 1x frame=4689133 fps= 47 q=-1.0 size=70224842kB time=27:45:36.81 bitrate=5756.5kbits/s speed= 1x frame=4689145 fps= 47 q=-1.0 size=70224951kB time=27:45:37.32 bitrate=5756.4kbits/s speed= 1x frame=4689158 fps= 47 q=-1.0 size=70225034kB time=27:45:37.81 bitrate=5756.4kbits/s speed= 1x frame=4689169 fps= 47 q=-1.0 size=70225160kB time=27:45:38.32 bitrate=5756.4kbits/s speed= 1x frame=4689182 fps= 47 q=-1.0 size=70225417kB time=27:45:38.81 bitrate=5756.4kbits/s speed= 1x frame=4689193 fps= 47 q=-1.0 size=70225700kB time=27:45:39.28 bitrate=5756.4kbits/s speed= 1x frame=4689206 fps= 47 q=-1.0 size=70225947kB time=27:45:39.83 bitrate=5756.4kbits/s speed= 1x [concat @ 0x10ee10a0] Invalid timestamps stream=0, pts=-5390567, dts=8584525275, size=23962 [concat @ 0x10ee10a0] Invalid timestamps stream=0, pts=-5398067, dts=8584529025, size=11355 [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 99939986, current: 4496290; changing to 99939986. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 99939980, current: 4496304; changing to 99939980. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 99939986, current: 4496311; changing to 99939986. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 99939986, current: 4496333; changing to 99939986. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 99939986, current: 4496354; changing to 99939986. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 99939986, current: 4496375; changing to 99939986. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 99939986, current: 4496397; changing to 99939986. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 99939980, current: 4496345; changing to 99939980. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 99939980, current: 4496387; changing to 99939980. This may result in incorrect timestamps in the output file.
Omitted 54,075,108 lines (6761755 => 60836863).
The stream reports a runtime of about 10 hours in that window.
FFmpeg increased the frame count by 19,090,653 (4689206 => 23779859) during that time. At 24 fps that would be almost 221 hours. But fps is now at 152!
[flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 131833941, current: 131833861; changing to 131833941. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 131833941, current: 131833882; changing to 131833941. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 131833941, current: 131833903; changing to 131833941. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 131833941, current: 131833925; changing to 131833941. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 131833956, current: 131833900; changing to 131833956. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 131833956, current: 131833942; changing to 131833956. This may result in incorrect timestamps in the output file. frame=23779859 fps=152 q=-1.0 size=356087195kB time=36:37:13.98 bitrate=22126.8kbits/s speed=0.844x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 131834483, current: 131834479; changing to 131834483. This may result in incorrect timestamps in the output file. frame=23779874 fps=152 q=-1.0 size=356087333kB time=36:37:14.52 bitrate=22126.7kbits/s speed=0.844x frame=23779945 fps=152 q=-1.0 size=356088557kB time=36:37:17.54 bitrate=22126.3kbits/s speed=0.844x frame=23780017 fps=152 q=-1.0 size=356089718kB time=36:37:20.54 bitrate=22125.9kbits/s speed=0.844x frame=23780086 fps=152 q=-1.0 size=356090985kB time=36:37:23.39 bitrate=22125.5kbits/s speed=0.844x frame=23780138 fps=152 q=-1.0 size=356092015kB time=36:37:25.56 bitrate=22125.2kbits/s speed=0.844x frame=23780209 fps=152 q=-1.0 size=356093705kB time=36:37:28.54 bitrate=22124.8kbits/s speed=0.845x frame=23780258 fps=152 q=-1.0 size=356094838kB time=36:37:30.56 bitrate=22124.5kbits/s speed=0.845x frame=23780329 fps=152 q=-1.0 size=356096076kB time=36:37:33.54 bitrate=22124.1kbits/s speed=0.845x frame=23780401 fps=152 q=-1.0 size=356096917kB time=36:37:36.54 bitrate=22123.6kbits/s speed=0.845x frame=23780497 fps=152 q=-1.0 size=356098535kB time=36:37:40.54 bitrate=22123.1kbits/s speed=0.845x frame=23780580 fps=152 q=-1.0 size=356099601kB time=36:37:44.03 bitrate=22122.5kbits/s speed=0.845x frame=23780641 fps=152 q=-1.0 size=356100529kB time=36:37:46.54 bitrate=22122.2kbits/s speed=0.845x frame=23780714 fps=152 q=-1.0 size=356102333kB time=36:37:49.56 bitrate=22121.8kbits/s speed=0.845x frame=23780785 fps=152 q=-1.0 size=356103620kB time=36:37:52.54 bitrate=22121.4kbits/s speed=0.845x frame=23780881 fps=152 q=-1.0 size=356104924kB time=36:37:56.54 bitrate=22120.8kbits/s speed=0.845x frame=23780953 fps=152 q=-1.0 size=356106357kB time=36:37:59.54 bitrate=22120.4kbits/s speed=0.845x frame=23781072 fps=152 q=-1.0 size=356106657kB time=36:38:04.52 bitrate=22119.5kbits/s speed=0.845x frame=23781145 fps=152 q=-1.0 size=356106895kB time=36:38:07.54 bitrate=22119.1kbits/s speed=0.845x frame=23781265 fps=152 q=-1.0 size=356107748kB time=36:38:12.54 bitrate=22118.3kbits/s speed=0.845x
Omitted 102 lines (60836869 => 60836971).
The stream runs for about 1 hour, fps increased to 152.
frame=23887393 fps=153 q=-1.0 size=357683889kB time=37:51:54.54 bitrate=21495.5kbits/s speed=0.872x frame=23887729 fps=153 q=-1.0 size=357688106kB time=37:52:08.54 bitrate=21493.5kbits/s speed=0.872x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136330488, current: 136330479; changing to 136330488. This may result in incorrect timestamps in the output file. frame=23888113 fps=153 q=-1.0 size=357693020kB time=37:52:24.54 bitrate=21491.3kbits/s speed=0.872x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136358480, current: 136358479; changing to 136358480. This may result in incorrect timestamps in the output file. frame=23888473 fps=153 q=-1.0 size=357698838kB time=37:52:39.54 bitrate=21489.3kbits/s speed=0.872x frame=23888737 fps=153 q=-1.0 size=357703796kB time=37:52:50.54 bitrate=21487.8kbits/s speed=0.872x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136376498, current: 136376479; changing to 136376498. This may result in incorrect timestamps in the output file. frame=23889097 fps=153 q=-1.0 size=357710097kB time=37:53:05.54 bitrate=21485.9kbits/s speed=0.872x [concat @ 0x51df6a480] Invalid timestamps stream=0, pts=-5390567, dts=8584525275, size=23962 [concat @ 0x51df6a480] Invalid timestamps stream=0, pts=-5398067, dts=8584529025, size=11355 [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40946527; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40946548; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 40946562; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40946570; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40946591; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40946612; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40946634; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40946655; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 40946604; changing to 136390238. This may result in incorrect timestamps in the output file.
Omitted 646 lines (60836985 => 60837631).
At time 37:53:10.23 FFmpeg gets stuck again.
[flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 40955734; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 40955775; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 40955814; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40955823; changing to 136390223. This may result in incorrect timestamps in the output file. frame=23889433 fps=153 q=-1.0 size=357711811kB time=37:53:10.23 bitrate=21485.2kbits/s speed=0.872x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40955844; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40955866; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40955887; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 40955908; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 40955856; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 40955898; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 40955939; changing to 136390238. This may result in incorrect timestamps in the output file.
Omitted 4,503,683 lines (60837643 => 65341326).
After 1,526,256 frames with timestamp 37:53:10.23 I killed the process. Fps increased slightly to 158.
[flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 104549734; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 104549776; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 104549815; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 104549823; changing to 136390223. This may result in incorrect timestamps in the output file. frame=25415689 fps=158 q=-1.0 size=359249065kB time=37:53:10.23 bitrate=21577.6kbits/s speed=0.848x [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 104549844; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 104549866; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 104549887; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:1; previous: 136390223, current: 104549908; changing to 136390223. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 104549857; changing to 136390238. This may result in incorrect timestamps in the output file. [flv @ 0x511d9c0] Non-monotonous DTS in output stream 0:0; previous: 136390238, current: 104549899; changing to 136390238. This may result in incorrect timestamps in the output file.
Change History (6)
follow-up: 5 comment:2 by , 7 years ago
I have the same problem with the latest ffmpeg from zeranoe. Every 13h14m ffmpeg stops recording.
ffmpeg started on 2017-09-28 at 10:36:49 Report written to "ffmpeg-20170928-103649.log" Command line: "D:\\ffmpeg\\ffmpeg.exe" -report ffmpeg version N-87353-g183fd30 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib libavutil 55. 76.100 / 55. 76.100 libavcodec 57.106.101 / 57.106.101 libavformat 57. 82.101 / 57. 82.101 libavdevice 57. 8.101 / 57. 8.101 libavfilter 6.105.100 / 6.105.100 libswscale 4. 7.103 / 4. 7.103 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Splitting the commandline. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Successfully parsed a group of options. Hyper fast Audio and Video encoder
I record video streams from 3 cameras.
Stream 1:
Input #0, rtp, from 'rtp://225.1.1.1:1024': Duration: N/A, start: 60424.501000, bitrate: N/A Program 1 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressiv e), 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc Stream #0:1(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, mono, fltp, 164 kb/s
Streams 2,3:
Input #0, rtsp, from 'rtsp://192.168.3.36:554/stream1': Metadata: title : Session streamed by "Pelco Streaming Server" comment : stream1 Duration: N/A, start: 0.219167, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 640x480, 25 fps, 25 tbr, 90k tbn, 50 tbc
I record each of them with segmentation every 1 minute using separated ffmpeg instances like:
ffmpeg -i "rtsp://192.168.3.36:554/stream1" -vcodec copy -an -f segment -strftime 1 -segment_time 60 "novus-%Y-%m-%d_%H-%M-%S.ts"
Every 13 hours 14 minutes (from beginning of recording) each ffmpeg stops recording with messages like "Non-monotonous DTS in output stream 0:0". And it doesn't matter when I started every ffmpeg intance: if I started instance №2 1 minute later that instance №1, it will stop recording in 1 minute after №1 accordingly. I tried it on two PC: Windows Server 2012 x64 and Windows 10 x64.
... [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160 [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289549528 pts_time:47661.7 dts:4289549528 dts_time:47661.7 -> pts:4289549528 pts_time:47661.7 dts:4289549528 dts_time:47661.7 [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160 [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289553131 pts_time:47661.7 dts:4289553131 dts_time:47661.7 -> pts:4289553131 pts_time:47661.7 dts:4289553131 dts_time:47661.7 [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160 [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289556734 pts_time:47661.7 dts:4289556734 dts_time:47661.7 -> pts:4289556734 pts_time:47661.7 dts:4289556734 dts_time:47661.7 [NULL @ 000000000034a900] SEI type 5 size 336 truncated at 160 [segment @ 000000000034e780] Non-monotonous DTS in output stream 0:0; previous: 4289535114, current: -5428580; changing to 4289535115. This may result in incorrect timestamps in the output file. [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289556735 pts_time:47661.7 dts:4289556735 dts_time:47661.7 -> pts:4289556735 pts_time:47661.7 dts:4289556735 dts_time:47661.7 [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160 [segment @ 000000000034e780] Non-monotonous DTS in output stream 0:0; previous: 4289535115, current: -5424977; changing to 4289535116. This may result in incorrect timestamps in the output file. [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289556736 pts_time:47661.7 dts:4289556736 dts_time:47661.7 -> pts:4289556736 pts_time:47661.7 dts:4289556736 dts_time:47661.7 [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160 [segment @ 000000000034e780] Non-monotonous DTS in output stream 0:0; previous: 4289535116, current: -5421374; changing to 4289535117. This may result in incorrect timestamps in the output file. [segment @ 000000000034e780] stream:0 start_pts_time:47640.5 pts:4289556737 pts_time:47661.7 dts:4289556737 dts_time:47661.7 -> pts:4289556737 pts_time:47661.7 dts:4289556737 dts_time:47661.7 frame=1190370 fps= 25 q=-1.0 size=N/A time=13:14:21.50 bitrate=N/A speed= 1x [NULL @ 000000000034a900] SEI type 5 size 408 truncated at 160 [segment @ 000000000034e780] Non-monotonous DTS in output stream 0:0; previous: 4289535117, current: -5417772; changing to 4289535118. This may result in incorrect timestamps in the output file. ...
The full debug log with this problem is here:
https://drive.google.com/file/d/0B1LIS8G55R7-OGY4QkdkQ0J1cVE/view?usp=sharing
I can't record video infinitely. Every 13 hours I have broken recording. I tried to record with "-copytb 1" but it doesn't help.
Does anyone know how to solve it? I can provide you with another information you need about this.
Update: If I wait 13 hours after bug appeared, the recording starts again.
comment:3 by , 7 years ago
Priority: | normal → important |
---|
comment:4 by , 7 years ago
Priority: | important → normal |
---|
follow-up: 6 comment:5 by , 7 years ago
Replying to Gnitry:
I have the same problem
This seems very unlikely: The original issue is about concatenation of mpeg-ts files, you are apparently describing a network issue. Please post your question on the user mailing list or open a new ticket. If you open a new ticket, please remember not to use external resources (except for large input files), post all information in the ticket.
comment:6 by , 7 years ago
Replying to cehoyos:
Replying to Gnitry:
I have the same problem
This seems very unlikely: The original issue is about concatenation of mpeg-ts files, you are apparently describing a network issue. Please post your question on the user mailing list or open a new ticket. If you open a new ticket, please remember not to use external resources (except for large input files), post all information in the ticket.
I choosed this ticket because it has problem with negative DTS, like I have.
Yes, log file is big.
Ok, I will write a new ticket.
I tried 3 more configurations and the process always died after 26.5 hours as before. My latest command is:
I am sure now that FFmpeg has some kind of hard limit, maybe because the PTS is so far off. I can't explain why the PTS has such a huge negative value, though.
Error after 26:29:43.23 runtime:
Error after 26:29:42.98 runtime:
Error after 26:29:43.14 runtime: