AS3 - How to save streaming video to an image sequence?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















When I am streaming a video (using RTMP) in my flash player (AS3) - the frames I see are colored [b]a bit [/b] differently than the frames in the original video !



I would like to somehow save the frames I am showing in my player to an image sequence,



so that I can examine it and understand the difference between each frame I was showing from the stream to the original frame in the original video.



How can this be achieved ? (the video is 5 minutes long, and has 25 frames-per-second).










share|improve this question




















  • 1





    If you don't have access to the FMS, then you'll need a third party screen grabber. If you have access to the FMS, you can adjust the settings to allow you to copy the bitmapData of the frames. What type of systems are you using.

    – Gone3d
    Nov 27 '12 at 22:15











  • I will be using FMS to stream the video, but currently I am simply loading it from the local hard-disk, and playing it in the player. I tried encoding the bitmapData because I have 120,000 frames in the video - so I can't save all the bitmaps to memory, because Flash limits me in memory size

    – John Miner
    Nov 28 '12 at 13:03













  • then just get a frame grab utility. I use SnapZPro on my mac - it will copy out what ever you want. There are plenty of other for PCs as well.

    – Gone3d
    Nov 28 '12 at 13:43











  • thnx for the tips. but I am afraid that a screen-grab utility will add a performance hit to the rendering of the flash. also - how do I know that the screen-grab utility won't change the colors because of some kind of compression it makes ? also - I have no way of knowing when frames have changed in the original video

    – John Miner
    Nov 29 '12 at 9:37


















0















When I am streaming a video (using RTMP) in my flash player (AS3) - the frames I see are colored [b]a bit [/b] differently than the frames in the original video !



I would like to somehow save the frames I am showing in my player to an image sequence,



so that I can examine it and understand the difference between each frame I was showing from the stream to the original frame in the original video.



How can this be achieved ? (the video is 5 minutes long, and has 25 frames-per-second).










share|improve this question




















  • 1





    If you don't have access to the FMS, then you'll need a third party screen grabber. If you have access to the FMS, you can adjust the settings to allow you to copy the bitmapData of the frames. What type of systems are you using.

    – Gone3d
    Nov 27 '12 at 22:15











  • I will be using FMS to stream the video, but currently I am simply loading it from the local hard-disk, and playing it in the player. I tried encoding the bitmapData because I have 120,000 frames in the video - so I can't save all the bitmaps to memory, because Flash limits me in memory size

    – John Miner
    Nov 28 '12 at 13:03













  • then just get a frame grab utility. I use SnapZPro on my mac - it will copy out what ever you want. There are plenty of other for PCs as well.

    – Gone3d
    Nov 28 '12 at 13:43











  • thnx for the tips. but I am afraid that a screen-grab utility will add a performance hit to the rendering of the flash. also - how do I know that the screen-grab utility won't change the colors because of some kind of compression it makes ? also - I have no way of knowing when frames have changed in the original video

    – John Miner
    Nov 29 '12 at 9:37














0












0








0








When I am streaming a video (using RTMP) in my flash player (AS3) - the frames I see are colored [b]a bit [/b] differently than the frames in the original video !



I would like to somehow save the frames I am showing in my player to an image sequence,



so that I can examine it and understand the difference between each frame I was showing from the stream to the original frame in the original video.



How can this be achieved ? (the video is 5 minutes long, and has 25 frames-per-second).










share|improve this question
















When I am streaming a video (using RTMP) in my flash player (AS3) - the frames I see are colored [b]a bit [/b] differently than the frames in the original video !



I would like to somehow save the frames I am showing in my player to an image sequence,



so that I can examine it and understand the difference between each frame I was showing from the stream to the original frame in the original video.



How can this be achieved ? (the video is 5 minutes long, and has 25 frames-per-second).







actionscript-3 flash streaming






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 5:36









Cœur

19.3k10116155




19.3k10116155










asked Nov 27 '12 at 21:27









John MinerJohn Miner

4731032




4731032








  • 1





    If you don't have access to the FMS, then you'll need a third party screen grabber. If you have access to the FMS, you can adjust the settings to allow you to copy the bitmapData of the frames. What type of systems are you using.

    – Gone3d
    Nov 27 '12 at 22:15











  • I will be using FMS to stream the video, but currently I am simply loading it from the local hard-disk, and playing it in the player. I tried encoding the bitmapData because I have 120,000 frames in the video - so I can't save all the bitmaps to memory, because Flash limits me in memory size

    – John Miner
    Nov 28 '12 at 13:03













  • then just get a frame grab utility. I use SnapZPro on my mac - it will copy out what ever you want. There are plenty of other for PCs as well.

    – Gone3d
    Nov 28 '12 at 13:43











  • thnx for the tips. but I am afraid that a screen-grab utility will add a performance hit to the rendering of the flash. also - how do I know that the screen-grab utility won't change the colors because of some kind of compression it makes ? also - I have no way of knowing when frames have changed in the original video

    – John Miner
    Nov 29 '12 at 9:37














  • 1





    If you don't have access to the FMS, then you'll need a third party screen grabber. If you have access to the FMS, you can adjust the settings to allow you to copy the bitmapData of the frames. What type of systems are you using.

    – Gone3d
    Nov 27 '12 at 22:15











  • I will be using FMS to stream the video, but currently I am simply loading it from the local hard-disk, and playing it in the player. I tried encoding the bitmapData because I have 120,000 frames in the video - so I can't save all the bitmaps to memory, because Flash limits me in memory size

    – John Miner
    Nov 28 '12 at 13:03













  • then just get a frame grab utility. I use SnapZPro on my mac - it will copy out what ever you want. There are plenty of other for PCs as well.

    – Gone3d
    Nov 28 '12 at 13:43











  • thnx for the tips. but I am afraid that a screen-grab utility will add a performance hit to the rendering of the flash. also - how do I know that the screen-grab utility won't change the colors because of some kind of compression it makes ? also - I have no way of knowing when frames have changed in the original video

    – John Miner
    Nov 29 '12 at 9:37








1




1





If you don't have access to the FMS, then you'll need a third party screen grabber. If you have access to the FMS, you can adjust the settings to allow you to copy the bitmapData of the frames. What type of systems are you using.

– Gone3d
Nov 27 '12 at 22:15





If you don't have access to the FMS, then you'll need a third party screen grabber. If you have access to the FMS, you can adjust the settings to allow you to copy the bitmapData of the frames. What type of systems are you using.

– Gone3d
Nov 27 '12 at 22:15













I will be using FMS to stream the video, but currently I am simply loading it from the local hard-disk, and playing it in the player. I tried encoding the bitmapData because I have 120,000 frames in the video - so I can't save all the bitmaps to memory, because Flash limits me in memory size

– John Miner
Nov 28 '12 at 13:03







I will be using FMS to stream the video, but currently I am simply loading it from the local hard-disk, and playing it in the player. I tried encoding the bitmapData because I have 120,000 frames in the video - so I can't save all the bitmaps to memory, because Flash limits me in memory size

– John Miner
Nov 28 '12 at 13:03















then just get a frame grab utility. I use SnapZPro on my mac - it will copy out what ever you want. There are plenty of other for PCs as well.

– Gone3d
Nov 28 '12 at 13:43





then just get a frame grab utility. I use SnapZPro on my mac - it will copy out what ever you want. There are plenty of other for PCs as well.

– Gone3d
Nov 28 '12 at 13:43













thnx for the tips. but I am afraid that a screen-grab utility will add a performance hit to the rendering of the flash. also - how do I know that the screen-grab utility won't change the colors because of some kind of compression it makes ? also - I have no way of knowing when frames have changed in the original video

– John Miner
Nov 29 '12 at 9:37





thnx for the tips. but I am afraid that a screen-grab utility will add a performance hit to the rendering of the flash. also - how do I know that the screen-grab utility won't change the colors because of some kind of compression it makes ? also - I have no way of knowing when frames have changed in the original video

– John Miner
Nov 29 '12 at 9:37












1 Answer
1






active

oldest

votes


















0














First you should set the following flags on the fms script, which allows you to access the streaming video or audio.



application.onConnect = function(client,....)
{
...
client.audioSampleAccess = "/";
client.videoSampleAccess = "/";

}


Secondly on the client side, you may use the BitMapData.draw method to capture the video from the VideoDisplayObject



    var snapshot:BitmapData = new BitmapData(video.width, video.height); 
snapshot.draw(videoDisplay);





share|improve this answer


























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f13593383%2fas3-how-to-save-streaming-video-to-an-image-sequence%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    First you should set the following flags on the fms script, which allows you to access the streaming video or audio.



    application.onConnect = function(client,....)
    {
    ...
    client.audioSampleAccess = "/";
    client.videoSampleAccess = "/";

    }


    Secondly on the client side, you may use the BitMapData.draw method to capture the video from the VideoDisplayObject



        var snapshot:BitmapData = new BitmapData(video.width, video.height); 
    snapshot.draw(videoDisplay);





    share|improve this answer






























      0














      First you should set the following flags on the fms script, which allows you to access the streaming video or audio.



      application.onConnect = function(client,....)
      {
      ...
      client.audioSampleAccess = "/";
      client.videoSampleAccess = "/";

      }


      Secondly on the client side, you may use the BitMapData.draw method to capture the video from the VideoDisplayObject



          var snapshot:BitmapData = new BitmapData(video.width, video.height); 
      snapshot.draw(videoDisplay);





      share|improve this answer




























        0












        0








        0







        First you should set the following flags on the fms script, which allows you to access the streaming video or audio.



        application.onConnect = function(client,....)
        {
        ...
        client.audioSampleAccess = "/";
        client.videoSampleAccess = "/";

        }


        Secondly on the client side, you may use the BitMapData.draw method to capture the video from the VideoDisplayObject



            var snapshot:BitmapData = new BitmapData(video.width, video.height); 
        snapshot.draw(videoDisplay);





        share|improve this answer















        First you should set the following flags on the fms script, which allows you to access the streaming video or audio.



        application.onConnect = function(client,....)
        {
        ...
        client.audioSampleAccess = "/";
        client.videoSampleAccess = "/";

        }


        Secondly on the client side, you may use the BitMapData.draw method to capture the video from the VideoDisplayObject



            var snapshot:BitmapData = new BitmapData(video.width, video.height); 
        snapshot.draw(videoDisplay);






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 8 '14 at 7:23









        chiwangc

        3,068112031




        3,068112031










        answered Dec 8 '14 at 6:32









        Ramesh GunthaRamesh Guntha

        11




        11
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f13593383%2fas3-how-to-save-streaming-video-to-an-image-sequence%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to pass form data using jquery Ajax to insert data in database?

            National Museum of Racing and Hall of Fame

            Guess what letter conforming each word