Recherche avancée

Médias (91)

Autres articles (83)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (3641)

  • 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 < 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

  • 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('convert.php', array($initial_file_name, $vid), $LogFilePath);

    And the function looks also quite clear :

    function RunInBackground($sPHPFile, $aParam = array(), $sLogFile = '')
    {
       global $config;

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


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

           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 & echo $!");
       }
       else
       {
           $iPID = shell_exec("nohup $sCmd 2> /dev/null & 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 !

  • 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;