Entry

tip : ffmpeg-php and getFrame()

here’s a quick lesson i learned the hard way. when ever you call getFrame($frame) from ffmpeg-php make sure your frame is greater than 0.
took me a bit to figure out that my loop was calling getFrame with $frame being 0.

Share and Enjoy:

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Google
  • Technorati
  • Slashdot
  • LinkedIn
  • E-mail this story to a friend!

here’s a quick lesson i learned the hard way. when ever you call getFrame($frame) from ffmpeg-php make sure your frame is greater than 0.

took me a bit to figure out that my loop was calling getFrame with $frame being 0.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Google
  • Technorati
  • Slashdot
  • LinkedIn
  • E-mail this story to a friend!

4 Comments

  1. September 15, 2007 at 1:52 pm | Permalink

    Does $frame stand for the actual frame within the movie? Originally I was under the impression that doing getFrame(10) would get me a frame from 10 seconds into the movie, but I was definitely wrong.

  2. September 16, 2007 at 11:01 pm | Permalink

    Pardon, the delay in answering.

    Yes,getFrame take the frame , not the time. Which is why getFrame(0) won’t work

  3. Stanley
    September 17, 2007 at 8:48 am | Permalink

    Ah. So essentially what you needed was getFrame(1)

  4. September 18, 2007 at 1:13 pm | Permalink

    this will probably help :
    http://elsid.net/2007/09/05/code-poc-ffmpeg-and-ffmpeg-php-flv-conversion-system/

    It’s a demo ffmpeg / ffmpeg-php video thumbnailer / convertor

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*