Recherche avancée

Médias (91)

Autres articles (37)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (6101)

  • PHP upload video files to database

    13 janvier 2016, par Mick Jack

    I am working on a school project that let users upload video files to a server. Server will compress the video using ffmpeg and store the file in upload folder. Other users will be able to stream the uploaded videos.

    My question is how do i retrieve the video that ffmpeg generated and store the link in the database ?

    i am using this code but it only retrieve path of the original video.

    $filePath = dirname(__FILE__);

    partial code of Upload.php

    $target_dir = "upload/"; //where you want to upload the files to
    $target_file = $target_dir.basename($_FILES['file']['name']);
    $fileType = pathinfo($target_file, PATHINFO_EXTENSION);
    $newFileName = $target_dir.sha1(pathinfo(basename($_FILES['file']['name']), PATHINFO_FILENAME)).'-'.time().'.'.$fileType;
    move_uploaded_file($_FILES['file']['tmp_name'], $newFileName);
    $unique_id = rand(1000000,9999999);

    shell_exec("C:\\ffmpeg\\bin\\ffmpeg.exe -i ".$newFileName." -vcodec libx264 -crf 20 \"upload\\{$newFileName}\" > logfile.txt 2>&1");

    /// save information into database
                   $username = "root";
                   $password = "";
                   $hostname = "localhost";
                   $dbname = "test_database";

                   //connect to the database
                   $dbc = mysqli_connect($hostname, $username, $password, $dbname) or die ("could not connect to the database");

                   //execute the SQL query and return records
                    $result = mysqli_query($dbc, "INSERT INTO `viewvideo` (`vID`, 'video_id`, `video_link`) VALUES ('', '".$unique_id."', '".$newFileName."')");

                   if(!$result){echo mysqli_error($dbc); }

                   echo $result;

               /*  
                   declare in the order variable
                   $result = mysqli_query($dbc, $sql); //order executes
                   if($result){
                       echo("<br />Input data is succeed");
                   } else{
                       echo("<br />Input data is fail");
                   }
               */  

                   //close the connection
                   mysqli_close($dbc);

    output
    enter image description here

  • How to create a clip from an mp4-file quickly ?

    26 mars 2023, par Moritz Groß

    I have a web app that lets users download a clip from a mp4-file specified before. Currently I use ffmpeg via python like this :

    &#xA;

    os.system(&#x27;ffmpeg -i original_video -ss {start} -t {duration} result_video&#x27;)&#xA;

    &#xA;

    Processing 10 minutes of 720p video with this method also takes a few minutes (during the execution, ffmpeg displays speed=3x on average). Does this mean processing 10 minutes of video takes 3minutes & 20 seconds as I understand it ?

    &#xA;

    Is this slow of a performance expected ? Can I improve it by using an other filetype than mp4 ?

    &#xA;

  • issues with gas-preprocessor and ffmpeg4iphone

    4 janvier 2012, par Shoeb Amin

    I want to install gas pre-processor on my mac from
    gas pre-processor

    it is told that i have to install in usr/local/bin, But I didnt find my local folder in usr thats why I created a local/bin under usr then tried to install it from terminal...

    but It didnt work.. it says that "Unrecognized input filetype at gas-preprocessor.pl line 33."

    BTW my ultimate goal is to build ffmpeg4iphone in my xcode 4.2 and iOS5 sdk from ffmpeg4iphone