PDA

View Full Version : Buffer continually climbs in live stream


Brandon Rohde
02-14-2010, 05:36 AM
Hi everyone,

I am using FMS3.5 and uploading my stream with FME3.5. In my video player, I am setting the buffer to 3 seconds. However, after a couple minutes, the buffer will climb to 10 seconds, and after an hour its about 30 seconds. For a live stream, this is totally unacceptable because we are syncing this with live scoring data for races which is always right on time. When viewers are seeing the race finish 30 seconds after they see who wins on the scoring sheet, it obviously isn't good :)

A couple notes:

1) When I click STOP and PLAY in my video player, it goes right back to being on time. In FME, I have the "auto-adjust" checked so it will drop frames if my upload internet connection slows down, but I am not getting anything in the logs saying that it is dropping frames (it will put that in the log if it happens)

2) I found this when Googleing, and it seems to make sense. I just need to know how to fix it if this is correct:

============================
If there is always enough bandwidth: bufferlength stays small (no need to buffer?)
if there is always not enough bandwidth: bufferlength stays small (not enough data to buffer?)

now comes the interesting part:

if there is a drop in availabe bandwidth: flash uses up the remaining bufferlength

then, the full bandwith comes available again: flash makes bufferlength much bigger than before (probalby to cater for the next drop in bandwidth?) -> then the buffer stays that high and does not decrease anymore...

This might be beneficial in some scenarios, but it defenitely is not for ours, where every half-second counts...
===================

Can I somehow limit the maximum bufferlength, or could I do something that the buffer then becomes smaller again?

Thanks a ton in advance,
Brandon