Generating video files?

Discussion in 'PHP' started by kc3, Feb 2, 2009.

  1. #1
    How can you say, take a set of JPGs and convert it into a movie file with PHP? I'm not too picky on the format but something like avi would be preferred, I assume there'd be a way to do this but do you guys know of any?
     
    kc3, Feb 2, 2009 IP
  2. absurdtrivia

    absurdtrivia Peon

    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There's no functions in php to do want you want directly. However, you can use the exec() or system() commands to execute an external program to do the conversion for you.

    You should look at both mencoder and ffmpeg as I think either one can turn jpegs into avi's
     
    absurdtrivia, Feb 2, 2009 IP
  3. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #3
    I agree with above, video encoding is a complex procedure, I don't think php alone can handle it. Yes, either mencoder or ffmpeg can do the job, you will need vps or dedicated server for this.
     
    Kaizoku, Feb 3, 2009 IP
  4. kc3

    kc3 Peon

    Messages:
    857
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for letting me know :D I'll look more into it
     
    kc3, Feb 21, 2009 IP
  5. Dennis M.

    Dennis M. Active Member

    Messages:
    119
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Get ffmpeg and using exec("ffmpeg etc etc"); Provided that you're on a *nix system.

    Regards,
    Dennis M.
     
    Dennis M., Feb 21, 2009 IP