Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (75)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

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

Sur d’autres sites (4202)

  • Bash script to generate thumbnail for all video files in directory

    17 mars 2015, par RWW

    I have a folder with over 10,000 videos. For each of those videos I want to create a random thumbnail image.

    My video files are in the directory /videos
    The thumbnails are in the directory /thumbs

    All the videos are named ID.mp4, where ID is the arbitrary name of the video file.
    I want the thumbs to be ID.jpg.

    I currently use this with php to generate thumbnails but its not efficient enough to do it for all those videos.

    $video = "/videos";
    $image = "/thumbs";
    $time = rand(1,300);
    shell_exec("ffmpeg -i $video -an -ss $time -f mjpeg -t 1 -r 1 -y -s 620x370 $image 2>&1");

    Anyone care to help me on this ?

  • Comment pourrions-nous améliorer le site piwik.org ? Retours, suggestions Feedback

    29 novembre 2011, par Piwik team

    Bien que nous estimions que le site piwik.org remplit correctement son rôle, nous avons conscience qu’il peut être amélioré. Nous espérons de la sorte mieux servir la communauté Piwik. Dans un premier temps, nous avons l’intention de travailler sur une refonte du site piwik.org , qui contient les différentes documentations, des FAQs, le compteur de [...]

    ]]>

  • Executing ffmpeg commands from a PHP script

    30 janvier 2013, par Derrick Tucker

    My problem is pretty simple : I can run ffmpeg commands perfectly fine on my server from the command line, but some of these commands experience trouble when I try to execute them from a PHP script.

    For example, the following works in the command line :

    ffmpeg -i cat.mpeg cat.avi

    When in my PHP script, it also works as :

    exec("/usr/local/bin/ffmpeg -i cat.mpeg cat.avi", $output);

    This, as I said, works fine. However, this line works from the command line, but not in a PHP script :

    ffmpeg -i cat.mpeg -vf scale=480:360 cat2.mpeg

    Trying to put that into an exec() produces nothing. I've tried with/without quotes around the dimensions, different formats, etc. From the dozens of different commands I have tried, it seems that any will work from PHP as long as they don't contain the -vf flag. Clearly it works on the server, as executing from the command line proceeds with no issue ; is there something silly I am missing here ?