Skip to main content
Known Participant
April 25, 2010
Question

Webcam frame rate, netStream frame rate, flv framerate

  • April 25, 2010
  • 1 reply
  • 2521 views

I'm recording Webcam to FMS 3.5 but when I play the recorded video from FMS it's choppy. I have set the camera.fps to 30 but when I trace out the currentFPS for camera it's variable and usually falls between 20 and 30. However when I play the recorded video, netStream's currentFPS returns a lower value, something closer to 10. So my question is, 1) why currentFPS of netStream is not the same as Camera's? 2) What's the actual frame rate of the recorded video (not the netStream, but FLV's)?

I've setup a test page which shows currentFPS of camera during recording as well as netStream's currentFPS during playing of recorded video from FMS:

http://www.saeidmohadjer.com/clients/mm/startersite/sample_webcam.php

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    April 27, 2010

    smohadjer wrote:

    I'm recording Webcam to FMS 3.5 but when I play the recorded video from FMS it's choppy. I have set the camera.fps to 30 but when I trace out the currentFPS for camera it's variable and usually falls between 20 and 30. However when I play the recorded video, netStream's currentFPS returns a lower value, something closer to 10. So my question is,

    1) why currentFPS of netStream is not the same as Camera's?

    [SE_0208] - It might be because of latency or some other reason that your frames are dropped and hence lower FPS is reported. To the first thing which you mention about camera settings, its not mandatory that when you set camera FPS to 30, you will get encoding rate of 30 FPS, it would depend upon data as well as your camera, some webcams don't support beyond certain FPS.

    2) What's the actual frame rate of the recorded video (not the netStream, but FLV's)?

    [SE_0208] - If you are talking about what is reported when metadata is triggered then answer is encoding setting which your publisher uses.

    I've setup a test page which shows currentFPS of camera during recording as well as netStream's currentFPS during playing of recorded video from FMS:

    http://www.saeidmohadjer.com/clients/mm/startersite/sample_webcam.php

    smohadjerAuthor
    Known Participant
    April 28, 2010

    But at the same time that I can't get a frame rate of higher than 15 in my webcam test page I see that Google's webcam page can record a much better result (most likely a 30 frame per second video) from my Webcam. Could it be that google's webcam upload page records the video locally and only when it's done uploads it to the server? Is such thing possible in AS3, that is recording video without streaming it to FMS so that no frames are dropped due to lack of enough bandwidth and then upload the video to a server when recording is complete?