[FFmpeg-user] Application provided invalid, non monotonically increasing dts to muxer in stream

MrNice wxcvbn2006 at iol.ie
Thu Sep 24 18:08:53 CEST 2015


On 20/09/15 13:06, MrNice wrote:
> On 20/09/15 11:41, MrNice wrote:
>> On 19/09/15 18:16, MrNice wrote:
>>>
>>>
>>> On 19/09/15 18:02, MrNice wrote:
>>>>
>>>>
>>>> On 17/09/15 14:51, MrNice wrote:
>>>>>
>>>>>
>>>>> On 17/09/15 12:00, Carl Eugen Hoyos wrote:
>>>>>> MrNice <wxcvbn2006 <at> iol.ie> writes:
>>>>>>
>>>>>>>> Does it also happen if you only record audio?
>>>>>>>
>>>>>>> Yes it happen with the command
>>>>>>> ./ffmpeg 
>>>>>>
>>>>>>> -f v4l2 -ts mono2abs -channel 1 -video_size 720x576 
>>>>>>> -pix_fmt yuyv422 -thread_queue_size 512 -i /dev/video0
>>>>>>
>>>>>> Does it also happen if you only provide audio 
>>>>>> input to FFmpeg?
>>>>>>
>>>>>> Carl Eugen
>>>>>>
>>>>>>
>>>>>
>>>>> No error in a 50 mn recording with command
>>>>> ./ffmpeg -debug 1 -f pulse -ar 44100 -ac 2 -channel_layout stereo
>>>>> -thread_queue_size 512 -itsoffset -0.20 -i
>>>>> alsa_input.pci-0000_00_14.2.analog-stereo -vn -c:a pcm_s16le
>>>>> /Store3/Test/t_`date +%Y%m%d_%H%M`.mkv
>>>>>
>>>>
>>>>
>>>> More info after long tests.
>>>> The error
>>>> Application provided invalid, non monotonically increasing dts to muxer
>>>> in stream 0:
>>>> happens after at least 30 minutes recording. ie: Last time at 33:12
>>>> Few seconds before or after happens warning message
>>>> Past duration 0.xxxx too large
>>>>
>>>> Following this link
>>>> http://ffmpeg.org/pipermail/ffmpeg-user/2014-December/024695.html
>>>> I tried with -af aresample=async=1 but still I get the error with 1
>>>> frame dropped.
>>>>
>>>> [matroska @ 0x25d9de0] Writing block at offset 9113825634, size 179818,
>>>> pts 2026200, dts 2026200, duration 40, keyframe 0
>>>> [matroska @ 0x25d9de0] Writing block at offset 9114005460, size 176978,
>>>> pts 2026240, dts 2026240, duration 40, keyframe 0
>>>> Past duration 0.602318 too large
>>>> *** dropping frame 50652 from stream 0 at ts 50650
>>>> [matroska @ 0x25d9de0] Starting new cluster at offset 9114182446 bytes,
>>>> pts 2026280dts 2026280
>>>> [matroska @ 0x25d9de0] Writing block at offset 9114182463, size 180336,
>>>> pts 2026280, dts 2026280, duration 40, keyframe 1
>>>> Past duration 0.601341 too large
>>>>
>>>> What more to do?
>>>>
>>>> As the errors are after 30 minutes, I could try to record by smaller
>>>> parts. To be sure, I would like a way to stop recording if an error
>>>> occurs. I tried -xerror but it's not working with this error.
>>>> Any idea how to do?
>>>> _
>>>
>>>
>>> I was wrong: One more try and I got the error at 8:07
>>>
>>> I need help!!!
>>>
>>>
>>
>> More info, hope this will help to find a fix or a workaround.
>>
>> So far I used a DVD player to test and I had usually the errors after 30
>> minutes capture.
>> In fact the use case is with a S-VHS player. When I capture from blank
>> tape (statics before the images appear) I get a lot of errors and frame
>> drops, then errors stop when the images appear.
>> Same appends as well (not always) when there is a change betweens 2
>> takes or when there is a drop in the tape.
>>
>> Is it the right behaviour?
>>
>>
> 
> 
> More info, new test.
> 
> From my S-VHS player, when there is no tape inside, there is a blue
> image with program number in white. This is a still image, stable
> without any static.
> I captured this image and got errors and drops at very regular time.
> Looking at the output log, I took the time for 15 errors. All of them
> are separated by 16-17 seconds.
> Between the errors there are warning messages
> Past duration 0.xxxxx too large
> where 0.xxxxx increase at a regular time.
> 



Carl Eugen:
If not, does it also happen if you reduce the
resolution of the video recording significantly?
(100x100)


Yes it happen as well in a regular manner (like a pattern of time)
I am stuck, can't go further in my project. What I could do to help
finding a fix or workaround?


./ffmpeg -xerror -f pulse -ar 44100 -ac 2 -channel_layout stereo
-thread_queue_size 512 -itsoffset -0.20 -i
alsa_input.pci-0000_00_14.2.analog-stereo -f v4l2 -ts mono2abs -channel
1 -video_size 720x576 -pix_fmt yuyv422 -thread_queue_size 512 -i
/dev/video0 -vf
drawbox=0:0:3:576:black at 1:t=max,drawbox=718:0:3:576:black at 1:t=max,drawbox=0:0:720:3:black at 1:t=max,drawbox=0:564:720:12:black at 1:t=max
-c:v ffv1 -level 3 -g 1 -aspect 4:3 -s 80x60 -pix_fmt yuv422p -c:a
pcm_s16le /Store3/Test/t_`date +%Y%m%d_%H%M`.mkv -aspect 4:3 -f sdl
"Dazzle output"
ffmpeg version N-75272-g5629143 Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
  configuration: --enable-libpulse --enable-gpl --enable-libx264
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  1.100 / 57.  1.100
  libavformat    57.  0.100 / 57.  0.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6.  2.100 /  6.  2.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, pulse, from 'alsa_input.pci-0000_00_14.2.analog-stereo':
  Duration: N/A, start: 1443110411.356805, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
[video4linux2,v4l2 @ 0x3acb300] Detected monotonic timestamps, converting
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1443110412.490084, bitrate: 165888 kb/s
    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576,
165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
Output #0, matroska, to '/Store3/Test/t_20150924_1700.mkv':
  Metadata:
    encoder         : Lavf57.0.100
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 80x60 [SAR
1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.1.100 ffv1
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz,
stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc57.1.100 pcm_s16le
Output #1, sdl, to 'Dazzle output':
  Metadata:
    encoder         : Lavf57.0.100
    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576
[SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.1.100 rawvideo
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> pcm_s16le (native))
  Stream #1:0 -> #1:0 (rawvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Past duration 0.623589 too large0 size=    1684kB time=00:00:07.84
bitrate=1759.5kbits/s
[sdl @ 0x3af1e40] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 195 >= 195
Past duration 0.623741 too large
Past duration 0.623894 too large
Past duration 0.623863 too large
Past duration 0.625664 too large
Past duration 0.626015 too large
Past duration 0.626274 too large
Past duration 0.626747 too large
Past duration 0.624687 too large
Past duration 0.625069 too large0 size=    1776kB time=00:00:08.36
bitrate=1739.7kbits/s
Past duration 0.626442 too large
Past duration 0.627495 too large
Past duration 0.625618 too large
Past duration 0.625221 too large
Past duration 0.625923 too large
Past duration 0.625999 too large
Past duration 0.627495 too large
Past duration 0.627419 too large
Past duration 0.625999 too large
Past duration 0.628563 too large
Past duration 0.626274 too large
Past duration 0.626793 too large
Past duration 0.626900 too large0 size=    1886kB time=00:00:09.10
bitrate=1697.2kbits/s
Past duration 0.627968 too large
Past duration 0.627342 too large
Past duration 0.627571 too large
Past duration 0.628944 too large
Past duration 0.629448 too large
Past duration 0.628639 too large
Past duration 0.627922 too large
Past duration 0.628166 too large
Past duration 0.629860 too large
Past duration 0.628685 too large
Past duration 0.630791 too large
Past duration 0.628868 too large0 size=    2010kB time=00:00:09.71
bitrate=1695.3kbits/s
Past duration 0.629097 too large
Past duration 0.628975 too large
Past duration 0.629417 too large
Past duration 0.629585 too large
Past duration 0.629570 too large
Past duration 0.629646 too large
Past duration 0.631340 too large
Past duration 0.631889 too large
Past duration 0.630287 too large
Past duration 0.631966 too large
Past duration 0.630592 too large
Past duration 0.630760 too large
Past duration 0.632591 too large0 size=    2094kB time=00:00:09.79
bitrate=1750.9kbits/s
Past duration 0.630974 too large
Past duration 0.631294 too large
    Last message repeated 1 times
Past duration 0.631660 too large
Past duration 0.633400 too large
Past duration 0.631645 too large
Past duration 0.631813 too large
Past duration 0.632271 too large
Past duration 0.632317 too large
Past duration 0.632423 too large
Past duration 0.632744 too large
Past duration 0.632790 too large
Past duration 0.632835 too large0 size=    2205kB time=00:00:10.60
bitrate=1703.3kbits/s
Past duration 0.633110 too large
Past duration 0.633324 too large
Past duration 0.635048 too large
Past duration 0.635139 too large
Past duration 0.633842 too large
Past duration 0.633949 too large
Past duration 0.634041 too large
Past duration 0.634270 too large
Past duration 0.634422 too large
Past duration 0.634544 too large
    Last message repeated 1 times
Past duration 0.634743 too large
Past duration 0.636238 too large0 size=    2330kB time=00:00:11.21
bitrate=1702.4kbits/s
Past duration 0.634224 too large
Past duration 0.636742 too large
Past duration 0.636848 too large
Past duration 0.635323 too large
Past duration 0.635460 too large
Past duration 0.635750 too large
Past duration 0.635765 too large
Past duration 0.637520 too large
Past duration 0.637062 too large
Past duration 0.636223 too large
Past duration 0.834267 too large
Past duration 0.836266 too large0 size=    2413kB time=00:00:11.36
bitrate=1739.6kbits/s
Past duration 0.835670 too large
Past duration 0.834862 too large
Past duration 0.835167 too large
Past duration 0.835274 too large
Past duration 0.835442 too large
Past duration 0.837624 too large
Past duration 0.837791 too large
Past duration 0.835793 too large
    Last message repeated 1 times
Past duration 0.835625 too large
Past duration 0.836235 too large
Past duration 0.835991 too large
Past duration 0.836662 too large0 size=    2524kB time=00:00:11.79
bitrate=1752.4kbits/s
Past duration 0.838264 too large
Past duration 0.836800 too large
Past duration 0.837044 too large
Past duration 0.837212 too large
Past duration 0.837349 too large
Past duration 0.837410 too large
Past duration 0.839165 too large
Past duration 0.839439 too large
Past duration 0.837914 too large
Past duration 0.839760 too large
Past duration 0.838341 too large
    Last message repeated 1 times
Past duration 0.839592 too large0 size=    2649kB time=00:00:12.71
bitrate=1707.1kbits/s
Past duration 0.840294 too large
Past duration 0.839012 too large
Past duration 0.838814 too large
Past duration 0.841240 too large
Past duration 0.841347 too large
Past duration 0.841637 too large
Past duration 0.840462 too large
Past duration 0.839821 too large
Past duration 0.842186 too large
Past duration 0.840385 too large
Past duration 0.840172 too large
Past duration 0.840523 too large
Past duration 0.840569 too large0 size=    2731kB time=00:00:12.86
bitrate=1739.1kbits/s
Past duration 0.840874 too large
Past duration 0.842735 too large
Past duration 0.841148 too large
Past duration 0.843010 too large
Past duration 0.842918 too large
Past duration 0.843346 too large
Past duration 0.841499 too large
Past duration 0.841835 too large
Past duration 0.841972 too large
Past duration 0.843712 too large
Past duration 0.844170 too large
Past duration 0.842293 too large0 size=    2841kB time=00:00:13.60
bitrate=1710.7kbits/s
Past duration 0.844261 too large
Past duration 0.842812 too large
Past duration 0.842949 too large
Past duration 0.843086 too large
Past duration 0.844948 too large
Past duration 0.845268 too large
Past duration 0.845024 too large
Past duration 0.845772 too large
Past duration 0.843620 too large
Past duration 0.844017 too large
Past duration 0.843971 too large
Past duration 0.844398 too large
Past duration 0.845924 too large0 size=    2961kB time=00:00:13.84
bitrate=1751.9kbits/s
Past duration 0.844795 too large
Past duration 0.846687 too large
Past duration 0.846413 too large
Past duration 0.846794 too large
Past duration 0.845192 too large
Past duration 0.845497 too large
Past duration 0.845222 too large
Past duration 0.845695 too large
Past duration 0.845848 too large
Past duration 0.845741 too large
Past duration 0.846123 too large
Past duration 0.847969 too large
Past duration 0.848045 too large0 size=    3050kB time=00:00:14.36
bitrate=1739.4kbits/s
Past duration 0.846214 too large
Past duration 0.846611 too large
Past duration 0.846748 too large
Past duration 0.846794 too large
Past duration 0.846870 too large
Past duration 0.848412 too large
[sdl @ 0x3af1e40] Application provided invalid, non monotonically
increasing dts to muxer in stream 0: 616 >= 616
Past duration 0.678017 too large
Past duration 0.677773 too large
Past duration 0.678413 too large
Past duration 0.678413 too large0 size=    5279kB time=00:00:24.87
bitrate=1738.7kbits/s dup=0 drop=1
Past duration 0.678841 too large
Past duration 0.678947 too large
Past duration 0.679070 too large
Past duration 0.678810 too large
Past duration 0.680336 too large
Past duration 0.679436 too large
Past duration 0.679344 too large
Past duration 0.679848 too large
Past duration 0.679893 too large
Past duration 0.679985 too large
Past duration 0.680367 too large
Past duration 0.682121 too large
Past duration 0.680473 too large
Past duration 0.680489 too large
Past duration 0.681923 too large0 size=    5460kB time=00:00:25.79
bitrate=1733.7kbits/s dup=0 drop=1
Past duration 0.680565 too large
Past duration 0.682899 too large
Past duration 0.682945 too large
Past duration 0.683922 too large
Past duration 0.681740 too large
Past duration 0.683464 too large
Past duration 0.681496 too large
Past duration 0.681816 too large
Past duration 0.681969 too large
Past duration 0.682365 too large
Past duration 0.682671 too large
Past duration 0.684395 too large
Past duration 0.684715 too large0 size=    5585kB time=00:00:26.37
bitrate=1734.9kbits/s dup=0 drop=1
Past duration 0.682899 too large
Past duration 0.683189 too large
Past duration 0.683449 too large
Past duration 0.685265 too large
Past duration 0.683647 too large
Past duration 0.683922 too large
Past duration 0.684044 too large
Past duration 0.684242 too large
Past duration 0.685966 too large
Past duration 0.684547 too large
Past duration 0.686272 too large0 size=    5628kB time=00:00:26.74
bitrate=1724.0kbits/s dup=0 drop=1
Past duration 0.684898 too large
Past duration 0.684669 too large
Past duration 0.686043 too large
Past duration 0.686638 too large
Past duration 0.687050 too large
    Last message repeated 1 times
Past duration 0.687248 too large
Past duration 0.685936 too large
Past duration 0.686073 too large
Past duration 0.686287 too large
Past duration 0.687843 too large
Past duration 0.686485 too large
Past duration 0.686699 too large
Past duration 0.686913 too large0 size=    5779kB time=00:00:27.35
bitrate=1730.8kbits/s dup=0 drop=1
Past duration 0.686821 too large
Past duration 0.687141 too large
Past duration 0.687370 too large
Past duration 0.688835 too large
Past duration 0.689262 too large
Past duration 0.687340 too large
Past duration 0.689293 too large
Past duration 0.689522 too large
Past duration 0.689766 too large
Past duration 0.689964 too large
Past duration 0.688622 too large
Past duration 0.690269 too large
Past duration 0.690468 too large0 size=    5904kB time=00:00:27.79
bitrate=1740.0kbits/s dup=0 drop=1
Past duration 0.688911 too large
Past duration 0.690788 too large
Past duration 0.690712 too large
Past duration 0.691170 too large
Past duration 0.691139 too large
Past duration 0.689568 too large
Past duration 0.690895 too large
Past duration 0.689613 too large
Past duration 0.689796 too large
Past duration 0.691170 too large
Past duration 0.691872 too large
Past duration 0.691948 too large0 size=    5946kB time=00:00:28.24
bitrate=1724.5kbits/s dup=0 drop=1
Past duration 0.690392 too large
Past duration 0.889061 too large
Past duration 0.890175 too large
Past duration 0.888969 too large
Past duration 0.891548 too large
Past duration 0.890450 too large
Past duration 0.889763 too large
Past duration 0.891563 too large
Past duration 0.889763 too large
Past duration 0.891487 too large
Past duration 0.889961 too large
Past duration 0.890022 too large
Past duration 0.891945 too large0 size=    6098kB time=00:00:28.85
bitrate=1731.1kbits/s dup=0 drop=1
Past duration 0.891960 too large
Past duration 0.890663 too large
Past duration 0.890816 too large
Past duration 0.890862 too large
Past duration 0.893089 too large
Past duration 0.892616 too large
Past duration 0.891594 too large
Past duration 0.892494 too large
Past duration 0.893242 too large
Past duration 0.891899 too large
Past duration 0.893669 too large
Past duration 0.892067 too large
Past duration 0.894295 too large0 size=    6223kB time=00:00:29.37
bitrate=1735.4kbits/s dup=0 drop=1
Past duration 0.892616 too large
Past duration 0.892845 too large
Past duration 0.894646 too large
Past duration 0.894295 too large
Past duration 0.895241 too large
Past duration 0.895699 too large
Past duration 0.893517 too large
Past duration 0.895485 too large
Past duration 0.895744 too large
Past duration 0.894173 too large
Past duration 0.893715 too large
Past duration 0.894142 too large0 size=    6265kB time=00:00:29.74
bitrate=1725.2kbits/s dup=0 drop=1
Past duration 0.896095 too large
Past duration 0.896324 too large
Past duration 0.896843 too large
Past duration 0.894844 too large
Past duration 0.896736 too large
Past duration 0.895149 too large
Past duration 0.895424 too large
Past duration 0.895546 too large
Past duration 0.897362 too large
Past duration 0.895439 too large
Past duration 0.897514 too large
Past duration 0.896721 too large
Past duration 0.897942 too large
Past duration 0.898048 too large0 size=    6427kB time=00:00:30.35
bitrate=1734.3kbits/s dup=0 drop=1
Past duration 0.896690 too large
Past duration 0.897697 too large
Past duration 0.898537 too large
Past duration 0.899040 too large
Past duration 0.898918 too large
Past duration 0.899269 too large
Past duration 0.897774 too large
Past duration 0.899742 too large
Past duration 0.899696 too large
Past duration 0.898064 too large
Past duration 0.898323 too large
Past duration 0.900398 too large
Past duration 0.900017 too large0 size=    6544kB time=00:00:30.87
bitrate=1736.1kbits/s dup=0 drop=1
Past duration 0.898674 too large
Past duration 0.898720 too large
Past duration 0.900566 too large
Past duration 0.899239 too large
Past duration 0.900917 too large
Past duration 0.899437 too large
Past duration 0.898994 too large
Past duration 0.901314 too large
Past duration 0.899895 too large
Past duration 0.901711 too large
    Last message repeated 1 times
Past duration 0.901863 too large0 size=    6652kB time=00:00:31.61
bitrate=1723.6kbits/s dup=0 drop=1
Past duration 0.902016 too large
Past duration 0.900520 too large
Past duration 0.900673 too large
Past duration 0.900749 too large
Past duration 0.902672 too large
Past duration 0.901024 too large
Past duration 0.900963 too large
Past duration 0.901237 too large
Past duration 0.901436 too large
av_interleaved_write_frame(): Input/output errorB time=00:00:34.62
bitrate=1725.1kbits/s dup=0 drop=1
frame=  858 fps= 25 q=-0.0 Lq=-0.0 size=    7380kB time=00:00:34.62
bitrate=1746.4kbits/s dup=0 drop=1
video:697142kB audio:5999kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown
Conversion failed!



More information about the ffmpeg-user mailing list