[Ffmpeg-devel] error, non monotone timestamps

yi li liyi.dev
Sat Apr 28 09:35:10 CEST 2007


I tried to do video streaming using SVN trunk ffserver and ffmpeg on a
Blackfin board. I use ffmepg to capture video streams from a camera sensor:

Here is the output:
root:~> ffmpeg -f video4linux -s cif -r 15 -i /dev/video0 -an
FFmpeg version SVN-r8802, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --arch=bfin --cpu=bfin --cross-compile
--cross-prefix=bfin-linux-uclibc- --target-os=linux --cc=gcc --enable-static
--enable-gpl --enable-gpl --enable-pp --enable-swscaler --enable-vhook
--disable-strip --disable-v4l2
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Apr 28 2007 14:17:32, gcc: 4.1.1 (ADI 07R1)
v4l: colour=61544 hue=0 brightness=0 constrast=279 whiteness=48878
Input #0, video4linux, from '/dev/video0':
  Duration: N/A, bitrate: 24330 kb/s
  Stream #0.0: Video: rawvideo, rgb565, 352x288, 24330 kb/s, 15.00 fps(r)
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Stream #0.0: Video: mpeg4, yuv420p, 352x288, q=3-31, 256 kb/s, 15.00fps(c)
Stream mapping:
  Stream #0.0 -> #0.0
[mpeg4 @ 0x120b170]removing common factors from framerate
Press [q] to stop encoding
[mpeg4 @ 0x120b170]rc buffer underflow
frame=27391 fps= 15 q=2.0 Lsize=   23852kB time=1826.1 bitrate= 107.0kbits/s
video:1535kB audio:0kB global headers:0kB muxing overhead 1454.338022%

However, when the ffserver running for a few minutes, it will give "non
monotone timestamps" error:

root:~> ffserver -f /usr/ffserver.conf
ffserver started. - - [Thu Jan  1 00:52:56 1970] "GET /feed1.ffm HTTP/1.1" 200 4165 - - [Thu Jan  1 00:52:56 1970] "GET /feed1.ffm HTTP/1.1" 200 4165 - - [Thu Jan  1 00:53:44 1970] "GET /test.mpg HTTP/1.1" 200
error, non monotone timestamps 3445591663 >= 0 st:0

I will have to remove /tmp/feed1.ffm and restart ffserver to make it work
I've searched the list but cannot find any info. I am trying to debug, could
anyone give some hints?

Here is my ffserver.conf (snipped):
(BTW, the "test.mpg" stream definition looks wierd (using "Format
mpeg1video") , but that is the only way I can make it stream out MPEG4 video
stream ;) )

Port 8090
MaxClients 1000
MaxBandwidth 20000
CustomLog -

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 5M
ACL allow

<Stream test.mpg>
Feed feed1.ffm
Format mpeg1video
VideoCodec mpeg4
VideoFrameRate 15
VideoBitRate 256
VideoSize cif
VideoBufferSize 40
VideoGopSize 12
#VideoQMin 25


More information about the ffmpeg-devel mailing list