[FFmpeg-user] DTS Out of Order / DTS & PTS Invalid Dropping

ryan.vincent29 at gmail.com ryan.vincent29 at gmail.com
Thu Oct 30 18:27:07 CET 2014


Hello FFmpeg-users,


I am struggling to get the concat demuxer working on FFMPEG Version 4.2.4. 

I am attempting to combine multiple image files into a video by using the
command:

ffmpeg -f concat -i myFile.txt output.mp4


I get an output file from the command, but the total time is much shorter
than the time I specify in the file. I am fairly sure it has something to do
with these:

[concat @ 0x3517c20] DTS -230575710986727 < -9214782102262 out of order
DTS -221360928884465, next:40000 st:0 invalid dropping
PTS -221360928884465, next:40000 invalid dropping st:0
DTS -221360928884389, next:80000 st:0 invalid dropping
PTS -221360928884389, next:80000 invalid dropping st:0


*Does anyone have any idea what I can do to get this working?


Contents of myFile.txt:

file 'image0.png'
duration 2.018
file 'image1.png'
duration 3.018
file 'image2.png'
duration 4.018


Version Information for FFMPEG:

ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 10 2014 15:15:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample
--disable-debug --enable-nonfree --enable-gpl --enable-version3
--enable-x11grab --enable-libpulse --enable-libopencore-amrnb
--enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb
--enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis
--enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex
--enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid
libavutil      54.  7.100 / 54.  7.100
libavcodec     56.  1.100 / 56.  1.100
libavformat    56.  4.101 / 56.  4.101
libavdevice    56.  0.100 / 56.  0.100
libavfilter     5.  1.100 /  5.  1.100
libavresample   2.  1.  0 /  2.  1.  0
libswscale      3.  0.100 /  3.  0.100
libswresample   1.  1.100 /  1.  1.100
libpostproc    53.  0.100 / 53.  0.100



Output from ffmpeg upon running the command:

ffmpeg version 2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct 10 2014 15:15:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample
--disable-debug --enable-nonfree --enable-gpl --enable-version3
--enable-x11grab --enable-libpulse --enable-libopencore-amrnb
--enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb
--enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis
--enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex
--enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, concat, from 'myFile.txt':
  Duration: 00:00:09.05, start: 775903366.480000, bitrate: 0 kb/s
    Stream #0:0: Video: png, rgba, 1500x1000, 25 tbr, 25 tbn, 25 tbc
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x35240e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x35240e0] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
[libx264 @ 0x35240e0] 264 - core 142 r2431 ac76440 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=4 threads=1 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf56.4.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p,
1500x1000, q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.1.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[concat @ 0x3517c20] DTS -230575710986727 < -9214782102262 out of order
DTS -221360928884465, next:40000 st:0 invalid dropping
PTS -221360928884465, next:40000 invalid dropping st:0
DTS -221360928884389, next:80000 st:0 invalid dropping
PTS -221360928884389, next:80000 invalid dropping st:0
frame=    3 fps=0.0 q=28.0 Lsize=      27kB time=00:00:00.04
bitrate=5587.6kbits/s    
video:26kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 3.225568%
[libx264 @ 0x35240e0] frame I:1     Avg QP:14.32  size: 13024
[libx264 @ 0x35240e0] frame P:1     Avg QP:16.34  size:   246
[libx264 @ 0x35240e0] frame B:1     Avg QP:18.24  size: 13107
[libx264 @ 0x35240e0] consecutive B-frames: 33.3% 66.7%  0.0%  0.0%
[libx264 @ 0x35240e0] mb I  I16..4: 73.4% 19.5%  7.1%
[libx264 @ 0x35240e0] mb P  I16..4:  0.1%  0.1%  0.0%  P16..4:  1.7%  0.1% 
0.0%  0.0%  0.0%    skip:98.0%
[libx264 @ 0x35240e0] mb B  I16..4:  9.5%  6.3%  6.8%  B16..8:  4.8%  0.5% 
0.0%  direct: 0.1%  skip:72.0%  L0:20.7% L1:79.0% BI: 0.3%
[libx264 @ 0x35240e0] 8x8 transform intra:21.1% inter:70.4%
[libx264 @ 0x35240e0] coded y,u,v intra: 10.0% 5.9% 3.9% inter: 0.5% 0.5%
0.5%
[libx264 @ 0x35240e0] i16 v,h,dc,p: 86% 12%  1%  1%
[libx264 @ 0x35240e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 12% 55%  1%  1%  1% 
1%  1%  1%
[libx264 @ 0x35240e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 27% 10%  3%  4%  4% 
4%  3%  3%
[libx264 @ 0x35240e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x35240e0] kb/s:1758.47


Any help would be much appreciated.


Ryan Vincent



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/DTS-Out-of-Order-DTS-PTS-Invalid-Dropping-tp4667944.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list