Looking for script/software that will accept Video Uploads from users & snapshot?

Discussion in 'Programming' started by tlshaheen, Apr 26, 2010.

  1. #1
    I am looking for a script/software that will accept a video upload from a user. It needs to compress the video, take a snapshot of the video (for a intro image), etc. just like YouTube or other sites. What scripts/software is available out there? Any suggestions or recommendations?
     
    tlshaheen, Apr 26, 2010 IP
  2. molipoli

    molipoli Peon

    Messages:
    5
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you want to use a premade script and want to have it for free just search for youtube clnoe scripts you will find some free on google.

    If you want to code it personally then look into ffmpeg it is a program used on mostly unix servers sometimes you can find a windows server with ffmpeg installed . It is used to encode programs to all formats en resizing etc there are also function you can use to take a snapshot of a certain moment in the video. It works via the command line wich can be issued in php with the 'shell_exec' command .

    So in youtube you could simple have

    
    <?php
    $inputFile = input.avi;
    
    shell_exec("ffmpeg -i ".$inputFile . " output.flv");
    unlink($inputFile);
    ?>
    
    
    
    Code (markup):
    Wich will result in the video being encoded to the lightweight format flv and the avi file will be removed.
     
    molipoli, Apr 26, 2010 IP
    tlshaheen likes this.
  3. tlshaheen

    tlshaheen Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much for your reply molipoli. I will look more into ffmpeg when I am ready to store the video on my own servers - for now, I've found solutions with YouTubes API. Thanks!
     
    tlshaheen, Apr 27, 2010 IP