[Ffmpeg-devel] Problem with ffserver. Stream stops almost immediately.

Pranav Desai pranavdesai
Fri Feb 3 01:59:54 CET 2006


Hi All,

I just update my source and seems to be running into problem while
streaming.
The stream server seems to stop serving only after a few seconds. The ffmpeg
is still writing to the feed, so there doesnt seem to any problem there.
Also if writing to file, the output is fine. So ffserver might be cutting it
short or something.

This is command I used.
./ffmpeg -i /video/test.mpg http://127.0.0.1:8090/feed.ffm

OUTPUT
------------
[root at pd ffmpeg]# ./ffmpeg -i /video/test.mpg http://127.0.0.1:8090/feed.ffm
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-mp3lame --enable-faad --enable-faac
--disable-strip --enable-gpl --disable-v4l2
  libavutil version: 49.0.0
  libavcodec version: 51.1.0
  libavformat version: 50.0.0
  built on Feb  2 2006 15:03:33, gcc: 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
Input #0, mpeg, from '/video/test.mpg':
  Duration: 02:29:56.5, start: 0.333678, bitrate: 5190 kb/s
  Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p, 480x480,
6000 kb/s
  Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
127.0.0.1 - - [Thu Feb  2 16:53:04 2006] "GET /feed.ffm HTTP/1.0" 200 4165
127.0.0.1 - - [Thu Feb  2 16:53:04 2006] "GET /feed.ffm HTTP/1.0" 200 4165
Output #0, ffm, to 'http://127.0.0.1:8090/feed.ffm':
  Stream #0.0: Audio: mp2, 22050 Hz, stereo, 32 kb/s
  Stream #0.1, 25.00 fps(c): Video: mpeg1video, yuv420p, 352x288, q=3-31,
200 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
[mpeg1video @ 0x837ce10]removing common factors from framerate
Press [q] to stop encoding
[mpeg1video @ 0x837ce10]rc buffer underflow
[mpeg1video @ 0x837ce10]rc buffer underflow
error, non monotone timestamps 1138928070115512 >= 1138928070096102
buffer underflow
buffer underflow.0 size=    2444kB time=84.5 bitrate= 236.8kbits/s
buffer underflow
error, non monotone timestamps 1138928071435512 >= 1138928071402202
buffer underflow
buffer underflow
....
buffer underflow
buffer underflow
66.43.108.130 - - [Thu Feb  2 16:53:40 2006] "GET /live.mpg HTTP/1.0" 200
145471
frame=10520 q=7.1 Lsize=   12108kB time=420.4 bitrate= 236.0kbits/s
video:10268kB audio:1642kB global headers:0kB muxing overhead 1.661293%
127.0.0.1 - - [Thu Feb  2 16:55:43 2006] "POST /feed.ffm HTTP/1.0" 200
12398592

The ffserver output was stdout, so you can also see the requests made by
fmpeg and the user. As you can see the GET /live.mpg ended at 145471 bytes
whereas ffmpeg wrote about 12MB to the feed.
There are also a bunch of bufer underflow and error: non monotone timestamp.

I am using mplayer at the client end.

I would appreciate any help. Let me know if you would like more information.

Thanks
-Pranav




More information about the ffmpeg-devel mailing list