Amost fed libavcodec with the frame in the past - wierd (LV)
Posted: 24 Apr 2007 09:27
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.
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.