Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (72)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (5028)

  • Révision 18070 : supprimer le cache des plugin.xml avec le cache general

    15 juin 2011, par cedric -

    forcer un recalcul quand on redirige depuis la page d’upgrade

  • is there a way to change dynamic the water mark text color when using ffmpeg depending on the background color when recording a vieo file ?

    11 juillet 2023, par Shelly Ron

    This command in the command prompt window is working fine and recording the entire screen :

    


    ffmpeg -f gdigrab -framerate 24 -i desktop -preset ultrafast -pix_fmt yuv420p out.mp4


    


    this command prompt add a water mark text in the middle of the screen in white color :

    


    ffmpeg -f gdigrab -framerate 24 -i desktop -vf "drawtext=fontfile=path/to/arial.ttf:text='All rights reserved to ...':fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2" -preset ultrafast -pix_fmt yuv420p out.mp4


    


    the problem is that the water mark text is in white and i can see it only when the background window color is black for example when i bring to the front the ffmpeg console window :

    


    water mark

    


    but when it's recording some window with white background, because the text is white it can't be seen.

    


    I want to update the command prompt of the ffmpeg to make somehow dynamic so if the background window is black show the water mark text in white and then if I'm bringing up a window with background white change the water mark text automatic to black.

    


    this is the command i tried for the dynamic effect but it didn't work i got errors and then i tried so many versions of the command line, but nothing helped or worked.

    


    ffmpeg -f gdigrab -framerate 24 -i desktop -filter_complex "[0:v]drawtext=text='Watermark Text':x=(w-text_w)/2:y=(h-text_h)/2:fontfile=arial.ttf:fontsize=24,format=rgba [txt];[txt]split=2 [bw][wc];[bw]lut=r=val*2 [b];[wc]lut=r=val*0.5+0.5:g=val*0.5+0.5:b=val*0.5+0.5 [wc];[wc][b]alphamerge [wm];[wm][0:v]overlay=10:10[outv]" -c:v libx264 -preset ultrafast -map "[outv]" out.mp4


    


    and also tried this

    


    ffmpeg -f gdigrab -framerate 24 -i desktop -filter_complex "[0:v]drawtext=text='Watermark Text':x=(w-text_w)/2:y=(h-text_h)/2:fontfile=Arial.ttf:fontsize=24,format=rgba [txt];[txt]split=2 [bw][wm];[bw][1:v]split=3 [b][g][r];[b]geq=r=0:g=0.5:b=0 [b];[g]geq=r=0:g=0:b=0.5 [g];[r]geq=r=0.5:g=0:b=0 [r];[wm][b][g][r]merge=3,format=rgba [watermark];[0:v][watermark]overlay=x=(W-w)/2:y=(H-h)/2" -map "[watermark]" -map 0:a? -c:v libx264 -c:a copy -preset ultrafast out.mp4


    


  • Can anyone tell me ffmpeg.wasm command to converting 24-bit color image to 8-bit color image without affecting transparency part ?

    4 avril 2024, par Rohit Nayak

    I am a new developer and currently developing a png compressor to compress png image file using next.js 14 app directory and I found the right command to do so

    


    ffmpeg -i input.png -c:v png -pix_fmt pal8 -vf "split[a][b];[a]alphaextract[am];[b]palettegen=stats_mode=diff[pl];[b][pl]alphamerge" output.png


    


    but i am unable to do so because I don't know how to convert that to ffmpeg.wash command.

    


    I am using node.js v20.11.0, @ffmpeg/ffmpeg version 0.12.6 and @ffmpeg/util 0.12.1", alone with @ffmpeg/core@ version 0.12.2 which seems to work well.

    


    My code is as following :

    


        ffmpeg.exec([
      "-i",
      `${file.name}`,
      "-c:v",
      "png",
      "-pix_fmt",
      "pal8",
      "-vf",
      "split[a][b];",
      "[a]alphaextract[am];",
      "[b]palettegen=stats_mode=diff[pl];",
      "[b][pl]paletteuse=new=1:alpha_threshold=128",
      `output.png`,
    ]);


    


    Is there anyone who can solve this problem ?
An early action will highly be appreciated😊

    


    Answer in the form of

    


    ffmpeg.exec([...commands ])