Recherche avancée

Médias (91)

Autres articles (108)

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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (10129)

  • video snapshot generating horizontally in node js.

    2 février 2016, par iam

    I am using FFMPEG for generating snapshot of video but problem is that snapshot is capturing horizontally i want it to vertical.

    code

    pathToFile = path+name;
           pathToSnapshot = path+'sshot.jpg';

             // Also a default node module

             require('child_process').exec(('ffmpeg -i '+ pathToFile +' -vframes 1 -s 450x450 -ss 02 '+ pathToSnapshot), function () {});  
  • ffmpeg command and args execute successfully with child_process.exec() but not child_process.spawn()

    15 octobre 2013, par Zugwalt

    I am trying to use ffmpeg to add text to a video via the drawtext filter from within node.js in a windows environment.

    I have a command and arguments that work in the command line and when executed using the child_process module's exec function, but it encounters an error when the same arguments are used with the spawn function.

    The below code illustrates the problem :

    var child_process = require('child_process');

    var cmd = 'ffmpeg';

    var args = [ '-i',
                'c:\\path\\to\\my\\inputfile.mp4',
                '-vf',
                'drawtext="fontfile=/Windows/Fonts/arial.ttf:text=\'Hello World\':fontcolor=white@0.6:fontsize=70:x=0:y=40"',
                '-y',
                'c:\\path\\to\\my\\outputfile.mp4' ];

    // Above creates the command line equivalent of:
    // ffmpeg -i c:\path\to\my\inputfile.mp4 -vf drawtext="fontfile=/Windows/Fonts/arial.ttf:text='Hello fluent text':fontcolor=white@0.7:fontsize=70:x=0:y=40" -y c:\path\to\my\outputfile.mp4
    // this works when run from the command line

    var execCmd = cmd+' '+args.join(' ');

    child_process.exec(execCmd, function (error, stdout, stderr) {
           /* ffmpeg runs fine, adding the text to the video */

           var spawn = child_process.spawn(cmd,args);

           spawn.on('close', function (code) {
               /* ffmpeg fails, with standard error (obtained via spawn.stderr) reading:
                  Could not load font ""fontfile=/Windows/Fonts/arial.ttf": impossible to find a matching font
                  Error initializing filter 'drawtext' with args '"fontfile=/Windows/Fonts/arial.ttf:text=Hello fluent text:fontcolor=white@0.6:fontsize=70:x=0:y=40"'
               */
           });
       });

    Based on the error message :

    Could not load font ""fontfile=/Windows/Fonts/arial.ttf" : impossible
    to find a matching font

    And comparing it to giving ffmpeg a bogus font on the command line :

    Could not load font "/Windows/Fonts/bogus.ttf" : impossible to find a
    matching font

    It seems the problem is that when executed from spawn the drawtext argument is incorrectly parsed and "fontfile= is incorrectly making its way into the font's path. This does not happen when the same argument is executed with exec or from the command line. Is there any additional escaping that needs to be done when executing using spawn ?

  • FFMPEG on Fedora but PHP Compilation confliction

    11 octobre 2013, par UMI

    I have running Xampp with PHP5.5 on Fedora from Apache Friend, with default settings what the installer package do on Linux.

    When I install FFMPEG successfully and try to load from php.ini it always says :

    *

    11-Oct-2013 14:05:51 Europe/Berlin] PHP Warning:  PHP Startup: ffmpeg: Unable to initialize module
    Module compiled with module API=20060613
    PHP    compiled with module API=20121212
    These options need to match
    in Unknown on line 0

    *

    The only thing which is confusing me is that when I did phpize even that I already installed xampp server which means I have PHP running. FFMPEG phpize did not work and I had to install php-devel. Does that mean that FFMPEG is configured with PHP, other than the installed with XAMPP ? I am not sure what is happening. Whatever I do I always receive this error message in php_error_log file.

    It is amazing :) that I just run below command to see what version of PHP is, I have and below are the results which are shocking one because I am in a feeling that I have PHP 5.5 installed and running from XAMMP.

    [root@localhost ~]# php -v
    PHP 5.2.6 (cli) (built: May  8 2008 08:53:44)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

    How can I get this covered that if I simple install XAMPP server on linux and want to install and configure FFMPEG along with ?