Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (97)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (13252)

  • Cannot install snappy with brew - fatal error : 'cassert' file not found

    23 mars 2024, par kronus

    I am on an old mac - 10.14.6 - and I am trying to install ffmpeg via brew.

    


    I am finding errors during the make of snappy

    


    When I try to brew install snappy the same errors persist :

    


    ==> Installing dependencies for snzip: snappy&#xA;==> Installing snzip dependency: snappy&#xA;==> Patching&#xA;==> cmake . -DSNAPPY_BUILD_TESTS=OFF -DSNAPPY_BUILD_BENCHMARKS=OFF&#xA;==> make install&#xA;Last 15 lines from /Users/<home>/Library/Logs/Homebrew/snappy/02.make:&#xA;In file included from /tmp/snappy-20240323-80108-r3czy0/snappy-1.1.10/snappy.cc:29:&#xA;In file included from /tmp/snappy-20240323-80108-r3czy0/snappy-1.1.10/snappy-internal.h:34:&#xA;/tmp/snappy-20240323-80108-r3czy0/snappy-1.1.10/snappy-stubs-internal.h:40:10: fatal error: &#x27;cassert&#x27; file not found&#xA;40 | #include <cassert>&#xA;  |          ^~~~~~~~~&#xA;make[2]: *** [CMakeFiles/snappy.dir/snappy-sinksource.cc.o] Error 1&#xA;make[2]: *** Waiting for unfinished jobs....&#xA;1 error generated.&#xA;make[2]: *** [CMakeFiles/snappy.dir/snappy-c.cc.o] Error 1&#xA;1 error generated.&#xA;make[2]: *** [CMakeFiles/snappy.dir/snappy-stubs-internal.cc.o] Error 1&#xA;1 error generated.&#xA;make[2]: *** [CMakeFiles/snappy.dir/snappy.cc.o] Error 1&#xA;make[1]: *** [CMakeFiles/snappy.dir/all] Error 2&#xA;make: *** [all] Error 2&#xA;</cassert></home>

    &#xA;

  • FFMpeg + Beanstalk : How to pass the processes to it

    14 juillet 2012, par Ilia Rostovtsev

    I'm working around on the video web site ! I have a simple PHP function that is used to start complicated conversion processes. The problem is that FFMpeg and Mencoder are extremely resourceful and having one process of it is something that makes httpd slow down but multiple processes just hang it completely. I want to my conversion processes with Beanstalk (or anything else). Everything is working well right now : converting, logging and etc.

    My concrete question is : How to transfer my current jobs to Beanstalk ?

    I have very simple PHP code :

    RunInBackground(&#39;convert.php&#39;, array($initial_file_name, $vid), $LogFilePath);

    And the function looks also quite clear :

    function RunInBackground($sPHPFile, $aParam = array(), $sLogFile = &#39;&#39;)
    {
       global $config;

       $sCmd = $config[&#39;phppath&#39;] . &#39; &#39; . $config[&#39;BASE_DIR&#39;] . &#39;/&#39; . $sPHPFile;
       foreach ($aParam as $s)
       {
           $sCmd .= &#39; &#39; . $s;
       }


           $sCmd .= &#39; > &#39; . ($sLogFile != &#39;&#39; ? $config[&#39;BASE_DIR&#39;] . &#39;/&#39; . $sLogFile : &#39;/dev/null&#39;);

           if ( iBgProc($sCmd) )
           {
               return true;
           }
           else
           {
               return false;
           }

    }

    function iBgProc($sCmd, $iPrio = 0)
    {
       if ($iPrio)
       {
           $iPID = shell_exec("nohup nice -n $iPrio $sCmd 2> /dev/null &amp; echo $!");
       }
       else
       {
           $iPID = shell_exec("nohup $sCmd 2> /dev/null &amp; echo $!");
       }

       return($iPID);
    }

    Now what would Beanstalk correct code would look like so these processes would NOT start all at the same time if multiple videos are uploaded ?

    If you believe that for my needs is better to use something else but Beanstalk and you know how to implement it, I would be still happy to see it !

    Thanks !

  • What options I should use to rescale video without skewing them in FFMPEG Rails ?

    5 juin 2019, par ADMAT Bandara

    The main issue happens when it processes the recalling

    All videos uploading from Apple iOS will process nicely.
    But all videos uploading from Android devices are getting skewed.

    In my rails app, I am using Carrierwave:Video and FFMPEG to process videos with the help of delayed jobs.

    class VideoUploader &lt; CarrierWave::Uploader::Base

     include CarrierWave::Video
     include CarrierWave::Video::Thumbnailer

     # For carrierwave_backgrounder
     include ::CarrierWave::Backgrounder::Delay

     version :rescaled do
       process encode_video: [
         :mp4,
         resolution: "640x480", # Aspect ratio is preserved automatically
         audio_codec: "aac",
         custom: "-strict experimental -q:v 0 -preset slow -g 30",
         callbacks: { after_transcode: :set_success }
       ]
     end


     version :thumb do
       process thumbnail: [{format: 'png', quality: 10, size: 400, strip: true, logger: Rails.logger}]
       def full_filename for_file
         png_name for_file, version_name
       end
     end

    This is correct videos screenshot

    https://drive.google.com/open?id=1D0aNWcVxtL6DbTwBmWWIGzUUuyEyWNOG

    This the video screenshot after video process with FFMPEG

    https://drive.google.com/open?id=1vilExHoan2UuRPH9RbiZig58H1TwyewA

    (It’s like vertically pressed)


    Please help me, if you know a solution