[FFmpeg-devel] Regarding "error, non monotone timestamps"

Yadnesh Phadke yadnesh
Mon Jul 19 14:11:44 CEST 2010


Hi All,

I am new to ffmpeg but have been experimenting with FFMpeg features for some
time now.  I am using FFMpeg, *SVN-r24078*.  I have MPEG-2 TS media that I
am trying to stream the contained A/V over RTP.  It always fails with the
following or similar error:

                                                     "*error, non monotone
timestamps 50 >= 50*"

*This issue is not seen in the if I use code from "ffmpeg-0.6.tar.bz2"* I
had downloaded on 17June2010.  Is this issue resolved now?  Is there any
workaround for the issue?


Another issue I see is that even though I am using global_header flag I get
the error "AAC with no global headers is currently not supported".  This
error is not seen if I use "-acodec aac".  But then I have to use "-strict
-experimental" as I am not using libfaac.  Is there any issue with using
"copy"?  If  I explicitly specify the codec even though I do not expect
conversion, will FFMpeg decode and then again encode audio stream from the
input?

I referred the command from "
http://www.mail-archive.com/libav-user at mplayerhq.hu/msg00839.html"
Here is the complete output:
==================================================================================
yadnesh at ubuntu:~/svn_ffmpeg/ffmpeg$ ./ffmpeg -re -i ~/Media/fileSequence0.ts
-vcodec copy -an -f rtp rtp://127.0.0.1:10000 -vn -ac 2 -ar 44100 -flags
+global_header -acodec copy -f rtp rtp://127.0.0.1:20000 -newaudio
FFmpeg version SVN-r24078, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul 19 2010 12:59:23 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
  configuration: --enable-shared --disable-static --disable-mmx
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3
  WARNING: library configuration mismatch
  libavutil   configuration: --enable-shared --disable-static
--disable-optimizations --disable-mmx --disable-stripping --enable-debug
--disable-yasm
  libavcodec  configuration: --enable-shared --disable-static
--disable-optimizations --disable-mmx --disable-stripping --enable-debug
--disable-yasm
  libavfilter configuration: --enable-shared --disable-static
--disable-optimizations --disable-mmx --disable-stripping --enable-debug
--disable-yasm
  libswscale  configuration: --enable-shared --disable-static
--disable-optimizations --disable-mmx --disable-stripping --enable-debug
--disable-yasm
  libavutil     50.20. 0 / 50.20. 0
  libavcodec    52.79. 1 / 52.79. 1
  libavformat   52.73. 0 / 52.73. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.20. 1 /  1.20. 1
  libswscale     0.11. 0 /  0.11. 0
[mpegts @ 0x807b510] max_analyze_duration reached

Seems stream 1 codec frame rate differs from container frame rate: 180000.00
(180000/1) -> 14.99 (15000/1001)
Input #0, mpegts, from '/home/yadnesh/Media/fileSequence0.ts':
  Duration: 00:00:09.94, start: 10.000000, bitrate: 201 kb/s
  Program 1
    Stream #0.0[0x101]: Audio: aac, 22050 Hz, mono, s16, 25 kb/s
    Stream #0.1[0x102]: Video: h264, yuv420p, 192x144, 14.99 tbr, 90k tbn,
180k tbc
Output #0, rtp, to 'rtp://127.0.0.1:10000':
  Metadata:
    encoder         : Lavf52.73.0
    Stream #0.0: Video: [27][0][0][0] / 0x001B, yuv420p, 192x144, q=2-31,
90k tbn, 90k tbc
Output #1, rtp, to 'rtp://127.0.0.1:20000':
  Metadata:
    encoder         : Lavf52.73.0
    Stream #1.0: Audio: aac, 22050 Hz, mono, 25 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #1.0
[NULL @ 0x80831b0] *AAC with no global headers is currently not supported*.
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 52.73.0
m=video 10000 RTP/AVP 96
c=IN IP4 127.0.0.1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;
sprop-parameter-sets=J0LgC6kYYJ2ANQYBBrbCte98BA==,KN4JiA==
m=audio 20000 RTP/AVP 97
c=IN IP4 127.0.0.1
b=AS:25

Press [q] to stop encoding
*[rtp @ 0x807e690] st:0 YDP error, non monotone timestamps 50 >= 50.2kbits/s
*
*av_interleaved_write_frame(): Operation not permitted*
==================================================================================

Regards,
Yadnesh

-- 

----------------------------------------------------------------------
Christopher Morley - There is only one success - to be able to spend your
life in your own way.



More information about the ffmpeg-devel mailing list