Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (67)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (9302)

  • Access files in a directory and write the file paths to a text file in ascending order using PHP

    26 mars 2014, par SCC

    I have a list of video files in my server. I would like to list out all the video files in this directory and write it to a text file. These video files are all having the same name output-x.mp4, and x is the number from 0 to an unknown figure. The total number of video files is dynamic and therefore I don't get to know the number of the last video. I have the below code to access all the video files in this directory. It works fine with only one problem : The video files written to the text file are not sorted in ascending order.

    $directory = "video/myvideo";
    $fp = fopen($_SERVER['DOCUMENT_ROOT']."Path/to/text/file", "wb");
    $split_video_files = scandir($directory);
    foreach($split_video_files as $file)
    {
       $content = "file ".$directory.$file."\r\n";
       fwrite($fp, $content);
    }
    fclose($fp);

    What the text file gave me is this :

    video/myvideo/output-0.mp4
    video/myvideo/output-1.mp4
    video/myvideo/output-10.mp4
    video/myvideo/output-11.mp4
    video/myvideo/output-12.mp4
    video/myvideo/output-13.mp4
    video/myvideo/output-14.mp4
    video/myvideo/output-2.mp4
    video/myvideo/output-3.mp4
    video/myvideo/output-4.mp4
    video/myvideo/output-5.mp4
    video/myvideo/output-6.mp4
    video/myvideo/output-7.mp4
    video/myvideo/output-8.mp4
    video/myvideo/output-9.mp4

    It lists out all the filename that start with "1" first before proceed to "2" and so on. Any ways for me to sort it in ascending order so that it starts from 0, 1, 2,… ?

  • avcodec/allcodecs : Re-order nvenc encoders below x264/5.

    6 juin 2015, par Philip Langdale
    avcodec/allcodecs : Re-order nvenc encoders below x264/5.
    

    We shouldn’t pick nvenc by default.

    Signed-off-by : Philip Langdale <philipl@overt.org>

    • [DH] libavcodec/allcodecs.c
  • avcodec/vp3 : Cleanup order of operations for current_run check

    15 mai 2015, par Michael Niedermayer
    avcodec/vp3 : Cleanup order of operations for current_run check
    

    This shouldnt make a difference

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/vp3.c