Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (61)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • 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 (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (7319)

  • WebM on the web

    23 mai 2010, par Basil Gohar — Software, Updates, flumotion, gstreamer, mpeg-la, ogg, vp8, webm, xiph

    News & developments about WebM are coming too fast to cover all of them, but it’s definitely encouraging to see that the free software world (as well as some other surprising, but welcome, players) has unequivocally embraced WebM as the … Read more (...)

  • How to use pathinfo in php ?

    10 juin 2019, par flash

    I am working on a php code as shown below on which Line#A prints the following array (shown below php code). My code doesn’t seems to go inside switch statement. I am not sure why.

    I added print_r($parts) at Line A in order to print the value of $parts.

    php code :

    &lt;?php
       if (!empty($_POST['id']))
       {
       for($i=0; $i / Line A
       switch ($parts['extension'])
       {
       echo "Hello World";                 // Line B
       case 'mp4' :
       $filePath = $src_dir . DS . $f;
       system('ffmpeg -i ' . $filePath . ' -map 0:2 -ac 1 ' . $destination_dir . DS . $parts['filename'] . '.mp3', $result);
       }
       }
       }
       }
    ?>

    Output (Line#A) :

    Array
    (
       [dirname]  => .
       [basename] => hello.mp4
       [extension] => mp4
       [filename] => hello
    )

    I have used echo "Hello World" at Line B but for some reasons, its not getting printed and throwing 500 internal server error on console.

    Problem Statement :

    I am wondering what changes I should make in the php code so that it goes inside switch statement.

  • What are the different ways to generate thumbnail of video in PHP ? [on hold]

    10 février 2016, par Vaidehi

    Is there any alternative for FFMPEG to get Video thumbnails in PHP ?
    Client don’t want to use EXEC and other server commands due to security issues.
    FFMPEG library need EXEC() to be enabled. So I am looking for other alternatives.
    I am using below code to generate thumbnail of video using PHP. But on server exec() function is disabled due to security reasons. So, I can’t use FFMPEG to generate thumbnail.

    ----------------------------
    $thumbnail_path = "your_site_domain/media/images/thumbnail/";
    $second = 1;
    $thumbSize="150x150";
    $videoname="sample_video";

    $cmd="{$ffmpeg_installation_path} -i {$video_file_path} -deinterlace -an -ss {$second} -t 00:00:01  -s {$thumbSize} -r 1 -y -vcodec mjpeg -f mjpeg {$path_to_store_generated_thumbnail} 2>&amp;1";
    exec($cmd, $output, $retval);
    if ($retval)
    {
       echo "error in generating video thumbnail";
    }
    else
    {
       echo "Thumbnail generated successfully";
       echo $thumb_path=$thumbnail_path.$videoname.".jpg";
    }
    -------------------------------

    In my case, video can be of any format like .mp4, .avi, youtube link or any possible video which I am going to upload using php and while uploading I want to generate thumbnail of same. If any solution then please reply me back.