Skip to main content
Dec 9, 2010 3:46 PM UTC
Question

How to get a snapshot of the first frame inside application.onPublish?

Hi there!

application.onPublish = function (client, p_stream)
{    

    //How to get a snapshot of the first frame and save it to a specified directory?

    //Or post the snapshot image to a specified URI for restoring?

}

Anyone knows how to do this ?

Regards!

    This topic is closed to new replies. Start a new post to keep the conversation going.

    4 replies

    calmchessplayer
    Inspiring
    Dec 9, 2010 4:03 PM UTC

    This can be accomplished 2 ways that i know of ffmpeg and PHP with the php way flash takes a snapshot of the videoframe and then sends it PHP to be saved as a jpeg....with the ffmpeg way you simply batch process the entire directory holding the flv wich is external to flash although this can also be automated using PHP........I can send you a package containing both methods but installation will be up to you.............unless you wanted to pay me to help. I'm busy and can't do probono work right now.

    Translate
    Dec 11, 2010 3:57 AM UTC

    The main difficulty is how to extract byteArray from the Stream instance, can you provide some reference on this topic?

    Sorry I can't pay you for the moment...

    ,

    ,

    Translate
    calmchessplayer
    Inspiring
    Dec 12, 2010 8:36 PM UTC

    well to get a snapshot you get the bytearray form the video object and send it to PHP for processing there is no  known way to extract it from the stream that i am aware of other than using ffmpeg to capture a frame........good luck on your quest....let me know if you ever solve this puzzle I'd love to use what you find.

    Translate