Recherche avancée

Médias (91)

Autres articles (46)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (7458)

  • Missing functions in new version of FFmpeg

    25 avril 2013, par Asik

    I am upgrading a wrapper around ffmpeg to the most recent version of the library. Some functions have been renamed or replaced. For the most part I've been able to found equivalents easily, but the following two are giving me trouble :

    av_abort_set_callback
    av_abort_default_callback

    I could not find these functions by searching online, so what happened to them and what should they be replaced with now ?

    Here is a copy of the header file "abort.h" where they were located :

    /*
    * This file is part of FFmpeg.
    *
    * FFmpeg is free software; you can redistribute it and/or
    * modify it under the terms of the GNU Lesser General Public
    * License as published by the Free Software Foundation; either
    * version 2.1 of the License, or (at your option) any later version.
    *
    * FFmpeg is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    * Lesser General Public License for more details.
    *
    * You should have received a copy of the GNU Lesser General Public
    * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
    */

    #ifndef AVUTIL_ABORT_H
    #define AVUTIL_ABORT_H

    /**
    * Causes abnormal program termination. By default, av_abort_callback calls
    * abort() from the stdlib. This behavior can be altered by setting a
    * different av_abort callback function.
    */

    void av_abort_internal(void);
    void av_abort_set_callback(void (*)(void));
    void av_abort_default_callback(void);

    #define av_abort()    do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); av_abort_internal(); } while(0)

    #endif /* AVUTIL_ABORT_H */
  • Setting dpi flag in image files generated using ffmpeg

    17 mars 2023, par jim_e_jib

    We're using ffmpeg to batch out some TIFF images that are being resized and having white borders created to fit specific paper sizes.

    


    The resulting images default to 72dpi, even when the source is 300dpi. Is there a way to set the dpi flag in the output file ?

    


    Many thanks :-)

    


    The command we're using :

    


    for %%a in ("*.tif") do ffmpeg -i "%%a" -vf "scale=6974:4919:force_original_aspect_ratio=decrease,pad=7016:4961:(ow-iw)/2:(oh-ih)/2:color=white, format=rgb24" "%%~na A2 poster 594x420mm-Border.tif"


    


    We have tried using -dpi 300 in the code but get the error that this is not a recognised.

    


    Edit :

    


    I have just managed to answer my own question :

    


    for %%a in ("*.tif") do ffmpeg -i "%%a" -vf "scale=6974:4919:force_original_aspect_ratio=decrease,pad=7016:4961:(ow-iw)/2:(oh-ih)/2:color=white,format=rgb24" -dpi 300 "%%~na A2 poster 594x420mm-Border.tif"


    


    I had been placing the -dpi 300 in the wrong place when I'd tried it...

    


  • Anomalie #3064 (Fermé) : recherche nom rubrique avec quote pas pris en compte

    11 août 2014, par cedric -

    Je ne reproduis pas, ni en SQLite, ni en MySQL, y compris sur contrib.spip.net : il suffit de chercher "l’espace" dans le selecteur ajax pour que remontent bien les rubriques avec "l’espace privé" dans le titre.
    Je pense que ton problème vient plutôt que le titre de la rubrique concerné ne contient pas un quote droit "’" mais une variante récupérée d’un copier-coller depuis Word ou autre.

    Par contre il y avait bien une recherche par id_rubrique de prévue, mais elle était non fonctionnelle ; il suffit d’indiquer le numéro de rubrique dans le champ de la recherche, et celle-ci apparait en premier dans la liste.