Download the Flash plugin.
Home
Epic Underground Print E-mail

Epic Underground

Challenge:

Create a CMS website with the standard features of a community driven website while also creating a member’s only, video upload feature much like YouTube.

Utilizing PHP, MySQL, JavaScript, XML, AJAX, XHTML

Sample Code:

//rename uploaded file
    if(rename($upload_file_path,$ff))
    {
        //convert uploaded file to flash video
        if(exec("$config[mencoder] $config[vdodir]/$vdoname -o $config[flvdodir]/".$vid."x.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -srate 22050"))
        {
        //create thumbs    
        video_to_frame($ff, $vid);
        //update flv metatags
        exec("flvtool2 -Uv $config[flvdodir]/".$vid."x.flv $config[flvdodir]/".$vid.".flv");
        //remove temporary
        @unlink("$config[flvdodir]/".$vid."x.flv");