Advanced search

Medias (91)

Other articles (85)

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

    5 September 2013, by

    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;

  • Ecrire une actualité

    21 June 2013, by

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Personnaliser les catégories

    21 June 2013, by

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

On other websites (7045)

  • ffmpeg alters color scheme when converting images to a video

    12 February 2019, by Flo Ryan

    I am trying to convert a sequence of png images to a video. Unfortunately the video though playing exactly what i want alters the colors.

    The command used to convert the images:

    ffmpeg -framerate 30 -pattern_type glob -i ’*.png’ -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p out.mp4

    The original image colors:
    Color scheme in image

    The colors as displayed in the video.

    Color scheme in video

    How can I circumvent this altering of the colors?

    EDIT
    I found the answer as posted below.

  • Continue php after page closed exec() ffmpeg

    20 February 2019, by Tygo

    I am wondering how I can continue a php page after exec() (ffmpeg) and the page has been closed.

    I have a form that allows people to convert their video files with ffmpeg but if the user clicks away the page the exec() keeps going but anything after this exec is not being executed.

    <?php
      if (!empty($_POST) && $imgDir) {
         exec('"/dir/to/ffmpeg" -f image2 -i "' . $imgDir . '" -r 12 -s 610x489 /dir/to/out.avi', $out);

         /* INSERT statement (Not being executed) */
         $sql = "INSERT INTO requests (userID,image) VALUES (?,?)";
         $stmt= $pdo->prepare($sql);
         $stmt->execute([$user_id, $imgDir]);
      }
    ?>

    I want a user to be able to click an away the page, so they don’t have to wait and can download their file later.

  • ffmpeg -vg -filtercomplex, create gif with color kway and limited fps

    3 February 2020, by daniel

    I need to create a gif file with color key (greenscreen) with 10FPS and specified size. I try to combine -vg and -filter_complex:

    ffmpeg -i testdatei-c.avi -vf "fps=10,scale=320:-1:flags=lanczos" -filter_complex "[0:v]chromakey=0xFFFFFF,split[v0][v1];[v0]palettegen[p];[v1][p]paletteuse" output.gif

    I get the error:

    Filtergraph 'fps=10,scale=320:-1:flags=lanczos' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
    -vf/-af/-filter and -filter_complex cannot be used together for the same stream.