Page 1 of 1

Amost fed libavcodec with the frame in the past - wierd (LV)

Posted: 24 Apr 2007 09:27
by Speed666
Hi,
I've had problems with VLC encoding to WMV2 from mms. About 1 hour after start i started recving famous "almost fed libavcodec with the frame in the past". The stream stopped and vlc crashed.

Then i looked in encoder.c and found this message. I discovered that the function return NULL when such problem exists. I modified source to not return NULL but return a same value when problem wasn't appearing.

Then recompiled VLC with these modification and - VLC still says about "almost fed libavcodec" but - the stream is fine. VLC doesn't crash and even when the source stream goes offline or has other problems, it restarts without any problems. I don't know why is this happening but when i looked in the logs, i found that the current and last values in error message are far from each other. So they wouldn't have come to get current higher than the frame in the past. Maybe problems with counters?

I don't know - but my problem is fixed and i'm very happy. Cheers.

Btw. As i said - VlC takes AXIS 213 MPEG4 RTSP Stream and converts to WMV2. You can see live stream from this camera and VLC situated in city in Poland by visiting http://www.webcamera.pl.

Posted: 25 Apr 2007 07:44
by Speed666
I've investigated some wierd info in libavcodec error.

Code: Select all

[00000672] ffmpeg encoder warning: almost fed libavcodec with a frame in the past (current: 1177479767680083, last: 1178053541365044) [00000672] ffmpeg encoder warning: almost fed libavcodec with a frame in the past (current: 1177479767760083, last: 1178053541365044) [00000672] ffmpeg encoder warning: almost fed libavcodec with a frame in the past (current: 1177479767840083, last: 1178053541365044) [00000672] ffmpeg encoder warning: almost fed libavcodec with a frame in the past (current: 1177479767920083, last: 1178053541365044) [00000672] ffmpeg encoder warning: almost fed libavcodec with a frame in the past (current: 1177479768000083, last: 11780
Why there is a big gap between current and last? Should be not more than 100-200 frames?