Opened 5 years ago

Closed 5 years ago

#8137 closed defect (invalid)

"Non-monotonous DTS in output stream" message and broken file when copying from h264/mp4 to mp4

Reported by: fireattack Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mov edts regression
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

Download the sample file and:

ffmpeg started on 2019-09-13 at 18:04:09
Report written to "ffmpeg-20190913-180409.log"
Log level: 48
Command line:
ffmpeg -i test.mp4 -c copy -report out.mp4
ffmpeg version N-94892-g0993327939 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.1.1 (GCC) 20190807
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 35.100 / 56. 35.100
  libavcodec     58. 56.101 / 58. 56.101
  libavformat    58. 32.104 / 58. 32.104
  libavdevice    58.  9.100 / 58.  9.100
  libavfilter     7. 58.102 /  7. 58.102
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument 'test.mp4'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option 'out.mp4' ... matched as output url.
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.
Parsing a group of options: input url test.mp4.
Successfully parsed a group of options.
Opening an input file: test.mp4.
[NULL @ 000002151de5a380] Opening 'test.mp4' for reading
[file @ 000002151de5b480] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] ISO: File Type Major Brand: iso6
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Processing st: 0, edit list 0 - media time: 1024, duration: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 0 ctts: 1024, ctts_index: 0, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 1024 @ 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 512 ctts: 2560, ctts_index: 1, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 3072 @ 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 1024 ctts: 1024, ctts_index: 2, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 2048 @ 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 1536 ctts: 0, ctts_index: 3, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 1536 @ 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 2048 ctts: 512, ctts_index: 4, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 2560 @ 4
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 2560 ctts: 2560, ctts_index: 5, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 5120 @ 5
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 3072 ctts: 1024, ctts_index: 6, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 4096 @ 6
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 3584 ctts: 0, ctts_index: 7, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 3584 @ 7
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 4096 ctts: 512, ctts_index: 8, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 4608 @ 8
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 4608 ctts: 2560, ctts_index: 9, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 7168 @ 9
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 5120 ctts: 1024, ctts_index: 10, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 6144 @ 10
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 5632 ctts: 0, ctts_index: 11, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 5632 @ 11
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 6144 ctts: 512, ctts_index: 12, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 6656 @ 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 6656 ctts: 2560, ctts_index: 13, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 9216 @ 13
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 7168 ctts: 1024, ctts_index: 14, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 8192 @ 14
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 7680 ctts: 0, ctts_index: 15, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 7680 @ 15
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 8192 ctts: 512, ctts_index: 16, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 8704 @ 16
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 8704 ctts: 2560, ctts_index: 17, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 11264 @ 17
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 9216 ctts: 1024, ctts_index: 18, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 10240 @ 18
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 9728 ctts: 0, ctts_index: 19, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 9728 @ 19
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 10240 ctts: 512, ctts_index: 20, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 10752 @ 20
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 10752 ctts: 2560, ctts_index: 21, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 13312 @ 21
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 11264 ctts: 1024, ctts_index: 22, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 12288 @ 22
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 11776 ctts: 0, ctts_index: 23, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 11776 @ 23
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 12288 ctts: 512, ctts_index: 24, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 12800 @ 24
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 12800 ctts: 2560, ctts_index: 25, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 15360 @ 25
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 13312 ctts: 1024, ctts_index: 26, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 14336 @ 26
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 13824 ctts: 0, ctts_index: 27, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 13824 @ 27
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 14336 ctts: 512, ctts_index: 28, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 14848 @ 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 14848 ctts: 2560, ctts_index: 29, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 17408 @ 29
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 15360 ctts: 1024, ctts_index: 30, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 16384 @ 30
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 15872 ctts: 0, ctts_index: 31, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 15872 @ 31
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 16384 ctts: 512, ctts_index: 32, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 16896 @ 32
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 16896 ctts: 2560, ctts_index: 33, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 19456 @ 33
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 17408 ctts: 1024, ctts_index: 34, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 18432 @ 34
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 17920 ctts: 0, ctts_index: 35, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 17920 @ 35
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 18432 ctts: 512, ctts_index: 36, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 18944 @ 36
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 18944 ctts: 2560, ctts_index: 37, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 21504 @ 37
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 19456 ctts: 1024, ctts_index: 38, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 20480 @ 38
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 19968 ctts: 0, ctts_index: 39, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 19968 @ 39
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 20480 ctts: 512, ctts_index: 40, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 20992 @ 40
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 20992 ctts: 2560, ctts_index: 41, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 23552 @ 41
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 21504 ctts: 1024, ctts_index: 42, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 22528 @ 42
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 22016 ctts: 0, ctts_index: 43, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 22016 @ 43
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 22528 ctts: 512, ctts_index: 44, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 23040 @ 44
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 23040 ctts: 2560, ctts_index: 45, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 25600 @ 45
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 23552 ctts: 1024, ctts_index: 46, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 24576 @ 46
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 24064 ctts: 0, ctts_index: 47, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 24064 @ 47
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 24576 ctts: 512, ctts_index: 48, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 25088 @ 48
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 25088 ctts: 2560, ctts_index: 49, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 27648 @ 49
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 25600 ctts: 1024, ctts_index: 50, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 26624 @ 50
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 26112 ctts: 0, ctts_index: 51, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 26112 @ 51
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 26624 ctts: 512, ctts_index: 52, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 27136 @ 52
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 27136 ctts: 2560, ctts_index: 53, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 29696 @ 53
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 27648 ctts: 1024, ctts_index: 54, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 28672 @ 54
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 28160 ctts: 0, ctts_index: 55, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 28160 @ 55
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 28672 ctts: 512, ctts_index: 56, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 29184 @ 56
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 29184 ctts: 2048, ctts_index: 57, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 31232 @ 57
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 29696 ctts: 512, ctts_index: 58, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 30208 @ 58
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 30208 ctts: 512, ctts_index: 59, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 30720 @ 59
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] stts: 30720 ctts: 1024, ctts_index: 60, ctts_count: 377
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 31744 @ 60
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Setting codecpar->delay to 16 for stream st: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Processing st: 1, edit list 0 - media time: 2048, duration: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 0 @ 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] drop a frame at curr_cts: 1024 @ 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Before avformat_find_stream_info() pos: 7758 bytes read:32768 seeks:0 nb_streams:2
[h264 @ 000002151de6c580] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 000002151de6c580] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 000002151de6c580] nal_unit_type: 6(SEI), nal_ref_idc: 0
[h264 @ 000002151de6c580] nal_unit_type: 5(IDR), nal_ref_idc: 3
[h264 @ 000002151de6c580] Format yuv420p chosen by get_format().
[h264 @ 000002151de6c580] Reinit context to 480x480, pix_fmt: yuv420p
[h264 @ 000002151de6c580] no picture 
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000002151de6c580] no picture 
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 2 with DTS 0, packet 3 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 3 with DTS 0, packet 4 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 4 with DTS 0, packet 5 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 5 with DTS 0, packet 6 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 6 with DTS 0, packet 7 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 7 with DTS 0, packet 8 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 8 with DTS 0, packet 9 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 9 with DTS 0, packet 10 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 10 with DTS 0, packet 11 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 11 with DTS 0, packet 12 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 12 with DTS 0, packet 13 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 13 with DTS 0, packet 14 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 14 with DTS 0, packet 15 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[h264 @ 000002151de6c580] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 15 with DTS 0, packet 16 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 16 with DTS 0, packet 17 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 17 with DTS 0, packet 18 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 18 with DTS 0, packet 19 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 19 with DTS 0, packet 20 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 20 with DTS 0, packet 21 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 21 with DTS 0, packet 22 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 22 with DTS 0, packet 23 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 23 with DTS 0, packet 24 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 24 with DTS 0, packet 25 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 25 with DTS 0, packet 26 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 26 with DTS 0, packet 27 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 27 with DTS 0, packet 28 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 28 with DTS 0, packet 29 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 29 with DTS 0, packet 30 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 30 with DTS 0, packet 31 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 31 with DTS 0, packet 32 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 32 with DTS 0, packet 33 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 33 with DTS 0, packet 34 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 34 with DTS 0, packet 35 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 35 with DTS 0, packet 36 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 36 with DTS 0, packet 37 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 37 with DTS 0, packet 38 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 38 with DTS 0, packet 39 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 39 with DTS 0, packet 40 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 40 with DTS 0, packet 41 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 41 with DTS 0, packet 42 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 42 with DTS 0, packet 43 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 43 with DTS 0, packet 44 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 44 with DTS 0, packet 45 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 45 with DTS 0, packet 46 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 46 with DTS 0, packet 47 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 47 with DTS 0, packet 48 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 48 with DTS 0, packet 49 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 49 with DTS 0, packet 50 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 50 with DTS 0, packet 51 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 51 with DTS 0, packet 52 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 52 with DTS 0, packet 53 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 53 with DTS 0, packet 54 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 54 with DTS 0, packet 55 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 55 with DTS 0, packet 56 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 56 with DTS 0, packet 57 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 57 with DTS 0, packet 58 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] Non-increasing DTS in stream 0: packet 58 with DTS 0, packet 59 with DTS 0
[h264 @ 000002151de6c580] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] demuxer injecting skip 2048 / discard 0
[aac @ 000002151de62a40] skip 2048 / discard 0 samples due to side data
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 000002151de5a380] After avformat_find_stream_info() pos: 219316 bytes read:229376 seeks:0 frames:61
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : iso6
    minor_version   : 1
    compatible_brands: mp42iso6avc1isom
    creation_time   : 2019-09-12T02:20:22.000000Z
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
    Stream #0:0(und), 60, 1/15360: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 480x480 [SAR 1:1 DAR 1:1], 1237 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Stream #0:1(und), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Successfully opened the file.
Parsing a group of options: output url out.mp4.
Applying option c (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: out.mp4.
[file @ 000002151e8e5a00] Setting default whitelist 'file,crypto'
Successfully opened the file.
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand     : iso6
    minor_version   : 1
    compatible_brands: mp42iso6avc1isom
    encoder         : Lavf58.32.104
    Stream #0:0(und), 0, 1/15360: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 480x480 [SAR 1:1 DAR 1:1], q=2-31, 1237 kb/s, 30 fps, 30 tbr, 15360 tbn, 15360 tbc (default)
    Stream #0:1(und), 0, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 1, current: 0; changing to 2. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 2, current: 0; changing to 3. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 3, current: 0; changing to 4. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 4, current: 0; changing to 5. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 5, current: 0; changing to 6. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 6, current: 0; changing to 7. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 7, current: 0; changing to 8. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 8, current: 0; changing to 9. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 9, current: 0; changing to 10. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 10, current: 0; changing to 11. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 11, current: 0; changing to 12. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 12, current: 0; changing to 13. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 13, current: 0; changing to 14. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 14, current: 0; changing to 15. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 15, current: 0; changing to 16. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 16, current: 0; changing to 17. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 17, current: 0; changing to 18. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 18, current: 0; changing to 19. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 19, current: 0; changing to 20. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 20, current: 0; changing to 21. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 21, current: 0; changing to 22. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 22, current: 0; changing to 23. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 23, current: 0; changing to 24. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 24, current: 0; changing to 25. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 25, current: 0; changing to 26. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 26, current: 0; changing to 27. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 27, current: 0; changing to 28. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 28, current: 0; changing to 29. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 29, current: 0; changing to 30. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 30, current: 0; changing to 31. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 31, current: 0; changing to 32. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 32, current: 0; changing to 33. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 33, current: 0; changing to 34. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 34, current: 0; changing to 35. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 35, current: 0; changing to 36. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 36, current: 0; changing to 37. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 37, current: 0; changing to 38. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 38, current: 0; changing to 39. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 39, current: 0; changing to 40. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 40, current: 0; changing to 41. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 41, current: 0; changing to 42. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 42, current: 0; changing to 43. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 43, current: 0; changing to 44. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 44, current: 0; changing to 45. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 45, current: 0; changing to 46. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 46, current: 0; changing to 47. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 47, current: 0; changing to 48. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 48, current: 0; changing to 49. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 49, current: 0; changing to 50. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 50, current: 0; changing to 51. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 51, current: 0; changing to 52. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 52, current: 0; changing to 53. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 53, current: 0; changing to 54. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 54, current: 0; changing to 55. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 55, current: 0; changing to 56. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 56, current: 0; changing to 57. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 57, current: 0; changing to 58. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 58, current: 0; changing to 59. This may result in incorrect timestamps in the output file.
cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:1; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[mp4 @ 000002151de5b5c0] Non-monotonous DTS in output stream 0:0; previous: 59, current: 0; changing to 60. This may result in incorrect timestamps in the output file.
No more output streams to write to, finishing.
frame=   61 fps=0.0 q=-1.0 Lsize=     242kB time=00:00:00.00 bitrate=499483.3kbits/s speed=0.063x    
video:239kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.882972%
Input file #0 (test.mp4):
  Input stream #0:0 (video): 61 packets read (245079 bytes); 
  Input stream #0:1 (audio): 2 packets read (682 bytes); 
  Total: 63 packets (245761 bytes) demuxed
Output file #0 (out.mp4):
  Output stream #0:0 (video): 61 packets muxed (245079 bytes); 
  Output stream #0:1 (audio): 2 packets muxed (682 bytes); 
  Total: 63 packets (245761 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 000002151e8fe0c0] Statistics: 2 seeks, 4 writeouts
[AVIOContext @ 000002151de63700] Statistics: 263246 bytes read, 1 seeks

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (1)

test.mp4 (2.1 MB ) - added by fireattack 5 years ago.

Change History (6)

by fireattack, 5 years ago

Attachment: test.mp4 added

comment:1 by fireattack, 5 years ago

The original file definitely has some issues in timestamp, but it plays fine in all the players I tested. The output, on the other hand, doesn't. It will just play a split of seconds.

The problem also happens when remuxing to ts, mkv, or avi. (Interestingly, no "Non-monotonous DTS in output stream" spamming when converting to mkv).

Transcoding it (simply removing -c copy) also resulted in broken file.

comment:2 by Carl Eugen Hoyos, 5 years ago

Component: undeterminedavformat
Keywords: mov edst regression added
Priority: normalimportant
Version: unspecifiedgit-master

Probably a duplicate.

comment:3 by Carl Eugen Hoyos, 5 years ago

Keywords: edts added; edst removed

in reply to:  1 comment:4 by Jun Li, 5 years ago

Replying to fireattack:
confirmed, adding "-ignore_editlist 1" works

This mp4 has a strange edit list that, only one entry, with duration of 0, which is telling the player to render nothing.

Although VLC and window media player plays well, I think they just simply ignore the edit list. From this perspective, I think ffmpeg is doing the right thing.

The original file definitely has some issues in timestamp, but it plays fine in all the players I tested. The output, on the other hand, doesn't. It will just play a split of seconds.

The problem also happens when remuxing to ts, mkv, or avi. (Interestingly, no "Non-monotonous DTS in output stream" spamming when converting to mkv).

Transcoding it (simply removing -c copy) also resulted in broken file.

comment:5 by fireattack, 5 years ago

Resolution: invalid
Status: newclosed

Ah, never heard of that and it explains it.

Thanks.

Note: See TracTickets for help on using tickets.