Recherche avancée

Médias (91)

Autres articles (30)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (4856)

  • Generating thumbnail from video using php classes

    4 janvier 2014, par user2582858

    I was using the exec command to generate thumbnails via ffmpeg..
    My method was :

    exec("ffmpeg -f image2 -i /home/phedra/imgs/image/img%03d.png -r 12 -s 610x489 /home/phedra/imgs/video/out.avi", $out);

    but my senior team member told me that using exec command is not a good practice because it is a dangerous command and It may harm server.. So find any other technique.. I struggled alot but didnt find any comprehensive method other than this..
    Can anybody tell me anyother way to generate thumbnail from video using php class from scratch (With an example if possible), so that I could understand completely, Moreover also tell me the library link to download and settings for server if any setting needed to be done before using that technque(My server system is based on Ubuntu and the framework for developement is codeignitter)..

    (Third party api tool for generating thumbnail is also welcome but the necessary thing is that it must be free :))

  • How to specify the audio path for ffmpeg and how to conduct a silence removal using ffmpeg

    15 octobre 2020, par Leo

    I wish to conduct a silence removal for wav files.

    


    import ffmpeg
inPath = "/home/test/Speech/Wang/dataset/testsets/disgust/0_002_00_021_F002_d.wav"
outPath = "/home/test/Speech/Wang/dataset/testsets/disgust/0_002_00_021_F002_d_trimed.wav"
ffmpeg -i inPath -af silenceremove=0:0:-50dB outPath


    


    Error occurred.

    


      File "", line 3
    ffmpeg -i inPath -af silenceremove=0:0:-50dB outPath
                   ^
SyntaxError: invalid syntax


    


    How should I assign the path ?

    


    The question is that why we set the threshold to a negative value ?

    


  • PHP Sort Order Process Codeiginiter

    5 août 2017, par Alan El-nino Malmsteen

    i use php codeigniter to manage video using FFMPEG, but i dont know how to delete original video after convertion successful.

    if(!($_FILES["upload_video"]["type"] == "video/mp4"))
       {
       $prename = $r.'.'.$ext;
       $video = $prename.'.mp4';
       $directory_path  = "/home/templates/videos/".$prename;
       $directory_path_full = "/home/templates/videos/".$prename;
       exec("ffmpeg -i ".$directory_path_full." ".$directory_path.".mp4");

       // Delete original format video
       $this->load->helper("file");
       unlink($directory_path_full);

       }else{
       $video = $r.'.'.$ext;
       }

    When i use "unlink" it work good to delete file, but the video is corrupt (maybe php directly delete it when converting progress)
    So, can you help me to create sort order php process for this case ?