10th May 2014, 19:57
|
#1
| Link
|
Registered User
Join Date: Aug 2003
Location: Germany
Posts: 174
|
FFmpeg - Error "negative cts, previous timestamps might be wrong"
Hallo,
i want to join some flv files but FFmpeg throws an error about wrong timestamps. That's correct since the files have some garbage at the beginning. The timestamps go something like this (1,2,3,4,10000,10001,10002,...).
How can i fix this?
Quote:
ffmpeg version N-61967-ge818ee0 Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 30 2014 22:01:46 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 70.100 / 52. 70.100
libavcodec 55. 55.106 / 55. 55.106
libavformat 55. 36.100 / 55. 36.100
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
[flv @ 04035e40] negative cts, previous timestamps might be wrong
Last message repeated 22 times
Input #0, flv, from '1.flv':
Metadata:
moovPosition : 40
avcprofile : 77
avclevel : 21
aacaot : 2
videoframerate : 25
audiochannels : 2
Duration: 02:03:47.58, start: 0.000000, bitrate: 138 kb/s
Stream #0:0: Video: h264 (Main), yuv420p(tv, smpte170m), 512x288, 25 tbr, 1k tbn, 2k tbc
Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp
Output #0, mp4, to '!output.mp4':
Metadata:
moovPosition : 40
avcprofile : 77
avclevel : 21
aacaot : 2
videoframerate : 25
audiochannels : 2
encoder : Lavf55.36.100
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 512x288, q=2-31, 16k tbn, 1k tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 047b5f60] pts (640) < dts (656) in stream 0
av_interleaved_write_frame(): Invalid argument
frame= 3 fps=0.0 q=-1.0 Lsize= 4kB time=00:00:00.09 bitrate= 333.4kbits/s
video:2kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 45.690628%
|
|
|
|