Webcam frame rate, netStream frame rate, flv framerate

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

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

Similar Messages

  • Bad webcam frame rate

    I had this problem with my PC and hoped it would go away with the Mac, but it hasn't so any suggestions would be welcome. If I use MSN/Yahoo/Whatever to do a video chat with my mates, I receive their webcam pictures nice and smooth, but outgoing I seem to be sending about 1 frame per second. I'm on 1 meg broadband, and things like uploading emails seem to be plenty fast enough, so I'm a little confused. I'm using a wireless connection to a Netgear DG834 router if it makes any difference.
    Matt.

    One thing that always helps with wireless connections is:
    1. Go to System Preferences > Network
    2. Choose "Network Port Configurations" from "Show" pull-down menu
    3. Drag AirPort to the top of the list (make sure it stays checked)
    4. Click "Apply Now"
    After doing this, try quitting & relaunching iChat (or whatever application you're using). If that doesn't help you could just test with a wired connection and see if it's any better. Chances are if you had the issue with your PC and you had the same internet connection, that's probably the cause.
    good luck

  • Media Encoder CS5: First frame in flv is wrong

    Hi,
    I am a total beginner!
    Client wants an .flv.
    The movie I drop into the Media Encoder is being encoded just fine.
    But: The first frame of the .flv is not the first frame of the movie but just black.
    What's wrong ?
    Thanks a lot for any pointers.
    chris

    Hello
    I have got the same problem here. I have just changed my HDDs to the following set up to the following
    C : Seagate Momentus XT 500GB (2.5" 7200rpm)
    D : Areca Raid Controller 1110 (3 x seagate momentus 7200rpm 2.5" Raid 0) Media Files
    E/F :TB32 Raid Controller ( 2 x Seagate 3.5" 7200RPM hdd Raid 0 Partitioned) Stock footage, Media Cache and Exports
    I converted my two bay workstation to  4 2.5" HDDs
    The sequence I am currently exporting is 23 minutes long and is Matrox HDV 50i, with Matrox colour correction, Magic Bullet Looks and Adobe Auto contrast. This export is taking forever and it has just rendered a sixth of the sequence for 2 hours 27 minutes and indicates that 11 hours 23 minutes remains to render. CPU is not maxed out never had such awful long renders before with my previous setting which had only two logic HDDs.
    This was my previous HDD set up
    C : Bios Raid 0 (Western Digital Caviar Green 3.5" 7200 x 2 partitioned into C & D)
    E/F :TB32 Raid Controller ( 2 x Seagate 3.5" 7200RPM hdd Raid 0 Partitioned) Stock footage, Media Cache and Exports
    So currently I am not sure whether I have gone for the better or I have just worsened. I have just exported some clips with after effects and the CPU was maxed out without any sluggish perfomance.
    SYSTEM
    HP XW6600 Win 7 Pro 64 bit
    Dual Xeon 5450 3ghz (8 virtual cores)
    32 GB RAM
    GTX 285 2GB GPU
    Matrox RT X2
    Areca 1110
    I have got lots of jobs coming up and perfomance has become of paramount importance. Here is a picture of the perfomance with HD tune.

  • Finding the total time or total frames for FLV?

    Is there some properties box somewhere that will tell me the
    total number of frames or total time for an FLV? I can see the time
    after I encode the files, but that information doesn't seem to
    stick around.
    Thanks.

    You can see the time length of an FLV clip in your Library by
    right clicking the file name and chosing Properties from the menu.
    Hope that helps!

  • NetStream problem for FLV HELP!!!

    Hi everyone,
    I'm building a client server appliction using flash: the
    client app is a projector that connects to a server and loads some
    sfw files from that server. One of these files is used to play
    videos...
    When I test this file locally it works: I run it on my
    computer and it fetches the videos on the server.
    The problem occurs when I load it through the projector; the
    projector is run from my computer, it then loads the mentionned swf
    from the server which in turn loads the videos from the server. So
    the swf and the videos both come from the server...
    I did a little debugging and I think it has something to do
    with the netconnection not being setup properly:
    this.m_oConnection_nc.connect(null);
    seems to be at fault and I'm wondering if I should put the
    domain name as an argument...
    Basically the _videoStatus function never gets callled so i
    assume the NetStream object is not instaciated...
    This is the class used by the swf that plays the video:

    Yeah about that... the security issue is a bit obscur to me
    so I do need to read all those.... but one thing that has me
    confused is if I load the swf residing on my server that plays flv
    from the same server, in a projector that is onmy computer (still
    following?) do I give a relative path for the flv or an absolute (
    http://....)? Also how should I set the
    security policy for my flv local or network?

  • Stop FLV from playing upon leaving frame.

    Maybe someone has some insite on this before I open an artery. I have a timeline, seperated into sections. The navigation targets frame labels. On one of those keyframes there is a flv. When you play that video and then navigate to another frame without stopping the video, it continues to play. I've tried giving it an instance name and adding a stop action to it that resides in the button functions so when it navigtaes to another frame it would stop. However, when  I click on any button and the movie is not currently playing, I  get a error message that reads TypeError: Error #1009: Cannot access a property or method of a null object reference. I assume it is looking for something that is not currently there. It has been suggested that I use the SoundMixer.stopAll() but that removes any background music currently playing.
    Do I need some kind of conditional statement that detects if the flv is currently playing?
    Can FLV be controlled with a simple instancename.stop() ?
    Dazed and confused

    use that instance name (eg, flv) and in the frame where flv exists, use:
    flv.addEventListener(Event.REMOVED_FROM STAGE,f);
    function f(e:Event):void{
    flv.stop();

  • Maximum frame bytes in 15 fps Flash 8 movie

    I have a Flash 8 movie, with several motion tweens that take
    the average frame size from 200 bytes up to 1000 at about halfway
    thru my movie. What is the max acceptable when designing movies at
    15 fps? And is there a way around this that won't cause delays in
    downloading?
    thanks.

    "David Stiller" <[email protected]> wrote in
    message
    news:es1cjd$h6p$[email protected]..
    > Steve,
    >
    >> I need to combine multiple source videos into a
    single
    >> Flash video file. Trouble is those source videos
    don't
    >> all have the same frame rate. For instance in one
    piece,
    >> the source frame rate is 13 fps, and in another it
    is 30 fps.
    >
    > Aha. Actually, not to worry. :) Dynamically loaded FLV
    framerates
    > are independent of the SWF's framerate. So leave those
    FLVs outside the
    > SWF and load them in -- you'll be set. (See the "Working
    with Images,
    > Sound, and Video" > "About using FLV video" topic
    under the "Learning
    > ActionScript 2.0 in Flash" doc.)
    I'm soprry, I should have been more explicit. I am importing
    to Flash 8, but
    I have to publish as Flash 6 so it's not flv files I am
    creating, so thus
    not dynamically loaded flv. These files are being presented
    inside an
    Authorware file so Flash 6 is a must ... I cannot use the
    Flash AX control,
    I have to use the internal Flash suppor provided by
    Authorware.
    >
    >> Is there a 'best practice' method for combining
    these
    >> videos in Flash and retaining the best possible
    quality?
    >
    > Do you mean compression-/bitrate-wise? If so, that's one
    of those
    > "more an art than a science" things. But framerate won't
    make a
    > difference.
    No, compression is less of an issue for me ... I have a
    handle on that black
    art. It's just the reconciliation of multiple frame rates I
    need to get to
    the bottom of :-)
    Steve
    EuroTAAC eLearning 2007
    http://www.eurotaac.com
    Adobe Community Expert: Authorware, Flash Mobile and Devices
    My blog -
    http://stevehoward.blogspot.com/

  • Why does my iChat video only run at one frame per second?

    When I connect to anyone on iChat my video runs at only about one frame per second. When others connect to me their video is much faster. This hasn't been a problem in the past - even with other Internet apps running when I'm using iChat. Could this be a problem with my ISP? Is there something I should do?

    Hi Gary45,
    In AIM 5.9 the PC can set the Video quality rate.
    Start a chat.
    The PC end clicks on the rear tab of the Video chat.
    This brings their own preview to the front.
    To the right there is anow a small iCon.
    Click on this.
    This brings up a slider.
    Slide the slider to the Left.
    If this is done to an iChat Buddy and they have the Connection Doctor open from the Video menu, they will see the Bit rate and Framerate go up. The consequence is that as the video Quality goes down the data that makes up the pic goes down allowing for better refresh rates and a smoother video.
    Do you mean this only happens between you and him and not between him and his son ?
    Or do you mean it happens between you and him and not his son and you ?
    If it is happening between you and other people aslo check out this FAQ http://discussions.apple.com/thread.jspa?threadID=278760
    9:19 PM Tuesday; July 25, 2006

  • Using AS3 to play a set of frames I want and then stop

    Hi everyone:
    I am helping a friend with a project. I have a button that
    when clicked on, it enlarges and shows content inside the button.
    Now, there is more content inside this button that when clicked on,
    enlarges and shows more content. I have all that working fine.
    How can I create a "back" button that will play the same
    frames that I created my animation in, but play them in reverse to
    get the same animation but back. Is this the correct way of doing
    it, or do I need to create animated transitions for the reverse
    state as well.?
    Rafael.

    hi.
    i found this while preparing to start coding a new site. I
    used placeholder movieclips until I received all the final assets.
    this code worked great when I had shorter test movieclips.
    Now I have a 75 frame, embedded .flv that I would like it to
    reverse and it chugs badly. The project is set to 30fps to match
    the animation (embedded .flv).
    I've encoded it at 1500kbps, which I know is ridiculous, but
    they're highly texturized 3d animations. and they play fine going
    forward, so I don't know why they shouldn't in reverse. Any
    thoughts on how to increase the efficiency?
    thanks for your help

  • WebCam Instant - Horrible framerate

    Hi
    I just had a look around the forums and noticed there are quite a few threads regarding problems with the WebCam Instant model. Anyhow, my problem isn't as severe as most of those, for the moment anyway..
    I'm experiencing some really horrible framerates, ranging from 9 to 20, primarily in the lower region. This goes for both the WebCam center and MSN Messenger. On top of that, the capturing seems to freeze every 5 or 6 seconds, which lasts about half a second. As you can imagine, this is getting quite frustrating. I just reformatted my harddri've and reinstalled windows, hoping that would fix my problem, but alas - it did not.
    I was hoping this new camera would provide a significant upgrade to my webcam photographing quality and video shooting, but my old cam which I bought for barely a dime and a nickle honestly performed way better than my WebCam Instant is currently doing.
    Does anyone know what the problem might be? Help would be greatly appreciated.

    Hi,
    I bougth the creative webcam Instant with a small microphone package yesterday. The microphone is very great. Its sound is very clear and loud, but my friend told that she heard very loud noise. It causes from the microphone because when I removed it, the noise was disappear. Moreover, like erique87's case, the framerate of the webcam is horrible. I used it with yahoo messenger. It is not freeze, but it is not smooth. Its framerate from yahoo is about 0.7 fps.
    My friend's webcam is logitech. It shows higher framerate about 1.8 fps.
    I would like to know that how I can adjust the framerate. I don't need the higher quality. I prefer smooth picture. I change the quality in the yahoo messenger option to the fast speed, but nothing changed. Please let me know. [email protected]
    Thanks.

  • Create a video (flv) portfolio

    I'm trying to create a video portfolio on my website and
    video demo CD. All of my Flash menus, pages, etc are complete. I'm
    using Flash 8 and have already edited and compressed all of my
    video samples into swf linked flv files. (Please excuse any
    terminology confusion, I typically work in Director.)
    In Flash, I'd like to know the script or behavior to use that
    will enable the user to click on a still image (button) or text in
    my portfolio which will then launch the associated video clip (flv
    or swf) to play. And also to close it afterwards. It seems like
    there should be an easy script or behavior for this, and there may
    be, but all that Actionscript stuff makes it seem more complicated.
    I've also heard something about "classes" and that they are more
    like behaviors in Director than Flash behaviors. Perhaps there is
    one already packaged I can use.
    Any help is much appreciated.

    Easy? Only if you've done it multiple times. Here is what you
    can do (one of many methods). Drag the FLVcomponent to the stage,
    give it an instance name of vid.
    Button Script (change path for each button):
    on(release){
    vid.ContentPath = "flv-file-name.flv" //the video you want to
    play
    Script for frame with FLV component to find when movie ends:
    var vidList : Object = new Object();
    vidList.complete = function() {
    gotoAndStop("frame name"); //your desired action
    vid.addEventListener ("complete",vidList);
    stop();
    That code will listen for the movie to end then do whatever
    you put into the function. I commented the function so you can see
    what to change.

  • Multiple FLVs loaded properly

    Ok,
    On my main timeline i have some buttons. When you click a button you are diverted to the a frame label on the main timeline.
    When the timeline stops at say frame 2 an flv is loaded into an empty movie clip on the main stage.  If you click on button 2, same thing. So in total I have about four FLV's that play when a button is pushed. If i keep clicking my buttons to test the smoothness of my flv's, after about three clicks from navigating between my frames/loaded flvs, my entire main movie becomes slower.
    Each FLV is about 5mb.
    Below is the code that gets initated when I click my button and am taken to that frame. My question is this, if i'm jumping between FLV's at every button click is the FLV that played first still playing and causing the entire main movie to slow down? Is there a better way to manage this? Do I have to unload the movie being played when i click? I'm trying to see if there an more efficient way to have smooth streaming from my flv. The flv that is getting initated is simply looping when it's done and servers a 'moving background'.
    is there something else i can implement into my code that will keep my loaded flv's playing smoothly? Thanks,
    this is the code on the main timeline that loads my external swf that will load the FLV
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("theexternal.swf");
    myLoader.load(url);
    This is the code that resides in the external SWF that will initiate the FLV.
    import fl.video.*;
    function onFLVComplete(event:VideoEvent):void {
          event.target.play();
    swl.addEventListener(VideoEvent.COMPLETE, onFLVComplete);

    ok,
    so you are saying that the "unloadAndStop() is a Loader method" should be placed on the main timeline where my button is pointed to instead of inside the button?
    example.
    my button that points to frame 2 of the main timeline will also load the flv. Frame 2 in my main timeline simply has a stop(); action
    How does the code look if i want to unload the physical movie that i created called 'night_mov'

  • My external webcam wont work in IE10 but works fine on chrome

    The only clue I've got is that on testmycam in IE10 the external webcam FPS rate is -1 (and the screen is blank) and the same site in Chrome the same cam FPS rate is 30 (and it's working ok)

    IE uses ActiveX plugin for Flash, Chrome (and all other browsers) use a different plugin for Flash. You should right-click on the Flash object in IE and verify that it has permission to use the camera and any other relevant settings.

  • Webcam capture & save as JPEG image

    Hi,
    I'm creating an application to capture image via webcam using directshow. I've managed to capture the stream using samplegrabber.
    the problem is when I save the grabbed image to a JPEG, the colors are incorrect.
    provided the link of the captured image from the webcam http://www.filefreak.com/pfiles/44160/test2.jpg
    the right hand side of the image should be brown colored, not blue as in the picture.
    I've also test to save as a bmp image, the color are ok.
    this is how i save the grabbed webcam frame into a jpeg file
    sampleGrabber->GetCurrentBuffer(&bufferSize, (long*)frameBuffer); 
    //save into jpeg 
    struct jpeg_compress_struct cinfo; 
    struct jpeg_error_mgr jerr; 
    JSAMPLE * image_buffer=NULL; 
    FILE * outfile;      
    JSAMPROW row_pointer[1];     
    int row_stride;  
    cinfo.err = jpeg_std_error(&jerr); 
    jpeg_create_compress(&cinfo); 
    if ((outfile = fopen("test2.jpg", "wb")) == NULL) { 
            fprintf(stderr, "can't open %s\n", "test2.jpg"); 
        return; 
    image_buffer = (unsigned char*)frameBuffer; 
    jpeg_stdio_dest(&cinfo, outfile); 
    cinfo.image_width = videoWidth;      
    cinfo.image_height = videoHeight; 
    cinfo.input_components = 3;      
    cinfo.in_color_space = JCS_RGB;      
    jpeg_set_defaults(&cinfo); 
    jpeg_set_quality(&cinfo, 255, TRUE ); 
    jpeg_start_compress(&cinfo, TRUE); 
    row_stride = videoWidth * 3;     
    while (cinfo.next_scanline < cinfo.image_height) { 
        row_pointer[0] = & image_buffer[cinfo.next_scanline * row_stride]; 
        (void) jpeg_write_scanlines(&cinfo, row_pointer, 1); 
    jpeg_finish_compress(&cinfo); 
    fclose(outfile); 
    jpeg_destroy_compress(&cinfo); 
    //end save jpeg 
    Thanks.
    Regards

    Hi,
    Thanks
    for participating on the MSDN Forum! I think your question is mainly related
    with DirectX, but not Visual C++ Language. Thus, I suggest you post your
    question on the microsoft.public.win32.programmer.directx.video newsgroup, there you find DirectX experts and your
    question should be answered in no time.
    The people there will have enough experience with DirectX to give you the best
    advice or answer!
    http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.win32.programmer.directx.video&lang=en&cr=US
    Thanks! Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • All I need from this sweet .flv to play.

    Hi,
    I have placed a .flv in the application on its first frame
    <means when the application loads, the first frame of .flv is
    showing>. I made its autoPlay to false. I want when I click on
    this .flv it starts playing in the same view. I dont want any other
    window to open just simple playing the movie on a click.
    Any idea???
    This is my code.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" backgroundColor="#ffffff"
    backgroundGradientAlphas="[1.0, 1.0]"
    backgroundGradientColors="[#000000, #000000]">
    <mx:Script>
    <![CDATA[
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    import flash.events.Event;
    public function launch1(event:MouseEvent):void
    myVid.addEventListener(MouseEvent.CLICK, playMovie);
    public function playMovie():void
    myVid.play();
    ]]>
    </mx:Script>
    <mx:VideoDisplay id="myVid" height="270" width="290"
    source="MachineDefrag.flv"
    autoPlay="false" buttonMode="true" useHandCursor="true"
    click="launch1(event)"/>
    </mx:Application>

    The following code should work. When you specify the "click"
    event in the VideoDisplay tag, you don't need to add an event
    listener manually.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" backgroundColor="#ffffff"
    backgroundGradientAlphas="[1.0, 1.0]"
    backgroundGradientColors="[#000000, #000000]">
    <mx:Script>
    <![CDATA[
    public function launch1():void {
    myVid.play();
    ]]>
    </mx:Script>
    <mx:VideoDisplay id="myVid" height="270" width="290"
    source="MachineDefrag.flv"
    autoPlay="false" buttonMode="true" useHandCursor="true"
    click="launch1()"/>
    </mx:Application>

Maybe you are looking for

  • I::001 Only available with the RFC library from 4.0C onwa

    Hello all! I'm using SAP .NET Connector for integration between .NET application and SAP System. When I try to work with standard document bapi methods like  BAPI_DOCUMENT_CHECKIN or BAPI_DOCUMENT_CHECKOUTVIEW, I get an error in out RETURN parameter

  • Camera and photo booth is disappeared

    Camera and photo booth is disappeared

  • Looking for the best hard drive digital camcorder!!

    I was in the store today and asked a couple sales reps, each giving me their opinions that personally didn't sound like "educated" opinions.  I want a hard drive camcorder with 60 GB and that is the "best" meeting that criteria.  Should I look at Can

  • Manual Deployment (Very Urgent)

    Hi, What is manual Deployment, Why do we use Manual deployment. I guess manual deployment is done after automatic deployment. What are the prerequisites for performing manual deployment. How is it different from automatic Pull/ Push deployment?? Plea

  • Urxvt File tree view?

    scrotwm by jasonwryan, on Flickr The part where it says --[Archer]                                     |                                      ----------archshot , How do you get urxvt to look like that? I cant find how to implement it to look like a