PHP File conveter for mpg, mpeg, avi, mov to FLV

Discussion in 'PHP' started by xd2, Sep 26, 2007.

  1. #1
    Does anybody know of a php script or can anybody write one that will do this live so the following would happen.

    Website user uploads video:
    Code saves original:
    Code makes a copy and converts to FLV:
    Code saves.

    As a bonus a script that can also take a snap shot of the video and save as an image would be great.

    If anyone can do this or knows of one please reply here, PM me, or add me to msn: .
     
    xd2, Sep 26, 2007 IP
  2. sky22

    sky22 Guest

    Messages:
    59
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think if you installed ffmpeg you would be able to get PHP to send it the right parameters to convert a video. It would be a very simple script but without ffmpeg or some similar software installed on the server I don't think it would be possible to do.

    If you have ffmpeg on your server the example on this page: http://www.onlamp.com/pub/a/php/2007/05/24/creating-mytube-with-flex-and-php.html will propable do most of what you want.

    Sky22
     
    sky22, Sep 26, 2007 IP
  3. xd2

    xd2 Peon

    Messages:
    694
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks I have been seeing alot about ffmpeg, just it is going on a script for distribution and I won't know who will have it installed or not :-\

    I will just use different file types and different video player until flash brings out better video support.

    Thanks for your reply though.
     
    xd2, Sep 26, 2007 IP
  4. sky22

    sky22 Guest

    Messages:
    59
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yea that's the annoying thing about scripts for distribution.

    One thing I have seen done with a script like that which you could do was the developer had ffmpeg installed on there server and when a video was uploaded if the users server didn't have ffmpeg then the video was sent to the developers server and converted and sent back.

    It would fix the problem but I think the bandwidth would be huge so unless you charged people without ffmpeg it wouldn't be worth it.

    Sky22 :)
     
    sky22, Sep 26, 2007 IP
  5. Flask

    Flask Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Flask, Oct 2, 2007 IP