Skip to main content
April 4, 2010
Question

Have a script grab a picture from a live stream and save it as a JPG file?

  • April 4, 2010
  • 1 reply
  • 1115 views

Hi all

Does anyone know how to get a script of some kind to grab a picture from a live stream and save it as a JPG file?

In this way a cron job can tricker the script and thereby grab a picture fx every 10'th minute and the picture can be shown on a website so people that are not attending can have a look into what is happening in the live stream.

Kind regards,

Jens

    This topic has been closed for replies.

    1 reply

    calmchessplayer
    Inspiring
    April 4, 2010

    grabbing a snapshot of a live stream is best done through the client side  the module you need is called jpg_encoder private message me your email and i'll send you a copy.

    calmchessplayer
    Inspiring
    April 4, 2010

    btw it requires php on the webserver in order to caputre the jpg

    calmchessplayer
    Inspiring
    April 4, 2010

    something else i've done in the past is to record a stream for 1 second and then convert the .flv with ffmpeg into a .jpg.....if you start the record serverside wich i suggest you do you can specify the maximum duration for the recording to 1 second...........................streamName.record("record",1);