Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (102)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (9269)

  • could anybody help me with php synatax of execution of ffmpeg to draw text ? [on hold]

    4 décembre 2015, par Manveer Brar

    i have use folllwing code i gives me a error in php

    exec("ffmpeg -i input.mp4 -vf drawtext="fontfile=/usr/share/fonts/TTF/Vera.ttf: text='hello': fontcolor=white: fontsize=30: x=15: y=15" -codec:a copy output.mp4");
  • Add text to video with FFMPEG in NodeJs

    5 novembre 2023, par André

    Here's my code to add text to a video using the fluent-ffmpeg library :

    


    import ffmpeg from &#x27;fluent-ffmpeg&#x27;;&#xA;import { PassThrough } from &#x27;stream&#x27;;&#xA;&#xA;  async processVideo(buffer: Buffer, username: string): Promise<buffer> {&#xA;    return new Promise<buffer>((resolve, reject) => {&#xA;      const text = username;&#xA;      const inStream = new PassThrough();&#xA;      const outStream = new PassThrough();&#xA;&#xA;      inStream.end(buffer);&#xA;&#xA;      ffmpeg()&#xA;        .input(inStream)&#xA;        .videoFilter(&#xA;          `drawtext=text=&#x27;${text}&#x27;:x=10:y=main_h-text_h-10:fontsize=24:fontcolor=white`,&#xA;        )&#xA;        .videoCodec(&#x27;libx265&#x27;)&#xA;        .audioCodec(&#x27;copy&#x27;)&#xA;        .outputOptions([&#x27;-preset&#x27;, &#x27;ultrafast&#x27;, &#x27;-crf&#x27;, &#x27;28&#x27;])&#xA;        .output(outStream)&#xA;        .on(&#x27;end&#x27;, () => {&#xA;          const chunks: Buffer[] = [];&#xA;          outStream.on(&#x27;data&#x27;, (chunk) => chunks.push(chunk));&#xA;          outStream.on(&#x27;end&#x27;, () => {&#xA;            const resultBuffer = Buffer.concat(chunks);&#xA;            resolve(resultBuffer);&#xA;          });&#xA;        })&#xA;        .on(&#x27;error&#x27;, (err) => {&#xA;          reject(err);&#xA;        })&#xA;        .run();&#xA;    });&#xA;  }&#xA;</buffer></buffer>

    &#xA;

    Following error is displayed :

    &#xA;

    Error : ffmpeg exited with code 1 : pipe:1 : Invalid argument

    &#xA;

  • ffmpeg - Overlay a text over an image

    1er mai 2020, par ark1974

    The following command line for encoding audio with an image works fine.

    &#xA;&#xA;

    ffmpeg -y -loop 1 -framerate 15 -i  "/storage/emulated/0/Download/Kites.jpg" -i "/storage/emulated/0/Download/myaudio.mp3"  -c:v libx264 -vf format=yuv420p -c:a aac -shortest "/storage/emulated/0/Download/Out.mp4"&#xA;

    &#xA;&#xA;

    I want to overlay text over an image in the video frame. Based on this link, I added an overlay text like so. Since I want to use the default font, I skip the drawtext="fontfile=" command deliberately like so. But now no video frames are visible, not even the background image. How can I do it ? Thanks.

    &#xA;&#xA;

    ffmpeg -y -loop 1 -framerate 15 -i  "/storage/emulated/0/Download/Kites.jpg" -i "/storage/emulated/0/Download/myaudio.mp3"  -c:v libx264 -vf format=yuv420p -vf drawtext="text=&#x27;Hello World&#x27;: fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2"   -c:a aac -shortest "/storage/emulated/0/Download/Out.mp4"&#xA;

    &#xA;