flashactionscript-3apache-flexrtmfpadobe-cirrus

How to set the keyframe interval for RTMFP streams?


I use RTMFP with NetGroup and Adobe Cirrus. Broadcasting settings are 320x240 with 5 fps.

However, in some cases it takes a long time for the webcam stream to appear (10-20 seconds, even if having a 1:1 connection). If the stream appears eventually, it looks like this:

RTMFP webcam quality

I think this comes from a high keyframe interval and the subscribers needs to wait for the next keyframe, so that the stream appears properly. This happens in contrast to streaming servers, where the server caches the last keyframes from the publisher stream.

My question is how I am able to tune the broadcasting, e.g. set the keyframe interval and other settings. Can you recommend a good setup? And, why is this issue not popular (I haven't found much information about it)?

Thanks, Valentin


Solution

  • RTMFP is a peer-2-peer protocol, so eventually there will be video distortion(the scrshot you attached) in the beginining and also when there is a lot of activity(more frames) on the webcam.

    You can't set the quality or the bandwidth option , as RTMFP is purely p2p.

    If you are looking for these parameters go for RTMP.