Recherche avancée

Médias (91)

Autres articles (98)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (8891)

  • 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 :

    


    os.system('ffmpeg -i original_video -ss {start} -t {duration} result_video')


    


    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 ?

    


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

    


  • 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

  • Splitting audio by vocal / voice

    1er octobre 2020, par ML85

    I am working with audio file using webrtcvad and pydub. The split of any fragment is by silence of the sentence.&#xA;Is there any way by which the split can be done at each vocal (after each spoken word) ?&#xA;If librosa/ffmpeg/pydub has any feature like this, can split is possible at each vocal ? but after split, I need start and end time of the vocal exactly what that vocal part has positioned in the original file.&#xA;One simple solution or way to split by ffmpeg is also defined by :

    &#xA;

    https://gist.github.com/vadimkantorov/00bf4fbe4323360722e3d2220cc2915e

    &#xA;

    but this is also splitting by silence, and with each padding number or the frame size, the split is different. I am trying split by vocal.

    &#xA;