PHP gurus ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qw12er
    Confirmed User
    • Apr 2004
    • 799

    #1

    PHP gurus ...

    I want to save a screenshot of a swf movie using PHP. Is there any way I can do this ?
    I have nothing to advertise ... yet.
  • biskoppen
    Confirmed User
    • Mar 2003
    • 5809

    #2
    I'd say there is no direct way of doing it... you probably need to install some software on the server which you can send commands from PHP
    Submit my videos to make bank, tons of 5 minute videos offered right here

    Comment

    • HomerSimpson
      Too lazy to set a custom title
      • Sep 2005
      • 13826

      #3
      you will probably need ffmpeg installed

      here's a link you might use
      http://www.phpbuilder.com/board/arch...-10327812.html

      PS: is the video FLV or SWF?
      Make a bank with Chaturbate - the best selling webcam program
      Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

      PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

      Comment

      • qw12er
        Confirmed User
        • Apr 2004
        • 799

        #4
        Can be both. Does it make a difference ?
        I have nothing to advertise ... yet.

        Comment

        • bashbug
          Confirmed User
          • Oct 2005
          • 929

          #5
          Code:
          <?php
          $movie = new ffmpeg_movie("video.flv", false);
          $framenum = 15;
          $frame = $movie->getFrame($framenum);
          $im = $frame->toGDImage();
          imagejpeg($im, "test.jpg");
          imagedestroy($im);
          print '<img src="test.jpg"/><br/>';
          ?>
          you will need to have ffmpeg-php4 or ffmpeg-php5 installed.

          Comment

          • Hansm
            Confirmed User
            • Jun 2002
            • 871

            #6
            Only PHP Programmers who are starting are using for every thing a extension, alot hosts are not going to install php-ffmpeg. so save yourself alot of work and use ffmpeg direct with the shell_exec function.

            using a extension for something so easy is ridicoules anyway.



            Originally posted by bashbug
            Code:
            <?php
            $movie = new ffmpeg_movie("video.flv", false);
            $framenum = 15;
            $frame = $movie->getFrame($framenum);
            $im = $frame->toGDImage();
            imagejpeg($im, "test.jpg");
            imagedestroy($im);
            print '<img src="test.jpg"/><br/>';
            ?>
            you will need to have ffmpeg-php4 or ffmpeg-php5 installed.

            Comment

            • Hansm
              Confirmed User
              • Jun 2002
              • 871

              #7
              FLV screenshot can be easy extracted. SWF is harder. As long as i know ffmpeg can not do this but not 100&#37; sure about it, never tried.

              only worked with movie files myself and ffmpeg.

              Comment

              Working...